Move non-autoloaded define-obsolete-variable-alias calls for
[emacs.git] / configure
blob52da306ad4a27dce3f7dae146168b62eefeb5f69
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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.60'
576 PACKAGE_STRING='emacs 23.0.60'
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 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --disable-sync-input don't compile code with sync-input
1337 --enable-asserts compile code with asserts enabled
1338 --enable-maintainer-mode
1339 enable make rules and dependencies not useful (and
1340 sometimes confusing) to the casual installer
1341 --enable-locallisppath=PATH
1342 directories Emacs should search for lisp files
1343 specific to this site
1344 --disable-largefile omit support for large files
1346 Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-x-toolkit was given.
1936 if test "${with_x_toolkit+set}" = set; then
1937 withval=$with_x_toolkit; case "${withval}" in
1938 y | ye | yes ) val=gtk ;;
1939 n | no ) val=no ;;
1940 l | lu | luc | luci | lucid ) val=lucid ;;
1941 a | at | ath | athe | athen | athena ) val=athena ;;
1942 m | mo | mot | moti | motif ) val=motif ;;
1943 g | gt | gtk ) val=gtk ;;
1945 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1946 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1947 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1948 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1949 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1950 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1951 { (exit 1); exit 1; }; }
1953 esac
1954 with_x_toolkit=$val
1960 # Check whether --with-xpm was given.
1961 if test "${with_xpm+set}" = set; then
1962 withval=$with_xpm;
1963 else
1964 with_xpm=yes
1968 # Check whether --with-jpeg was given.
1969 if test "${with_jpeg+set}" = set; then
1970 withval=$with_jpeg;
1971 else
1972 with_jpeg=yes
1976 # Check whether --with-tiff was given.
1977 if test "${with_tiff+set}" = set; then
1978 withval=$with_tiff;
1979 else
1980 with_tiff=yes
1984 # Check whether --with-gif was given.
1985 if test "${with_gif+set}" = set; then
1986 withval=$with_gif;
1987 else
1988 with_gif=yes
1992 # Check whether --with-png was given.
1993 if test "${with_png+set}" = set; then
1994 withval=$with_png;
1995 else
1996 with_png=yes
2000 # Check whether --with-rsvg was given.
2001 if test "${with_rsvg+set}" = set; then
2002 withval=$with_rsvg;
2003 else
2004 with_rsvg=yes
2009 # Check whether --with-freetype was given.
2010 if test "${with_freetype+set}" = set; then
2011 withval=$with_freetype;
2012 else
2013 with_freetype=yes
2017 # Check whether --with-xft was given.
2018 if test "${with_xft+set}" = set; then
2019 withval=$with_xft;
2020 else
2021 with_xft=yes
2025 # Check whether --with-libotf was given.
2026 if test "${with_libotf+set}" = set; then
2027 withval=$with_libotf;
2028 else
2029 with_libotf=yes
2033 # Check whether --with-m17n-flt was given.
2034 if test "${with_m17n_flt+set}" = set; then
2035 withval=$with_m17n_flt;
2036 else
2037 with_m17n_flt=yes
2042 # Check whether --with-toolkit-scroll-bars was given.
2043 if test "${with_toolkit_scroll_bars+set}" = set; then
2044 withval=$with_toolkit_scroll_bars;
2045 else
2046 with_toolkit_scroll_bars=yes
2050 # Check whether --with-xaw3d was given.
2051 if test "${with_xaw3d+set}" = set; then
2052 withval=$with_xaw3d;
2053 else
2054 with_xaw3d=yes
2058 # Check whether --with-xim was given.
2059 if test "${with_xim+set}" = set; then
2060 withval=$with_xim;
2061 else
2062 with_xim=yes
2066 # Check whether --with-carbon was given.
2067 if test "${with_carbon+set}" = set; then
2068 withval=$with_carbon;
2069 else
2070 with_carbon=no
2075 # Check whether --with-gpm was given.
2076 if test "${with_gpm+set}" = set; then
2077 withval=$with_gpm;
2078 else
2079 with_gpm=yes
2083 # Check whether --with-dbus was given.
2084 if test "${with_dbus+set}" = set; then
2085 withval=$with_dbus;
2086 else
2087 with_dbus=yes
2092 # Check whether --with-gtk was given.
2093 if test "${with_gtk+set}" = set; then
2094 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2095 specify a toolkit." >&5
2096 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2097 specify a toolkit." >&2;}
2098 { (exit 1); exit 1; }; }
2103 # Check whether --with-gcc was given.
2104 if test "${with_gcc+set}" = set; then
2105 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2106 variable to specify a compiler." >&5
2107 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2108 variable to specify a compiler." >&2;}
2109 { (exit 1); exit 1; }; }
2114 # Check whether --with-pkg-config-prog was given.
2115 if test "${with_pkg_config_prog+set}" = set; then
2116 withval=$with_pkg_config_prog;
2119 if test "X${with_pkg_config_prog}" != X; then
2120 if test "${with_pkg_config_prog}" != yes; then
2121 PKG_CONFIG="${with_pkg_config_prog}"
2125 # Check whether --enable-carbon-app was given.
2126 if test "${enable_carbon_app+set}" = set; then
2127 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2131 ## Enabled by default.
2132 # Check whether --enable-font-backend was given.
2133 if test "${enable_font_backend+set}" = set; then
2134 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2135 else
2136 USE_FONT_BACKEND=yes
2140 ## Enabled by default.
2141 # Check whether --enable-sync-input was given.
2142 if test "${enable_sync_input+set}" = set; then
2143 enableval=$enable_sync_input; USE_SYNC_INPUT=$enableval
2144 else
2145 USE_SYNC_INPUT=yes
2149 # Check whether --enable-asserts was given.
2150 if test "${enable_asserts+set}" = set; then
2151 enableval=$enable_asserts; USE_XASSERTS=$enableval
2152 else
2153 USE_XASSERTS=no
2157 # Check whether --enable-maintainer-mode was given.
2158 if test "${enable_maintainer_mode+set}" = set; then
2159 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2160 else
2161 USE_MAINTAINER_MODE=no
2164 if test $USE_MAINTAINER_MODE = yes; then
2165 MAINT=
2166 else
2167 MAINT=#
2171 # Check whether --enable-locallisppath was given.
2172 if test "${enable_locallisppath+set}" = set; then
2173 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2174 locallisppath=
2175 elif test "${enableval}" != "yes"; then
2176 locallisppath=${enableval}
2181 #### Make srcdir absolute, if it isn't already. It's important to
2182 #### avoid running the path through pwd unnecessarily, since pwd can
2183 #### give you automounter prefixes, which can go away. We do all this
2184 #### so Emacs can find its files when run uninstalled.
2185 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2186 unset CDPATH
2187 case "${srcdir}" in
2188 /* ) ;;
2190 ## We may be able to use the $PWD environment variable to make this
2191 ## absolute. But sometimes PWD is inaccurate.
2192 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2193 ## but that tested only for a well-formed and valid PWD,
2194 ## it did not object when PWD was well-formed and valid but just wrong.
2195 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2196 then
2197 srcdir="$PWD"
2198 else
2199 srcdir="`(cd ${srcdir}; pwd)`"
2202 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2203 esac
2205 #### Check if the source directory already has a configured system in it.
2206 if test `pwd` != `(cd ${srcdir} && pwd)` \
2207 && test -f "${srcdir}/src/config.h" ; then
2208 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2209 as a build directory right now; it has been configured in its own
2210 right. To configure in another directory as well, you MUST
2211 use GNU make. If you do not have GNU make, then you must
2212 now do \`make distclean' in ${srcdir},
2213 and then run $0 again." >&5
2214 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2215 as a build directory right now; it has been configured in its own
2216 right. To configure in another directory as well, you MUST
2217 use GNU make. If you do not have GNU make, then you must
2218 now do \`make distclean' in ${srcdir},
2219 and then run $0 again." >&2;}
2222 #### Given the configuration name, set machfile and opsysfile to the
2223 #### names of the m/*.h and s/*.h files we should use.
2225 ### Canonicalize the configuration name.
2227 ac_aux_dir=
2228 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2229 if test -f "$ac_dir/install-sh"; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install-sh -c"
2232 break
2233 elif test -f "$ac_dir/install.sh"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/install.sh -c"
2236 break
2237 elif test -f "$ac_dir/shtool"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/shtool install -c"
2240 break
2242 done
2243 if test -z "$ac_aux_dir"; then
2244 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2245 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2246 { (exit 1); exit 1; }; }
2249 # These three variables are undocumented and unsupported,
2250 # and are intended to be withdrawn in a future Autoconf release.
2251 # They can cause serious problems if a builder's source tree is in a directory
2252 # whose full name contains unusual characters.
2253 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2254 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2255 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2258 # Make sure we can run config.sub.
2259 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2260 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2261 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2262 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: checking build system type" >&5
2265 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2266 if test "${ac_cv_build+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 ac_build_alias=$build_alias
2270 test "x$ac_build_alias" = x &&
2271 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2272 test "x$ac_build_alias" = x &&
2273 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2275 { (exit 1); exit 1; }; }
2276 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2277 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2278 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2279 { (exit 1); exit 1; }; }
2282 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2283 echo "${ECHO_T}$ac_cv_build" >&6; }
2284 case $ac_cv_build in
2285 *-*-*) ;;
2286 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2287 echo "$as_me: error: invalid value of canonical build" >&2;}
2288 { (exit 1); exit 1; }; };;
2289 esac
2290 build=$ac_cv_build
2291 ac_save_IFS=$IFS; IFS='-'
2292 set x $ac_cv_build
2293 shift
2294 build_cpu=$1
2295 build_vendor=$2
2296 shift; shift
2297 # Remember, the first character of IFS is used to create $*,
2298 # except with old shells:
2299 build_os=$*
2300 IFS=$ac_save_IFS
2301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2304 { echo "$as_me:$LINENO: checking host system type" >&5
2305 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2306 if test "${ac_cv_host+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 if test "x$host_alias" = x; then
2310 ac_cv_host=$ac_cv_build
2311 else
2312 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2313 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2314 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2315 { (exit 1); exit 1; }; }
2319 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2320 echo "${ECHO_T}$ac_cv_host" >&6; }
2321 case $ac_cv_host in
2322 *-*-*) ;;
2323 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2324 echo "$as_me: error: invalid value of canonical host" >&2;}
2325 { (exit 1); exit 1; }; };;
2326 esac
2327 host=$ac_cv_host
2328 ac_save_IFS=$IFS; IFS='-'
2329 set x $ac_cv_host
2330 shift
2331 host_cpu=$1
2332 host_vendor=$2
2333 shift; shift
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2336 host_os=$*
2337 IFS=$ac_save_IFS
2338 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2341 canonical=$host
2342 configuration=${host_alias-${build_alias-$host}}
2346 ### If you add support for a new configuration, add code to this
2347 ### switch statement to recognize your configuration name and select
2348 ### the appropriate operating system and machine description files.
2350 ### You would hope that you could choose an m/*.h file pretty much
2351 ### based on the machine portion of the configuration name, and an s-
2352 ### file based on the operating system portion. However, it turns out
2353 ### that each m/*.h file is pretty manufacturer-specific - for
2354 ### example hp9000s300.h is a 68000 machine;
2355 ### mips.h, pmax.h are all MIPS
2356 ### machines. So we basically have to have a special case for each
2357 ### configuration name.
2359 ### As far as handling version numbers on operating systems is
2360 ### concerned, make sure things will fail in a fixable way. If
2361 ### /etc/MACHINES doesn't say anything about version numbers, be
2362 ### prepared to handle anything reasonably. If version numbers
2363 ### matter, be sure /etc/MACHINES says something about it.
2365 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2366 ### "System V Release 4"; he writes, "The old convention encouraged
2367 ### confusion between `system' and `release' levels'."
2369 machine='' opsys='' unported=no
2370 case "${canonical}" in
2372 ## FreeBSD ports
2373 *-*-freebsd* )
2374 opsys=freebsd
2375 case "${canonical}" in
2376 alpha*-*-freebsd*) machine=alpha ;;
2377 arm*-*-freebsd*) machine=arm ;;
2378 ia64-*-freebsd*) machine=ia64 ;;
2379 sparc64-*-freebsd*) machine=sparc ;;
2380 powerpc-*-freebsd*) machine=macppc ;;
2381 i[3456]86-*-freebsd*) machine=intel386 ;;
2382 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2383 esac
2386 ## FreeBSD kernel + glibc based userland
2387 *-*-kfreebsd*gnu* )
2388 opsys=gnu-kfreebsd
2389 case "${canonical}" in
2390 alpha*-*-kfreebsd*) machine=alpha ;;
2391 ia64-*-kfreebsd*) machine=ia64 ;;
2392 sparc64-*-kfreebsd*) machine=sparc ;;
2393 powerpc-*-kfreebsd*) machine=macppc ;;
2394 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2395 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2396 esac
2399 ## NetBSD ports
2400 *-*-netbsd* )
2401 opsys=netbsd
2402 if test -f /usr/lib/crti.o; then
2404 cat >>confdefs.h <<\_ACEOF
2405 #define HAVE_CRTIN
2406 _ACEOF
2410 case "${canonical}" in
2411 alpha*-*-netbsd*) machine=alpha ;;
2412 i[3456]86-*-netbsd*) machine=intel386 ;;
2413 m68k-*-netbsd*)
2414 # This is somewhat bogus.
2415 machine=hp9000s300 ;;
2416 mips-*-netbsd*) machine=pmax ;;
2417 mipsel-*-netbsd*) machine=pmax ;;
2418 mipseb-*-netbsd*) machine=pmax ;;
2419 powerpc-*-netbsd*) machine=macppc ;;
2420 sparc*-*-netbsd*) machine=sparc ;;
2421 vax-*-netbsd*) machine=vax ;;
2422 arm-*-netbsd*) machine=arm ;;
2423 x86_64-*-netbsd*) machine=amdx86-64 ;;
2424 hppa-*-netbsd*) machine=hp800 ;;
2425 esac
2428 ## OpenBSD ports
2429 *-*-openbsd* )
2430 opsys=openbsd
2431 case "${canonical}" in
2432 alpha*-*-openbsd*) machine=alpha ;;
2433 arm-*-openbsd*) machine=arm ;;
2434 hppa-*-openbsd*) machine=hp9000s300 ;;
2435 i386-*-openbsd*) machine=intel386 ;;
2436 m68k-*-openbsd*) machine=hp9000s300 ;;
2437 powerpc-*-openbsd*) machine=macppc ;;
2438 sparc*-*-openbsd*) machine=sparc ;;
2439 vax-*-openbsd*) machine=vax ;;
2440 x86_64-*-openbsd*) machine=amdx86-64 ;;
2441 esac
2444 ## LynxOS ports
2445 *-*-lynxos* )
2446 opsys=lynxos
2447 case "${canonical}" in
2448 i[3456]86-*-lynxos*) machine=intel386 ;;
2449 powerpc-*-lynxos*) machine=powerpc ;;
2450 esac
2453 ## BSDI ports
2454 *-*-bsdi* )
2455 opsys=bsdi
2456 case "${canonical}" in
2457 i[345]86-*-bsdi*) machine=intel386 ;;
2458 sparc-*-bsdi*) machine=sparc ;;
2459 powerpc-*-bsdi*) machine=macppc ;;
2460 esac
2461 case "${canonical}" in
2462 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2463 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2464 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2465 *-*-bsdi3* ) opsys=bsdos3 ;;
2466 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2467 esac
2470 alpha*-*-linux-gnu* )
2471 machine=alpha opsys=gnu-linux
2474 arm*-*-linux-gnu* )
2475 machine=arm opsys=gnu-linux
2478 ## Apple Darwin / Mac OS X
2479 *-apple-darwin* )
2480 case "${canonical}" in
2481 i[3456]86-* ) machine=intel386 ;;
2482 powerpc-* ) machine=powermac ;;
2483 * ) unported=yes ;;
2484 esac
2485 opsys=darwin
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw/include && test -d /sw/lib; then
2490 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2491 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2496 ## Cubix QBx/386
2497 i[3456]86-cubix-sysv* )
2498 machine=intel386 opsys=usg5-3
2501 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2502 machine=pmax opsys=bsd4-2
2504 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2505 machine=pmax opsys=bsd4-3
2507 mips-dec-ultrix* )
2508 machine=pmax opsys=ultrix4-3
2510 ## HP 9000 series 200 or 300
2511 m68*-hp-bsd* )
2512 machine=hp9000s300 opsys=bsd4-3
2514 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2515 m68*-hp-hpux* )
2516 case "`uname -r`" in
2517 ## Someone's system reports A.B8.05 for this.
2518 ## I wonder what other possibilities there are.
2519 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2520 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2521 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2522 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2523 *) machine=hp9000s300 opsys=hpux ;;
2524 esac
2527 ## HP 9000 series 700 and 800, running HP/UX
2528 hppa*-hp-hpux7* )
2529 machine=hp800 opsys=hpux
2531 hppa*-hp-hpux8* )
2532 machine=hp800 opsys=hpux8
2534 hppa*-hp-hpux9shr* )
2535 machine=hp800 opsys=hpux9shr
2537 hppa*-hp-hpux9* )
2538 machine=hp800 opsys=hpux9
2540 hppa*-hp-hpux10.2* )
2541 machine=hp800 opsys=hpux10-20
2543 hppa*-hp-hpux10* )
2544 machine=hp800 opsys=hpux10
2546 hppa*-hp-hpux1[1-9]* )
2547 machine=hp800 opsys=hpux11
2548 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2551 hppa*-*-linux-gnu* )
2552 machine=hp800 opsys=gnu-linux
2555 ## HP 9000 series 700 and 800, running HP/UX
2556 hppa*-hp-hpux* )
2557 ## Cross-compilation? Nah!
2558 case "`uname -r`" in
2559 ## Someone's system reports A.B8.05 for this.
2560 ## I wonder what other possibilities there are.
2561 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2562 *.08.* ) machine=hp800 opsys=hpux8 ;;
2563 *.09.* ) machine=hp800 opsys=hpux9 ;;
2564 *) machine=hp800 opsys=hpux10 ;;
2565 esac
2567 hppa*-*-nextstep* )
2568 machine=hp800 opsys=nextstep
2571 ## IBM machines
2572 i370-ibm-aix*)
2573 machine=ibm370aix opsys=usg5-3
2575 s390-*-linux-gnu* )
2576 machine=ibms390 opsys=gnu-linux
2578 s390x-*-linux-gnu* )
2579 machine=ibms390x opsys=gnu-linux
2581 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2582 machine=ibmrs6000 opsys=aix3-1
2584 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2585 machine=ibmrs6000 opsys=aix3-2-5
2587 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2588 machine=ibmrs6000 opsys=aix4-1
2590 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2591 machine=ibmrs6000 opsys=aix4-2
2593 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2594 machine=ibmrs6000 opsys=aix4-2
2596 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2597 machine=ibmrs6000 opsys=aix4-2
2599 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2600 machine=ibmrs6000 opsys=aix4-2
2602 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2603 machine=ibmrs6000 opsys=aix4
2605 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2606 machine=ibmrs6000 opsys=aix4-1
2608 rs6000-ibm-aix* | powerpc-ibm-aix* )
2609 machine=ibmrs6000 opsys=aix3-2
2612 ## Prime EXL
2613 i[3456]86-prime-sysv* )
2614 machine=i386 opsys=usg5-3
2617 ## ncr machine running svr4.3.
2618 i[3456]86-ncr-sysv4.3 )
2619 machine=ncr386 opsys=usg5-4-3
2622 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2623 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2624 i[3456]86-ncr-sysv* )
2625 machine=ncr386 opsys=usg5-4-2
2628 ## Macintosh PowerPC
2629 powerpc*-*-linux-gnu* )
2630 machine=macppc opsys=gnu-linux
2633 ## Workstations sold by MIPS
2634 ## This is not necessarily all workstations using the MIPS processor -
2635 ## Irises are produced by SGI, and DECstations by DEC.
2637 mips-mips-bsd* )
2638 machine=mips opsys=bsd4-3
2640 mips-mips-* )
2641 machine=mips opsys=usg5-2-2
2644 ## NeXT
2645 m68*-next-* | m68k-*-nextstep* )
2646 machine=m68k opsys=nextstep
2649 ## NEC EWS4800
2650 mips-nec-sysv4*)
2651 machine=ews4800 opsys=ux4800
2654 ## Siemens Nixdorf
2655 mips-siemens-sysv* | mips-sni-sysv*)
2656 machine=mips-siemens opsys=usg5-4
2657 NON_GNU_CC=/usr/ccs/bin/cc
2658 NON_GNU_CPP=/usr/ccs/lib/cpp
2661 ## Silicon Graphics machines
2662 ## Iris 4D
2663 mips-sgi-irix6.5 )
2664 machine=iris4d opsys=irix6-5
2665 # Without defining _LANGUAGE_C, things get masked out in the headers
2666 # so that, for instance, grepping for `free' in stdlib.h fails and
2667 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2668 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2669 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2672 ## Suns
2673 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2674 machine=sparc opsys=gnu-linux
2677 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2678 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2679 | rs6000-*-solaris2*)
2680 case "${canonical}" in
2681 i[3456]86-*-* ) machine=intel386 ;;
2682 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2683 powerpcle* ) machine=powerpcle ;;
2684 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2685 sparc* ) machine=sparc ;;
2686 * ) unported=yes ;;
2687 esac
2688 case "${canonical}" in
2689 *-sunos5.3* | *-solaris2.3* )
2690 opsys=sol2-3
2691 NON_GNU_CPP=/usr/ccs/lib/cpp
2693 *-sunos5.4* | *-solaris2.4* )
2694 opsys=sol2-4
2695 NON_GNU_CPP=/usr/ccs/lib/cpp
2696 RANLIB="ar -ts"
2698 *-sunos5.5* | *-solaris2.5* )
2699 opsys=sol2-5
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 RANLIB="ar -ts"
2703 *-sunos5.6* | *-solaris2.6* )
2704 opsys=sol2-6
2705 NON_GNU_CPP=/usr/ccs/lib/cpp
2706 RANLIB="ar -ts"
2708 *-sunos5* | *-solaris* )
2709 opsys=sol2-6
2710 emacs_check_sunpro_c=yes
2711 NON_GNU_CPP=/usr/ccs/lib/cpp
2713 * ) opsys=bsd4-2 ;;
2714 esac
2715 ## Watch out for a compiler that we know will not work.
2716 case "${canonical}" in
2717 *-solaris* | *-sunos5* )
2718 if [ "x$CC" = x/usr/ucb/cc ]; then
2719 ## /usr/ucb/cc doesn't work;
2720 ## we should find some other compiler that does work.
2721 unset CC
2724 *) ;;
2725 esac
2727 sparc-*-nextstep* )
2728 machine=sparc opsys=nextstep
2731 ## Tandem Integrity S2
2732 mips-tandem-sysv* )
2733 machine=tandem-s2 opsys=usg5-3
2736 ## Vaxen.
2737 vax-dec-* )
2738 machine=vax
2739 case "${canonical}" in
2740 *-bsd4.1* ) opsys=bsd4-1 ;;
2741 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2742 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2743 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2744 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2745 *-vms* ) opsys=vms ;;
2746 * ) unported=yes
2747 esac
2750 ## IA-64
2751 ia64*-*-linux* )
2752 machine=ia64 opsys=gnu-linux
2755 ## Intel 386 machines where we don't care about the manufacturer
2756 i[3456]86-*-* )
2757 machine=intel386
2758 case "${canonical}" in
2759 *-cygwin ) opsys=cygwin ;;
2760 *-darwin* ) opsys=darwin
2761 CPP="${CC-cc} -E -no-cpp-precomp"
2763 *-linux-gnu* ) opsys=gnu-linux ;;
2764 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2765 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2766 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2767 *-386bsd* ) opsys=386bsd ;;
2768 *-nextstep* ) opsys=nextstep ;;
2769 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2770 esac
2773 ## m68k Linux-based GNU system
2774 m68k-*-linux-gnu* )
2775 machine=m68k opsys=gnu-linux
2778 ## Mips Linux-based GNU system
2779 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2780 machine=mips opsys=gnu-linux
2783 ## UXP/DS
2784 sparc-fujitsu-sysv4* )
2785 machine=sparc opsys=uxpds
2786 NON_GNU_CPP=/usr/ccs/lib/cpp
2787 RANLIB="ar -ts"
2790 ## AMD x86-64 Linux-based GNU system
2791 x86_64-*-linux-gnu* )
2792 machine=amdx86-64 opsys=gnu-linux
2795 ## Tensilica Xtensa Linux-based GNU system
2796 xtensa*-*-linux-gnu* )
2797 machine=xtensa opsys=gnu-linux
2801 unported=yes
2803 esac
2805 ### If the code above didn't choose an operating system, just choose
2806 ### an operating system based on the configuration name. You really
2807 ### only want to use this when you have no idea what the right
2808 ### operating system is; if you know what operating systems a machine
2809 ### runs, it's cleaner to make it explicit in the case statement
2810 ### above.
2811 if test x"${opsys}" = x; then
2812 case "${canonical}" in
2813 *-gnu* ) opsys=gnu ;;
2814 *-bsd4.[01] ) opsys=bsd4-1 ;;
2815 *-bsd4.2 ) opsys=bsd4-2 ;;
2816 *-bsd4.3 ) opsys=bsd4-3 ;;
2817 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2818 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2819 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2820 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2821 *-sysv4.2uw* ) opsys=unixware ;;
2822 *-sysv5uw* ) opsys=unixware ;;
2823 *-sysv5OpenUNIX* ) opsys=unixware ;;
2824 *-sysv4.1* | *-sysvr4.1* )
2825 NON_GNU_CPP=/usr/lib/cpp
2826 opsys=usg5-4 ;;
2827 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2828 if [ x$NON_GNU_CPP = x ]; then
2829 if [ -f /usr/ccs/lib/cpp ]; then
2830 NON_GNU_CPP=/usr/ccs/lib/cpp
2831 else
2832 NON_GNU_CPP=/lib/cpp
2835 opsys=usg5-4-2 ;;
2836 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2838 unported=yes
2840 esac
2843 ### Tests for sytems that we beleive are obsolete and should be desupported.
2845 case "${machine}" in
2846 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2847 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2848 echo "and it is planned to be desupported in the next version of Emacs"
2849 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2850 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2851 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2852 exit 33
2854 esac
2856 case "${opsys}" in
2857 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2858 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2859 echo "and it is planned to be desupported in the next version of Emacs"
2860 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2861 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2862 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2863 exit 44
2865 esac
2869 if test $unported = yes; then
2870 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2871 Check \`etc/MACHINES' for recognized configuration names." >&5
2872 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2873 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2874 { (exit 1); exit 1; }; }
2877 machfile="m/${machine}.h"
2878 opsysfile="s/${opsys}.h"
2881 #### Choose a compiler.
2882 test -n "$CC" && cc_specified=yes
2884 # Save the value of CFLAGS that the user specified.
2885 SPECIFIED_CFLAGS="$CFLAGS"
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2897 if test "${ac_cv_prog_CC+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2916 IFS=$as_save_IFS
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2924 else
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2931 if test -z "$ac_cv_prog_CC"; then
2932 ac_ct_CC=$CC
2933 # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_ac_ct_CC="gcc"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2963 echo "${ECHO_T}$ac_ct_CC" >&6; }
2964 else
2965 { echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6; }
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2975 whose name does not start with the host triplet. If you think this
2976 configuration is useful to you, please write to autoconf@gnu.org." >&5
2977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2978 whose name does not start with the host triplet. If you think this
2979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2980 ac_tool_warned=yes ;;
2981 esac
2982 CC=$ac_ct_CC
2984 else
2985 CC="$ac_cv_prog_CC"
2988 if test -z "$CC"; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3011 done
3012 done
3013 IFS=$as_save_IFS
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { echo "$as_me:$LINENO: result: $CC" >&5
3020 echo "${ECHO_T}$CC" >&6; }
3021 else
3022 { echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6; }
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 else
3040 ac_prog_rejected=no
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3050 continue
3052 ac_cv_prog_CC="cc"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3060 if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3063 shift
3064 if test $# != 0; then
3065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3068 shift
3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3074 CC=$ac_cv_prog_CC
3075 if test -n "$CC"; then
3076 { echo "$as_me:$LINENO: result: $CC" >&5
3077 echo "${ECHO_T}$CC" >&6; }
3078 else
3079 { echo "$as_me:$LINENO: result: no" >&5
3080 echo "${ECHO_T}no" >&6; }
3085 if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
3087 for ac_prog in cl.exe
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3112 IFS=$as_save_IFS
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { echo "$as_me:$LINENO: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6; }
3120 else
3121 { echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6; }
3126 test -n "$CC" && break
3127 done
3129 if test -z "$CC"; then
3130 ac_ct_CC=$CC
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_ac_ct_CC="$ac_prog"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3163 echo "${ECHO_T}$ac_ct_CC" >&6; }
3164 else
3165 { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3170 test -n "$ac_ct_CC" && break
3171 done
3173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3179 whose name does not start with the host triplet. If you think this
3180 configuration is useful to you, please write to autoconf@gnu.org." >&5
3181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3182 whose name does not start with the host triplet. If you think this
3183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186 CC=$ac_ct_CC
3193 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3194 See \`config.log' for more details." >&5
3195 echo "$as_me: error: no acceptable C compiler found in \$PATH
3196 See \`config.log' for more details." >&2;}
3197 { (exit 1); exit 1; }; }
3199 # Provide some information about the compiler.
3200 echo "$as_me:$LINENO: checking for C compiler version" >&5
3201 ac_compiler=`set X $ac_compile; echo $2`
3202 { (ac_try="$ac_compiler --version >&5"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compiler --version >&5") 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212 { (ac_try="$ac_compiler -v >&5"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compiler -v >&5") 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222 { (ac_try="$ac_compiler -V >&5"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_compiler -V >&5") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3241 main ()
3245 return 0;
3247 _ACEOF
3248 ac_clean_files_save=$ac_clean_files
3249 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3250 # Try to create an executable without -o first, disregard a.out.
3251 # It will help us diagnose broken compilers, and finding out an intuition
3252 # of exeext.
3253 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3254 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3255 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3257 # List of possible output files, starting from the most likely.
3258 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3259 # only as a last resort. b.out is created by i960 compilers.
3260 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3262 # The IRIX 6 linker writes into existing files which may not be
3263 # executable, retaining their permissions. Remove them first so a
3264 # subsequent execution test works.
3265 ac_rmfiles=
3266 for ac_file in $ac_files
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3270 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271 esac
3272 done
3273 rm -f $ac_rmfiles
3275 if { (ac_try="$ac_link_default"
3276 case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_link_default") 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; then
3285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3286 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3287 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3288 # so that the user can short-circuit this test for compilers unknown to
3289 # Autoconf.
3290 for ac_file in $ac_files ''
3292 test -f "$ac_file" || continue
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3296 [ab].out )
3297 # We found the default executable, but exeext='' is most
3298 # certainly right.
3299 break;;
3300 *.* )
3301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3302 then :; else
3303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 # We set ac_cv_exeext here because the later test for it is not
3306 # safe: cross compilers may not add the suffix if given an `-o'
3307 # argument, so we may need to know it at that point already.
3308 # Even if this section looks crufty: it has the advantage of
3309 # actually working.
3310 break;;
3312 break;;
3313 esac
3314 done
3315 test "$ac_cv_exeext" = no && ac_cv_exeext=
3317 else
3318 ac_file=''
3321 { echo "$as_me:$LINENO: result: $ac_file" >&5
3322 echo "${ECHO_T}$ac_file" >&6; }
3323 if test -z "$ac_file"; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3327 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: C compiler cannot create executables
3330 See \`config.log' for more details." >&2;}
3331 { (exit 77); exit 77; }; }
3334 ac_exeext=$ac_cv_exeext
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3339 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3340 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3341 # If not cross compiling, check that we can run a simple program.
3342 if test "$cross_compiling" != yes; then
3343 if { ac_try='./$ac_file'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 cross_compiling=no
3354 else
3355 if test "$cross_compiling" = maybe; then
3356 cross_compiling=yes
3357 else
3358 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details." >&5
3361 echo "$as_me: error: cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details." >&2;}
3364 { (exit 1); exit 1; }; }
3368 { echo "$as_me:$LINENO: result: yes" >&5
3369 echo "${ECHO_T}yes" >&6; }
3371 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3372 ac_clean_files=$ac_clean_files_save
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3376 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3377 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3378 echo "${ECHO_T}$cross_compiling" >&6; }
3380 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3381 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3382 if { (ac_try="$ac_link"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 break;;
3402 * ) break;;
3403 esac
3404 done
3405 else
3406 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3407 See \`config.log' for more details." >&5
3408 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details." >&2;}
3410 { (exit 1); exit 1; }; }
3413 rm -f conftest$ac_cv_exeext
3414 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3415 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3417 rm -f conftest.$ac_ext
3418 EXEEXT=$ac_cv_exeext
3419 ac_exeext=$EXEEXT
3420 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3421 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3422 if test "${ac_cv_objext+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 cat >conftest.$ac_ext <<_ACEOF
3426 /* confdefs.h. */
3427 _ACEOF
3428 cat confdefs.h >>conftest.$ac_ext
3429 cat >>conftest.$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3433 main ()
3437 return 0;
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { (ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_compile") 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; then
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458 done
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3464 See \`config.log' for more details." >&5
3465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details." >&2;}
3467 { (exit 1); exit 1; }; }
3470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3472 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3473 echo "${ECHO_T}$ac_cv_objext" >&6; }
3474 OBJEXT=$ac_cv_objext
3475 ac_objext=$OBJEXT
3476 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3489 main ()
3491 #ifndef __GNUC__
3492 choke me
3493 #endif
3496 return 0;
3498 _ACEOF
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_c_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3516 ac_compiler_gnu=yes
3517 else
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 ac_compiler_gnu=no
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3529 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3530 GCC=`test $ac_compiler_gnu = yes && echo yes`
3531 ac_test_CFLAGS=${CFLAGS+set}
3532 ac_save_CFLAGS=$CFLAGS
3533 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3534 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_cc_g+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 ac_save_c_werror_flag=$ac_c_werror_flag
3539 ac_c_werror_flag=yes
3540 ac_cv_prog_cc_g=no
3541 CFLAGS="-g"
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 ac_cv_prog_cc_g=yes
3575 else
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 CFLAGS=""
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3588 main ()
3592 return 0;
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (ac_try="$ac_compile"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_compile") 2>conftest.er1
3603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } && {
3609 test -z "$ac_c_werror_flag" ||
3610 test ! -s conftest.err
3611 } && test -s conftest.$ac_objext; then
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618 CFLAGS="-g"
3619 cat >conftest.$ac_ext <<_ACEOF
3620 /* confdefs.h. */
3621 _ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3627 main ()
3631 return 0;
3633 _ACEOF
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } && {
3648 test -z "$ac_c_werror_flag" ||
3649 test ! -s conftest.err
3650 } && test -s conftest.$ac_objext; then
3651 ac_cv_prog_cc_g=yes
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_c_werror_flag=$ac_save_c_werror_flag
3668 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3669 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3670 if test "$ac_test_CFLAGS" = set; then
3671 CFLAGS=$ac_save_CFLAGS
3672 elif test $ac_cv_prog_cc_g = yes; then
3673 if test "$GCC" = yes; then
3674 CFLAGS="-g -O2"
3675 else
3676 CFLAGS="-g"
3678 else
3679 if test "$GCC" = yes; then
3680 CFLAGS="-O2"
3681 else
3682 CFLAGS=
3685 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3686 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_cc_c89+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 ac_cv_prog_cc_c89=no
3691 ac_save_CC=$CC
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <stdarg.h>
3699 #include <stdio.h>
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3703 struct buf { int x; };
3704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3705 static char *e (p, i)
3706 char **p;
3707 int i;
3709 return p[i];
3711 static char *f (char * (*g) (char **, int), char **p, ...)
3713 char *s;
3714 va_list v;
3715 va_start (v,p);
3716 s = g (p, va_arg (v,int));
3717 va_end (v);
3718 return s;
3721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3722 function prototypes and stuff, but not '\xHH' hex character constants.
3723 These don't provoke an error unfortunately, instead are silently treated
3724 as 'x'. The following induces an error, until -std is added to get
3725 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3726 array size at least. It's necessary to write '\x00'==0 to get something
3727 that's true only with -std. */
3728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3731 inside strings and character constants. */
3732 #define FOO(x) 'x'
3733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3735 int test (int i, double x);
3736 struct s1 {int (*f) (int a);};
3737 struct s2 {int (*f) (double a);};
3738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3739 int argc;
3740 char **argv;
3742 main ()
3744 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3746 return 0;
3748 _ACEOF
3749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3750 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3752 CC="$ac_save_CC $ac_arg"
3753 rm -f conftest.$ac_objext
3754 if { (ac_try="$ac_compile"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_compile") 2>conftest.er1
3761 ac_status=$?
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest.$ac_objext; then
3770 ac_cv_prog_cc_c89=$ac_arg
3771 else
3772 echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3778 rm -f core conftest.err conftest.$ac_objext
3779 test "x$ac_cv_prog_cc_c89" != "xno" && break
3780 done
3781 rm -f conftest.$ac_ext
3782 CC=$ac_save_CC
3785 # AC_CACHE_VAL
3786 case "x$ac_cv_prog_cc_c89" in
3788 { echo "$as_me:$LINENO: result: none needed" >&5
3789 echo "${ECHO_T}none needed" >&6; } ;;
3790 xno)
3791 { echo "$as_me:$LINENO: result: unsupported" >&5
3792 echo "${ECHO_T}unsupported" >&6; } ;;
3794 CC="$CC $ac_cv_prog_cc_c89"
3795 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3796 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3797 esac
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3807 # On Suns, sometimes $CPP names a directory.
3808 if test -n "$CPP" && test -d "$CPP"; then
3809 CPP=
3812 ## If not using gcc, and on Solaris, and no CPP specified, see if
3813 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3814 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3815 test x"$CPP" = x; then
3816 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3817 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3819 if test "${emacs_cv_sunpro_c+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3830 main ()
3832 #ifndef __SUNPRO_C
3833 fail;
3834 #endif
3837 return 0;
3839 _ACEOF
3840 rm -f conftest.$ac_objext conftest$ac_exeext
3841 if { (ac_try="$ac_link"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_link") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && {
3854 test -z "$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3856 } && test -s conftest$ac_exeext &&
3857 $as_test_x conftest$ac_exeext; then
3858 emacs_cv_sunpro_c=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 emacs_cv_sunpro_c=no
3866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3867 conftest$ac_exeext conftest.$ac_ext
3870 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3871 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3873 if test x"$emacs_cv_sunpro_c" = xyes; then
3874 NON_GNU_CPP="$CC -E -Xs"
3878 #### Some systems specify a CPP to use unless we are using GCC.
3879 #### Now that we know whether we are using GCC, we can decide whether
3880 #### to use that one.
3881 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3882 then
3883 CPP="$NON_GNU_CPP"
3886 #### Some systems specify a CC to use unless we are using GCC.
3887 #### Now that we know whether we are using GCC, we can decide whether
3888 #### to use that one.
3889 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3890 test x$cc_specified != xyes
3891 then
3892 CC="$NON_GNU_CC"
3895 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3896 then
3897 CC="$CC $GCC_TEST_OPTIONS"
3900 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3901 then
3902 CC="$CC $NON_GCC_TEST_OPTIONS"
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3912 # On Suns, sometimes $CPP names a directory.
3913 if test -n "$CPP" && test -d "$CPP"; then
3914 CPP=
3916 if test -z "$CPP"; then
3917 if test "${ac_cv_prog_CPP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920 # Double quotes because CPP needs to be expanded
3921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3923 ac_preproc_ok=false
3924 for ac_c_preproc_warn_flag in '' yes
3926 # Use a header file that comes with gcc, so configuring glibc
3927 # with a fresh cross-compiler works.
3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3929 # <limits.h> exists even on freestanding compilers.
3930 # On the NeXT, cc -E runs the code through the compiler's parser,
3931 # not just through cpp. "Syntax error" is here to catch this case.
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #ifdef __STDC__
3939 # include <limits.h>
3940 #else
3941 # include <assert.h>
3942 #endif
3943 Syntax error
3944 _ACEOF
3945 if { (ac_try="$ac_cpp conftest.$ac_ext"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null && {
3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 }; then
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 # Broken: fails on valid input.
3967 continue
3970 rm -f conftest.err conftest.$ac_ext
3972 # OK, works on sane cases. Now check whether nonexistent headers
3973 # can be detected and how.
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h. */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3980 #include <ac_nonexistent.h>
3981 _ACEOF
3982 if { (ac_try="$ac_cpp conftest.$ac_ext"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } >/dev/null && {
3995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 }; then
3998 # Broken: success on invalid input.
3999 continue
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 # Passes both tests.
4005 ac_preproc_ok=:
4006 break
4009 rm -f conftest.err conftest.$ac_ext
4011 done
4012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4013 rm -f conftest.err conftest.$ac_ext
4014 if $ac_preproc_ok; then
4015 break
4018 done
4019 ac_cv_prog_CPP=$CPP
4022 CPP=$ac_cv_prog_CPP
4023 else
4024 ac_cv_prog_CPP=$CPP
4026 { echo "$as_me:$LINENO: result: $CPP" >&5
4027 echo "${ECHO_T}$CPP" >&6; }
4028 ac_preproc_ok=false
4029 for ac_c_preproc_warn_flag in '' yes
4031 # Use a header file that comes with gcc, so configuring glibc
4032 # with a fresh cross-compiler works.
4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034 # <limits.h> exists even on freestanding compilers.
4035 # On the NeXT, cc -E runs the code through the compiler's parser,
4036 # not just through cpp. "Syntax error" is here to catch this case.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #ifdef __STDC__
4044 # include <limits.h>
4045 #else
4046 # include <assert.h>
4047 #endif
4048 Syntax error
4049 _ACEOF
4050 if { (ac_try="$ac_cpp conftest.$ac_ext"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } >/dev/null && {
4063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 }; then
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 # Broken: fails on valid input.
4072 continue
4075 rm -f conftest.err conftest.$ac_ext
4077 # OK, works on sane cases. Now check whether nonexistent headers
4078 # can be detected and how.
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if { (ac_try="$ac_cpp conftest.$ac_ext"
4088 case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091 esac
4092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null && {
4100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 }; then
4103 # Broken: success on invalid input.
4104 continue
4105 else
4106 echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4114 rm -f conftest.err conftest.$ac_ext
4116 done
4117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118 rm -f conftest.err conftest.$ac_ext
4119 if $ac_preproc_ok; then
4121 else
4122 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4123 See \`config.log' for more details." >&5
4124 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4125 See \`config.log' for more details." >&2;}
4126 { (exit 1); exit 1; }; }
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4137 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4138 if test "${ac_cv_path_GREP+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 # Extract the first word of "grep ggrep" to use in msg output
4142 if test -z "$GREP"; then
4143 set dummy grep ggrep; ac_prog_name=$2
4144 if test "${ac_cv_path_GREP+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147 ac_path_GREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
4154 for ac_prog in grep ggrep; do
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4157 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4158 # Check for GNU ac_path_GREP and select it if it is found.
4159 # Check for GNU $ac_path_GREP
4160 case `"$ac_path_GREP" --version 2>&1` in
4161 *GNU*)
4162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164 ac_count=0
4165 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4166 while :
4168 cat "conftest.in" "conftest.in" >"conftest.tmp"
4169 mv "conftest.tmp" "conftest.in"
4170 cp "conftest.in" "conftest.nl"
4171 echo 'GREP' >> "conftest.nl"
4172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174 ac_count=`expr $ac_count + 1`
4175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4176 # Best one so far, save it but keep looking for a better one
4177 ac_cv_path_GREP="$ac_path_GREP"
4178 ac_path_GREP_max=$ac_count
4180 # 10*(2^10) chars as input seems more than enough
4181 test $ac_count -gt 10 && break
4182 done
4183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4187 $ac_path_GREP_found && break 3
4188 done
4189 done
4191 done
4192 IFS=$as_save_IFS
4197 GREP="$ac_cv_path_GREP"
4198 if test -z "$GREP"; then
4199 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4200 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4201 { (exit 1); exit 1; }; }
4204 else
4205 ac_cv_path_GREP=$GREP
4210 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4211 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4212 GREP="$ac_cv_path_GREP"
4215 { echo "$as_me:$LINENO: checking for egrep" >&5
4216 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4217 if test "${ac_cv_path_EGREP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4221 then ac_cv_path_EGREP="$GREP -E"
4222 else
4223 # Extract the first word of "egrep" to use in msg output
4224 if test -z "$EGREP"; then
4225 set dummy egrep; ac_prog_name=$2
4226 if test "${ac_cv_path_EGREP+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 ac_path_EGREP_found=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_prog in egrep; do
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4239 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4240 # Check for GNU ac_path_EGREP and select it if it is found.
4241 # Check for GNU $ac_path_EGREP
4242 case `"$ac_path_EGREP" --version 2>&1` in
4243 *GNU*)
4244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4246 ac_count=0
4247 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4248 while :
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 echo 'EGREP' >> "conftest.nl"
4254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256 ac_count=`expr $ac_count + 1`
4257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_EGREP="$ac_path_EGREP"
4260 ac_path_EGREP_max=$ac_count
4262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4264 done
4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266 esac
4269 $ac_path_EGREP_found && break 3
4270 done
4271 done
4273 done
4274 IFS=$as_save_IFS
4279 EGREP="$ac_cv_path_EGREP"
4280 if test -z "$EGREP"; then
4281 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4282 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4283 { (exit 1); exit 1; }; }
4286 else
4287 ac_cv_path_EGREP=$EGREP
4293 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4294 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4295 EGREP="$ac_cv_path_EGREP"
4299 { echo "$as_me:$LINENO: checking for AIX" >&5
4300 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h. */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4307 #ifdef _AIX
4309 #endif
4311 _ACEOF
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313 $EGREP "yes" >/dev/null 2>&1; then
4314 { echo "$as_me:$LINENO: result: yes" >&5
4315 echo "${ECHO_T}yes" >&6; }
4316 cat >>confdefs.h <<\_ACEOF
4317 #define _ALL_SOURCE 1
4318 _ACEOF
4320 else
4321 { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4324 rm -f conftest*
4328 cat >>confdefs.h <<\_ACEOF
4329 #define _GNU_SOURCE 1
4330 _ACEOF
4334 ### Use -Wno-pointer-sign if the compiler supports it
4335 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4336 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4337 SAVE_CFLAGS="$CFLAGS"
4338 CFLAGS="$CFLAGS -Wno-pointer-sign"
4339 cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h. */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4347 main ()
4351 return 0;
4353 _ACEOF
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
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_compile") 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); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.$ac_objext; then
4371 has_option=yes
4372 else
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 has_option=no
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 if test $has_option = yes; then
4381 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4383 { echo "$as_me:$LINENO: result: $has_option" >&5
4384 echo "${ECHO_T}$has_option" >&6; }
4385 CFLAGS="$SAVE_CFLAGS"
4386 unset has_option
4387 unset SAVE_CFLAGS
4389 #### Some other nice autoconf tests.
4391 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4392 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4393 LN_S=$as_ln_s
4394 if test "$LN_S" = "ln -s"; then
4395 { echo "$as_me:$LINENO: result: yes" >&5
4396 echo "${ECHO_T}yes" >&6; }
4397 else
4398 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4399 echo "${ECHO_T}no, using $LN_S" >&6; }
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4408 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4411 CPP=
4413 if test -z "$CPP"; then
4414 if test "${ac_cv_prog_CPP+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 # Double quotes because CPP needs to be expanded
4418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4420 ac_preproc_ok=false
4421 for ac_c_preproc_warn_flag in '' yes
4423 # Use a header file that comes with gcc, so configuring glibc
4424 # with a fresh cross-compiler works.
4425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426 # <limits.h> exists even on freestanding compilers.
4427 # On the NeXT, cc -E runs the code through the compiler's parser,
4428 # not just through cpp. "Syntax error" is here to catch this case.
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4435 #ifdef __STDC__
4436 # include <limits.h>
4437 #else
4438 # include <assert.h>
4439 #endif
4440 Syntax error
4441 _ACEOF
4442 if { (ac_try="$ac_cpp conftest.$ac_ext"
4443 case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446 esac
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } >/dev/null && {
4455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4456 test ! -s conftest.err
4457 }; then
4459 else
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 # Broken: fails on valid input.
4464 continue
4467 rm -f conftest.err conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h. */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4477 #include <ac_nonexistent.h>
4478 _ACEOF
4479 if { (ac_try="$ac_cpp conftest.$ac_ext"
4480 case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4486 ac_status=$?
4487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } >/dev/null && {
4492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4493 test ! -s conftest.err
4494 }; then
4495 # Broken: success on invalid input.
4496 continue
4497 else
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 # Passes both tests.
4502 ac_preproc_ok=:
4503 break
4506 rm -f conftest.err conftest.$ac_ext
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then
4512 break
4515 done
4516 ac_cv_prog_CPP=$CPP
4519 CPP=$ac_cv_prog_CPP
4520 else
4521 ac_cv_prog_CPP=$CPP
4523 { echo "$as_me:$LINENO: result: $CPP" >&5
4524 echo "${ECHO_T}$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545 Syntax error
4546 _ACEOF
4547 if { (ac_try="$ac_cpp conftest.$ac_ext"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null && {
4560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 }; then
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4568 # Broken: fails on valid input.
4569 continue
4572 rm -f conftest.err conftest.$ac_ext
4574 # OK, works on sane cases. Now check whether nonexistent headers
4575 # can be detected and how.
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <ac_nonexistent.h>
4583 _ACEOF
4584 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null && {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 }; then
4600 # Broken: success on invalid input.
4601 continue
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4606 # Passes both tests.
4607 ac_preproc_ok=:
4608 break
4611 rm -f conftest.err conftest.$ac_ext
4613 done
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4618 else
4619 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4620 See \`config.log' for more details." >&5
4621 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4622 See \`config.log' for more details." >&2;}
4623 { (exit 1); exit 1; }; }
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632 # Find a good install program. We prefer a C program (faster),
4633 # so one script is as good as another. But avoid the broken or
4634 # incompatible versions:
4635 # SysV /etc/install, /usr/sbin/install
4636 # SunOS /usr/etc/install
4637 # IRIX /sbin/install
4638 # AIX /bin/install
4639 # AmigaOS /C/install, which installs bootblocks on floppy discs
4640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4643 # OS/2's system install, which has a completely different semantic
4644 # ./install, which can be erroneously created by make from ./install.sh.
4645 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4646 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4647 if test -z "$INSTALL"; then
4648 if test "${ac_cv_path_install+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 # Account for people who put trailing slashes in PATH elements.
4657 case $as_dir/ in
4658 ./ | .// | /cC/* | \
4659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4660 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4661 /usr/ucb/* ) ;;
4663 # OSF1 and SCO ODT 3.0 have their own names for install.
4664 # Don't use installbsd from OSF since it installs stuff as root
4665 # by default.
4666 for ac_prog in ginstall scoinst install; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4669 if test $ac_prog = install &&
4670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4671 # AIX install. It has an incompatible calling convention.
4673 elif test $ac_prog = install &&
4674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4675 # program-specific install script used by HP pwplus--don't use.
4677 else
4678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4679 break 3
4682 done
4683 done
4685 esac
4686 done
4687 IFS=$as_save_IFS
4691 if test "${ac_cv_path_install+set}" = set; then
4692 INSTALL=$ac_cv_path_install
4693 else
4694 # As a last resort, use the slow shell script. Don't cache a
4695 # value for INSTALL within a source directory, because that will
4696 # break other packages using the cache if that directory is
4697 # removed, or if the value is a relative name.
4698 INSTALL=$ac_install_sh
4701 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4702 echo "${ECHO_T}$INSTALL" >&6; }
4704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4705 # It thinks the first close brace ends the variable substitution.
4706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4708 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4710 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4712 if test "x$RANLIB" = x; then
4713 if test -n "$ac_tool_prefix"; then
4714 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4718 if test "${ac_cv_prog_RANLIB+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 if test -n "$RANLIB"; then
4722 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 RANLIB=$ac_cv_prog_RANLIB
4742 if test -n "$RANLIB"; then
4743 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4744 echo "${ECHO_T}$RANLIB" >&6; }
4745 else
4746 { echo "$as_me:$LINENO: result: no" >&5
4747 echo "${ECHO_T}no" >&6; }
4752 if test -z "$ac_cv_prog_RANLIB"; then
4753 ac_ct_RANLIB=$RANLIB
4754 # Extract the first word of "ranlib", so it can be a program name with args.
4755 set dummy ranlib; ac_word=$2
4756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 if test -n "$ac_ct_RANLIB"; then
4762 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_prog_ac_ct_RANLIB="ranlib"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 break 2
4775 done
4776 done
4777 IFS=$as_save_IFS
4781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4782 if test -n "$ac_ct_RANLIB"; then
4783 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4784 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4785 else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4790 if test "x$ac_ct_RANLIB" = x; then
4791 RANLIB=":"
4792 else
4793 case $cross_compiling:$ac_tool_warned in
4794 yes:)
4795 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4796 whose name does not start with the host triplet. If you think this
4797 configuration is useful to you, please write to autoconf@gnu.org." >&5
4798 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4799 whose name does not start with the host triplet. If you think this
4800 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 RANLIB=$ac_ct_RANLIB
4805 else
4806 RANLIB="$ac_cv_prog_RANLIB"
4810 # Extract the first word of "install-info", so it can be a program name with args.
4811 set dummy install-info; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 case $INSTALL_INFO in
4818 [\\/]* | ?:[\\/]*)
4819 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4838 esac
4840 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4841 if test -n "$INSTALL_INFO"; then
4842 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4843 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4844 else
4845 { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4850 # Extract the first word of "install-info", so it can be a program name with args.
4851 set dummy install-info; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 case $INSTALL_INFO in
4858 [\\/]* | ?:[\\/]*)
4859 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in /usr/sbin
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4878 esac
4880 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4881 if test -n "$INSTALL_INFO"; then
4882 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4883 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4884 else
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 # Extract the first word of "install-info", so it can be a program name with args.
4891 set dummy install-info; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897 case $INSTALL_INFO in
4898 [\\/]* | ?:[\\/]*)
4899 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in /sbin
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4917 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4919 esac
4921 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4922 if test -n "$INSTALL_INFO"; then
4923 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4924 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4925 else
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 # Extract the first word of "gzip", so it can be a program name with args.
4932 set dummy gzip; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 case $GZIP_PROG in
4939 [\\/]* | ?:[\\/]*)
4940 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4959 esac
4961 GZIP_PROG=$ac_cv_path_GZIP_PROG
4962 if test -n "$GZIP_PROG"; then
4963 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4964 echo "${ECHO_T}$GZIP_PROG" >&6; }
4965 else
4966 { echo "$as_me:$LINENO: result: no" >&5
4967 echo "${ECHO_T}no" >&6; }
4973 ## Need makeinfo >= 4.6 (?) to build the manuals.
4974 # Extract the first word of "makeinfo", so it can be a program name with args.
4975 set dummy makeinfo; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 case $MAKEINFO in
4982 [\\/]* | ?:[\\/]*)
4983 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5001 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5003 esac
5005 MAKEINFO=$ac_cv_path_MAKEINFO
5006 if test -n "$MAKEINFO"; then
5007 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5008 echo "${ECHO_T}$MAKEINFO" >&6; }
5009 else
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5015 if test "$MAKEINFO" != "no" && \
5016 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
5017 MAKEINFO=no
5020 if test "$MAKEINFO" = "no"; then
5021 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5022 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5023 { (exit 1); exit 1; }; }
5028 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5029 then
5030 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5033 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5034 then
5035 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5039 late_LDFLAGS=$LDFLAGS
5040 if test "$GCC" = yes; then
5041 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5042 else
5043 LDFLAGS="$LDFLAGS -znocombreloc"
5046 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5047 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5048 cat >conftest.$ac_ext <<_ACEOF
5049 main(){return 0;}
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
5069 { echo "$as_me:$LINENO: result: yes" >&5
5070 echo "${ECHO_T}yes" >&6; }
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 LDFLAGS=$late_LDFLAGS
5076 { echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6; }
5080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5081 conftest$ac_exeext conftest.$ac_ext
5083 #### Extract some information from the operating system and machine files.
5085 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5086 - which libraries the lib-src programs will want, and
5087 - whether the GNU malloc routines are usable..." >&5
5088 echo "$as_me: checking the machine- and system-dependent files to find out
5089 - which libraries the lib-src programs will want, and
5090 - whether the GNU malloc routines are usable..." >&6;}
5092 ### First figure out CFLAGS (which we use for running the compiler here)
5093 ### and REAL_CFLAGS (which we use for real compilation).
5094 ### The two are the same except on a few systems, where they are made
5095 ### different to work around various lossages. For example,
5096 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5097 ### as implying static linking.
5099 ### If the CFLAGS env var is specified, we use that value
5100 ### instead of the default.
5102 ### It's not important that this name contain the PID; you can't run
5103 ### two configures in the same directory and have anything work
5104 ### anyway.
5105 tempcname="conftest.c"
5107 echo '
5108 #include "'${srcdir}'/src/'${opsysfile}'"
5109 #include "'${srcdir}'/src/'${machfile}'"
5110 #ifndef LIBS_MACHINE
5111 #define LIBS_MACHINE
5112 #endif
5113 #ifndef LIBS_SYSTEM
5114 #define LIBS_SYSTEM
5115 #endif
5116 #ifndef C_SWITCH_SYSTEM
5117 #define C_SWITCH_SYSTEM
5118 #endif
5119 #ifndef C_SWITCH_MACHINE
5120 #define C_SWITCH_MACHINE
5121 #endif
5122 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5123 configure___ c_switch_system=C_SWITCH_SYSTEM
5124 configure___ c_switch_machine=C_SWITCH_MACHINE
5126 #ifndef LIB_X11_LIB
5127 #define LIB_X11_LIB -lX11
5128 #endif
5130 #ifndef LIBX11_SYSTEM
5131 #define LIBX11_SYSTEM
5132 #endif
5133 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5135 #ifdef UNEXEC
5136 configure___ unexec=UNEXEC
5137 #else
5138 configure___ unexec=unexec.o
5139 #endif
5141 #ifdef SYSTEM_MALLOC
5142 configure___ system_malloc=yes
5143 #else
5144 configure___ system_malloc=no
5145 #endif
5147 #ifdef USE_MMAP_FOR_BUFFERS
5148 configure___ use_mmap_for_buffers=yes
5149 #else
5150 configure___ use_mmap_for_buffers=no
5151 #endif
5153 #ifndef C_DEBUG_SWITCH
5154 #define C_DEBUG_SWITCH -g
5155 #endif
5157 #ifndef C_OPTIMIZE_SWITCH
5158 #ifdef __GNUC__
5159 #define C_OPTIMIZE_SWITCH -O2
5160 #else
5161 #define C_OPTIMIZE_SWITCH -O
5162 #endif
5163 #endif
5165 #ifndef C_WARNINGS_SWITCH
5166 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5167 #endif
5169 #ifndef LD_SWITCH_MACHINE
5170 #define LD_SWITCH_MACHINE
5171 #endif
5173 #ifndef LD_SWITCH_SYSTEM
5174 #define LD_SWITCH_SYSTEM
5175 #endif
5177 #ifndef LD_SWITCH_X_SITE_AUX
5178 #define LD_SWITCH_X_SITE_AUX
5179 #endif
5181 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5182 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5184 #ifdef THIS_IS_CONFIGURE
5186 /* Get the CFLAGS for tests in configure. */
5187 #ifdef __GNUC__
5188 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5189 #else
5190 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5191 #endif
5193 #else /* not THIS_IS_CONFIGURE */
5195 /* Get the CFLAGS for real compilation. */
5196 #ifdef __GNUC__
5197 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5198 #else
5199 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5200 #endif
5202 #endif /* not THIS_IS_CONFIGURE */
5203 ' > ${tempcname}
5205 # The value of CPP is a quoted variable reference, so we need to do this
5206 # to get its actual value...
5207 CPP=`eval "echo $CPP"`
5208 eval `${CPP} -Isrc ${tempcname} \
5209 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5210 if test "x$SPECIFIED_CFLAGS" = x; then
5211 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5212 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5213 else
5214 REAL_CFLAGS="$CFLAGS"
5216 rm ${tempcname}
5218 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5220 ### Make sure subsequent tests use flags consistent with the build flags.
5222 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5223 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5224 else
5225 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5230 # Check whether --enable-largefile was given.
5231 if test "${enable_largefile+set}" = set; then
5232 enableval=$enable_largefile;
5235 if test "$enable_largefile" != no; then
5237 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5238 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5239 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 ac_cv_sys_largefile_CC=no
5243 if test "$GCC" != yes; then
5244 ac_save_CC=$CC
5245 while :; do
5246 # IRIX 6.2 and later do not support large files by default,
5247 # so use the C compiler's -n32 option if that helps.
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5262 ? 1 : -1];
5264 main ()
5268 return 0;
5270 _ACEOF
5271 rm -f conftest.$ac_objext
5272 if { (ac_try="$ac_compile"
5273 case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_compile") 2>conftest.er1
5279 ac_status=$?
5280 grep -v '^ *+' conftest.er1 >conftest.err
5281 rm -f conftest.er1
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } && {
5285 test -z "$ac_c_werror_flag" ||
5286 test ! -s conftest.err
5287 } && test -s conftest.$ac_objext; then
5288 break
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5296 rm -f core conftest.err conftest.$ac_objext
5297 CC="$CC -n32"
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 ac_cv_sys_largefile_CC=' -n32'; break
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5323 rm -f core conftest.err conftest.$ac_objext
5324 break
5325 done
5326 CC=$ac_save_CC
5327 rm -f conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5331 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5332 if test "$ac_cv_sys_largefile_CC" != no; then
5333 CC=$CC$ac_cv_sys_largefile_CC
5336 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5337 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5338 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341 while :; do
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 #include <sys/types.h>
5349 /* Check that off_t can represent 2**63 - 1 correctly.
5350 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5351 since some C++ compilers masquerading as C compilers
5352 incorrectly reject 9223372036854775807. */
5353 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5354 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5355 && LARGE_OFF_T % 2147483647 == 1)
5356 ? 1 : -1];
5358 main ()
5362 return 0;
5364 _ACEOF
5365 rm -f conftest.$ac_objext
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_cv_sys_file_offset_bits=no; break
5383 else
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 #define _FILE_OFFSET_BITS 64
5398 #include <sys/types.h>
5399 /* Check that off_t can represent 2**63 - 1 correctly.
5400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401 since some C++ compilers masquerading as C compilers
5402 incorrectly reject 9223372036854775807. */
5403 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405 && LARGE_OFF_T % 2147483647 == 1)
5406 ? 1 : -1];
5408 main ()
5412 return 0;
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (ac_try="$ac_compile"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } && {
5429 test -z "$ac_c_werror_flag" ||
5430 test ! -s conftest.err
5431 } && test -s conftest.$ac_objext; then
5432 ac_cv_sys_file_offset_bits=64; break
5433 else
5434 echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441 ac_cv_sys_file_offset_bits=unknown
5442 break
5443 done
5445 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5446 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5447 case $ac_cv_sys_file_offset_bits in #(
5448 no | unknown) ;;
5450 cat >>confdefs.h <<_ACEOF
5451 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5452 _ACEOF
5454 esac
5455 rm -f conftest*
5456 if test $ac_cv_sys_file_offset_bits = unknown; then
5457 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5458 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5459 if test "${ac_cv_sys_large_files+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 while :; do
5463 cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h. */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5479 main ()
5483 return 0;
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_sys_large_files=no; break
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #define _LARGE_FILES 1
5519 #include <sys/types.h>
5520 /* Check that off_t can represent 2**63 - 1 correctly.
5521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5522 since some C++ compilers masquerading as C compilers
5523 incorrectly reject 9223372036854775807. */
5524 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5526 && LARGE_OFF_T % 2147483647 == 1)
5527 ? 1 : -1];
5529 main ()
5533 return 0;
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5538 case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_cv_sys_large_files=1; break
5554 else
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 ac_cv_sys_large_files=unknown
5563 break
5564 done
5566 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5567 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5568 case $ac_cv_sys_large_files in #(
5569 no | unknown) ;;
5571 cat >>confdefs.h <<_ACEOF
5572 #define _LARGE_FILES $ac_cv_sys_large_files
5573 _ACEOF
5575 esac
5576 rm -f conftest*
5582 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5583 ### be located in either /usr/lib64 or /usr/lib.
5584 case "${canonical}" in
5585 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5586 if test -d /usr/lib64; then
5588 cat >>confdefs.h <<\_ACEOF
5589 #define HAVE_LIB64_DIR 1
5590 _ACEOF
5593 esac
5598 if test "${with_sound}" != "no"; then
5599 # Sound support for GNU/Linux and the free BSDs.
5600 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5601 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5602 if test "${ac_cv_header_stdc+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605 cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h. */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <stdlib.h>
5612 #include <stdarg.h>
5613 #include <string.h>
5614 #include <float.h>
5617 main ()
5621 return 0;
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_cv_header_stdc=yes
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 ac_cv_header_stdc=no
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651 if test $ac_cv_header_stdc = yes; then
5652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <string.h>
5661 _ACEOF
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "memchr" >/dev/null 2>&1; then
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f conftest*
5672 if test $ac_cv_header_stdc = yes; then
5673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <stdlib.h>
5682 _ACEOF
5683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5684 $EGREP "free" >/dev/null 2>&1; then
5686 else
5687 ac_cv_header_stdc=no
5689 rm -f conftest*
5693 if test $ac_cv_header_stdc = yes; then
5694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5695 if test "$cross_compiling" = yes; then
5697 else
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <ctype.h>
5705 #include <stdlib.h>
5706 #if ((' ' & 0x0FF) == 0x020)
5707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5709 #else
5710 # define ISLOWER(c) \
5711 (('a' <= (c) && (c) <= 'i') \
5712 || ('j' <= (c) && (c) <= 'r') \
5713 || ('s' <= (c) && (c) <= 'z'))
5714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5715 #endif
5717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5719 main ()
5721 int i;
5722 for (i = 0; i < 256; i++)
5723 if (XOR (islower (i), ISLOWER (i))
5724 || toupper (i) != TOUPPER (i))
5725 return 2;
5726 return 0;
5728 _ACEOF
5729 rm -f conftest$ac_exeext
5730 if { (ac_try="$ac_link"
5731 case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_link") 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5740 { (case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_try") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5750 else
5751 echo "$as_me: program exited with status $ac_status" >&5
5752 echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5755 ( exit $ac_status )
5756 ac_cv_header_stdc=no
5758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5764 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5765 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5766 if test $ac_cv_header_stdc = yes; then
5768 cat >>confdefs.h <<\_ACEOF
5769 #define STDC_HEADERS 1
5770 _ACEOF
5774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5785 inttypes.h stdint.h unistd.h
5787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 $ac_includes_default
5801 #include <$ac_header>
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (ac_try="$ac_compile"
5805 case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5820 eval "$as_ac_Header=yes"
5821 else
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5825 eval "$as_ac_Header=no"
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 ac_res=`eval echo '${'$as_ac_Header'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836 _ACEOF
5840 done
5846 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_res=`eval echo '${'$as_ac_Header'}'`
5856 { echo "$as_me:$LINENO: result: $ac_res" >&5
5857 echo "${ECHO_T}$ac_res" >&6; }
5858 else
5859 # Is the header compilable?
5860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 $ac_includes_default
5869 #include <$ac_header>
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest.$ac_objext; then
5888 ac_header_compiler=yes
5889 else
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 ac_header_compiler=no
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5898 echo "${ECHO_T}$ac_header_compiler" >&6; }
5900 # Is the header present?
5901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 #include <$ac_header>
5910 _ACEOF
5911 if { (ac_try="$ac_cpp conftest.$ac_ext"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null && {
5924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5925 test ! -s conftest.err
5926 }; then
5927 ac_header_preproc=yes
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5932 ac_header_preproc=no
5935 rm -f conftest.err conftest.$ac_ext
5936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5937 echo "${ECHO_T}$ac_header_preproc" >&6; }
5939 # So? What about this header?
5940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5941 yes:no: )
5942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5946 ac_header_preproc=yes
5948 no:yes:* )
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5963 esac
5964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969 eval "$as_ac_Header=\$ac_header_preproc"
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5977 cat >>confdefs.h <<_ACEOF
5978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5979 _ACEOF
5983 done
5985 # Emulation library used on NetBSD.
5986 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5987 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5988 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 ac_check_lib_save_LIBS=$LIBS
5992 LIBS="-lossaudio $LIBS"
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
6000 /* Override any GCC internal prototype to avoid an error.
6001 Use char because int might match the return type of a GCC
6002 builtin and then its argument prototype would still apply. */
6003 #ifdef __cplusplus
6004 extern "C"
6005 #endif
6006 char _oss_ioctl ();
6008 main ()
6010 return _oss_ioctl ();
6012 return 0;
6014 _ACEOF
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (ac_try="$ac_link"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_link") 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } && {
6029 test -z "$ac_c_werror_flag" ||
6030 test ! -s conftest.err
6031 } && test -s conftest$ac_exeext &&
6032 $as_test_x conftest$ac_exeext; then
6033 ac_cv_lib_ossaudio__oss_ioctl=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_lib_ossaudio__oss_ioctl=no
6041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6042 conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_check_lib_save_LIBS
6045 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6046 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6047 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6048 LIBSOUND=-lossaudio
6049 else
6050 LIBSOUND=
6055 ALSA_REQUIRED=1.0.0
6056 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6058 succeeded=no
6060 # Extract the first word of "pkg-config", so it can be a program name with args.
6061 set dummy pkg-config; ac_word=$2
6062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 case $PKG_CONFIG in
6068 [\\/]* | ?:[\\/]*)
6069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6083 done
6084 done
6085 IFS=$as_save_IFS
6087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6089 esac
6091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6092 if test -n "$PKG_CONFIG"; then
6093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6095 else
6096 { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6102 if test "$PKG_CONFIG" = "no" ; then
6103 HAVE_ALSA=no
6104 else
6105 PKG_CONFIG_MIN_VERSION=0.9.0
6106 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6107 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6108 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6110 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6111 { echo "$as_me:$LINENO: result: yes" >&5
6112 echo "${ECHO_T}yes" >&6; }
6113 succeeded=yes
6115 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6116 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6117 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6118 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6119 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6121 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6122 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6123 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6124 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6125 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6126 else
6127 { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6129 ALSA_CFLAGS=""
6130 ALSA_LIBS=""
6131 ## If we have a custom action on failure, don't print errors, but
6132 ## do set a variable so people can do so.
6133 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6139 else
6140 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6141 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6145 if test $succeeded = yes; then
6146 HAVE_ALSA=yes
6147 else
6148 HAVE_ALSA=no
6151 if test $HAVE_ALSA = yes; then
6152 SAVE_CFLAGS="$CFLAGS"
6153 SAVE_LDFLAGS="$LDFLAGS"
6154 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6155 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6156 cat >conftest.$ac_ext <<_ACEOF
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #include <asoundlib.h>
6164 main ()
6166 snd_lib_error_set_handler (0);
6168 return 0;
6170 _ACEOF
6171 rm -f conftest.$ac_objext
6172 if { (ac_try="$ac_compile"
6173 case "(($ac_try" in
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6176 esac
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compile") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
6188 emacs_alsa_normal=yes
6189 else
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 emacs_alsa_normal=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 if test "$emacs_alsa_normal" != yes; then
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 #include <alsa/asoundlib.h>
6206 main ()
6208 snd_lib_error_set_handler (0);
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext
6214 if { (ac_try="$ac_compile"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6230 emacs_alsa_subdir=yes
6231 else
6232 echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6235 emacs_alsa_subdir=no
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 if test "$emacs_alsa_subdir" != yes; then
6240 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6241 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6242 { (exit 1); exit 1; }; }
6244 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6247 CFLAGS="$SAVE_CFLAGS"
6248 LDFLAGS="$SAVE_LDFLAGS"
6249 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6250 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_ALSA 1
6254 _ACEOF
6285 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6286 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6287 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6288 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6289 sys/utsname.h pwd.h
6291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_res=`eval echo '${'$as_ac_Header'}'`
6299 { echo "$as_me:$LINENO: result: $ac_res" >&5
6300 echo "${ECHO_T}$ac_res" >&6; }
6301 else
6302 # Is the header compilable?
6303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6312 #include <$ac_header>
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_header_compiler=yes
6332 else
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_compiler=no
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6341 echo "${ECHO_T}$ac_header_compiler" >&6; }
6343 # Is the header present?
6344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h. */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (ac_try="$ac_cpp conftest.$ac_ext"
6355 case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null && {
6367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 }; then
6370 ac_header_preproc=yes
6371 else
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_header_preproc=no
6378 rm -f conftest.err conftest.$ac_ext
6379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6; }
6382 # So? What about this header?
6383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6384 yes:no: )
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6389 ac_header_preproc=yes
6391 no:yes:* )
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6406 esac
6407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 eval "$as_ac_Header=\$ac_header_preproc"
6414 ac_res=`eval echo '${'$as_ac_Header'}'`
6415 { echo "$as_me:$LINENO: result: $ac_res" >&5
6416 echo "${ECHO_T}$ac_res" >&6; }
6419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6422 _ACEOF
6426 done
6429 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6430 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <sys/personality.h>
6439 main ()
6441 personality (PER_LINUX32)
6443 return 0;
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && {
6460 test -z "$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6462 } && test -s conftest.$ac_objext; then
6463 emacs_cv_personality_linux32=yes
6464 else
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6468 emacs_cv_personality_linux32=no
6471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6472 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6473 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6475 if test $emacs_cv_personality_linux32 = yes; then
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_PERSONALITY_LINUX32 1
6479 _ACEOF
6484 for ac_header in term.h
6486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <$ac_header>
6499 _ACEOF
6500 if { (ac_try="$ac_cpp conftest.$ac_ext"
6501 case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6507 ac_status=$?
6508 grep -v '^ *+' conftest.er1 >conftest.err
6509 rm -f conftest.er1
6510 cat conftest.err >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } >/dev/null && {
6513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 }; then
6516 eval "$as_ac_Header=yes"
6517 else
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 eval "$as_ac_Header=no"
6524 rm -f conftest.err conftest.$ac_ext
6526 ac_res=`eval echo '${'$as_ac_Header'}'`
6527 { echo "$as_me:$LINENO: result: $ac_res" >&5
6528 echo "${ECHO_T}$ac_res" >&6; }
6529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6530 cat >>confdefs.h <<_ACEOF
6531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6532 _ACEOF
6536 done
6538 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6539 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6540 if test "${ac_cv_header_stdc+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 else
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #include <stdlib.h>
6550 #include <stdarg.h>
6551 #include <string.h>
6552 #include <float.h>
6555 main ()
6559 return 0;
6561 _ACEOF
6562 rm -f conftest.$ac_objext
6563 if { (ac_try="$ac_compile"
6564 case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_compile") 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 } && test -s conftest.$ac_objext; then
6579 ac_cv_header_stdc=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6584 ac_cv_header_stdc=no
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 if test $ac_cv_header_stdc = yes; then
6590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <string.h>
6599 _ACEOF
6600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "memchr" >/dev/null 2>&1; then
6603 else
6604 ac_cv_header_stdc=no
6606 rm -f conftest*
6610 if test $ac_cv_header_stdc = yes; then
6611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <stdlib.h>
6620 _ACEOF
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 $EGREP "free" >/dev/null 2>&1; then
6624 else
6625 ac_cv_header_stdc=no
6627 rm -f conftest*
6631 if test $ac_cv_header_stdc = yes; then
6632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6633 if test "$cross_compiling" = yes; then
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 #include <ctype.h>
6643 #include <stdlib.h>
6644 #if ((' ' & 0x0FF) == 0x020)
6645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6647 #else
6648 # define ISLOWER(c) \
6649 (('a' <= (c) && (c) <= 'i') \
6650 || ('j' <= (c) && (c) <= 'r') \
6651 || ('s' <= (c) && (c) <= 'z'))
6652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6653 #endif
6655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6657 main ()
6659 int i;
6660 for (i = 0; i < 256; i++)
6661 if (XOR (islower (i), ISLOWER (i))
6662 || toupper (i) != TOUPPER (i))
6663 return 2;
6664 return 0;
6666 _ACEOF
6667 rm -f conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_link") 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6678 { (case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_try") 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6688 else
6689 echo "$as_me: program exited with status $ac_status" >&5
6690 echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6693 ( exit $ac_status )
6694 ac_cv_header_stdc=no
6696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6702 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6703 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6704 if test $ac_cv_header_stdc = yes; then
6706 cat >>confdefs.h <<\_ACEOF
6707 #define STDC_HEADERS 1
6708 _ACEOF
6712 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_time+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 #include <sys/time.h>
6725 #include <time.h>
6728 main ()
6730 if ((struct tm *) 0)
6731 return 0;
6733 return 0;
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6738 case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_cv_header_time=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_cv_header_time=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6764 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6765 if test $ac_cv_header_time = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define TIME_WITH_SYS_TIME 1
6769 _ACEOF
6773 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6774 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6775 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778 cat >conftest.$ac_ext <<_ACEOF
6779 /* confdefs.h. */
6780 _ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 $ac_includes_default
6786 main ()
6788 #ifndef sys_siglist
6789 (void) sys_siglist;
6790 #endif
6793 return 0;
6795 _ACEOF
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6798 case "(($ac_try" in
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
6804 ac_status=$?
6805 grep -v '^ *+' conftest.er1 >conftest.err
6806 rm -f conftest.er1
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
6813 ac_cv_have_decl_sys_siglist=yes
6814 else
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_cv_have_decl_sys_siglist=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6824 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6825 if test $ac_cv_have_decl_sys_siglist = yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define HAVE_DECL_SYS_SIGLIST 1
6829 _ACEOF
6832 else
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_DECL_SYS_SIGLIST 0
6835 _ACEOF
6841 if test $ac_cv_have_decl_sys_siglist != yes; then
6842 # For Tru64, at least:
6843 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6844 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6845 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6856 main ()
6858 #ifndef __sys_siglist
6859 (void) __sys_siglist;
6860 #endif
6863 return 0;
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_compile") 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && {
6880 test -z "$ac_c_werror_flag" ||
6881 test ! -s conftest.err
6882 } && test -s conftest.$ac_objext; then
6883 ac_cv_have_decl___sys_siglist=yes
6884 else
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_have_decl___sys_siglist=no
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6894 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6895 if test $ac_cv_have_decl___sys_siglist = yes; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_DECL___SYS_SIGLIST 1
6899 _ACEOF
6902 else
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_DECL___SYS_SIGLIST 0
6905 _ACEOF
6911 if test $ac_cv_have_decl___sys_siglist = yes; then
6913 cat >>confdefs.h <<\_ACEOF
6914 #define sys_siglist __sys_siglist
6915 _ACEOF
6919 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6920 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6921 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h. */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 #include <sys/types.h>
6931 #include <sys/wait.h>
6932 #ifndef WEXITSTATUS
6933 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6934 #endif
6935 #ifndef WIFEXITED
6936 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6937 #endif
6940 main ()
6942 int s;
6943 wait (&s);
6944 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6946 return 0;
6948 _ACEOF
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.$ac_objext; then
6966 ac_cv_header_sys_wait_h=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_header_sys_wait_h=no
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6978 if test $ac_cv_header_sys_wait_h = yes; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_SYS_WAIT_H 1
6982 _ACEOF
6987 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6988 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6989 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h. */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #ifdef TIME_WITH_SYS_TIME
6999 #include <sys/time.h>
7000 #include <time.h>
7001 #else
7002 #ifdef HAVE_SYS_TIME_H
7003 #include <sys/time.h>
7004 #else
7005 #include <time.h>
7006 #endif
7007 #endif
7008 #ifdef HAVE_UTIME_H
7009 #include <utime.h>
7010 #endif
7012 main ()
7014 static struct utimbuf x; x.actime = x.modtime;
7016 return 0;
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (ac_try="$ac_compile"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 emacs_cv_struct_utimbuf=yes
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 emacs_cv_struct_utimbuf=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7047 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7048 if test $emacs_cv_struct_utimbuf = yes; then
7050 cat >>confdefs.h <<\_ACEOF
7051 #define HAVE_STRUCT_UTIMBUF 1
7052 _ACEOF
7056 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7057 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7058 if test "${ac_cv_type_signal+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 else
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <sys/types.h>
7068 #include <signal.h>
7071 main ()
7073 return *(signal (0, 0)) (0) == 1;
7075 return 0;
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
7095 ac_cv_type_signal=int
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 ac_cv_type_signal=void
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7106 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7108 cat >>confdefs.h <<_ACEOF
7109 #define RETSIGTYPE $ac_cv_type_signal
7110 _ACEOF
7114 { echo "$as_me:$LINENO: checking for speed_t" >&5
7115 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7116 if test "${emacs_cv_speed_t+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 #include <termios.h>
7127 main ()
7129 speed_t x = 1;
7131 return 0;
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 emacs_cv_speed_t=yes
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 emacs_cv_speed_t=no
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7162 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7163 if test $emacs_cv_speed_t = yes; then
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_SPEED_T 1
7167 _ACEOF
7171 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7172 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7173 if test "${emacs_cv_struct_timeval+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 #ifdef TIME_WITH_SYS_TIME
7183 #include <sys/time.h>
7184 #include <time.h>
7185 #else
7186 #ifdef HAVE_SYS_TIME_H
7187 #include <sys/time.h>
7188 #else
7189 #include <time.h>
7190 #endif
7191 #endif
7193 main ()
7195 static struct timeval x; x.tv_sec = x.tv_usec;
7197 return 0;
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204 *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_compile") 2>conftest.er1
7208 ac_status=$?
7209 grep -v '^ *+' conftest.er1 >conftest.err
7210 rm -f conftest.er1
7211 cat conftest.err >&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } && {
7214 test -z "$ac_c_werror_flag" ||
7215 test ! -s conftest.err
7216 } && test -s conftest.$ac_objext; then
7217 emacs_cv_struct_timeval=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 emacs_cv_struct_timeval=no
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7228 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7229 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7230 if test $emacs_cv_struct_timeval = yes; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_TIMEVAL 1
7234 _ACEOF
7238 { echo "$as_me:$LINENO: checking for struct exception" >&5
7239 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7240 if test "${emacs_cv_struct_exception+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #include <math.h>
7251 main ()
7253 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 emacs_cv_struct_exception=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 emacs_cv_struct_exception=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7286 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7287 HAVE_EXCEPTION=$emacs_cv_struct_exception
7288 if test $emacs_cv_struct_exception != yes; then
7290 cat >>confdefs.h <<\_ACEOF
7291 #define NO_MATHERR 1
7292 _ACEOF
7297 for ac_header in sys/socket.h
7299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 ac_res=`eval echo '${'$as_ac_Header'}'`
7307 { echo "$as_me:$LINENO: result: $ac_res" >&5
7308 echo "${ECHO_T}$ac_res" >&6; }
7309 else
7310 # Is the header compilable?
7311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 $ac_includes_default
7320 #include <$ac_header>
7321 _ACEOF
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7324 case "(($ac_try" in
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7327 esac
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7330 ac_status=$?
7331 grep -v '^ *+' conftest.er1 >conftest.err
7332 rm -f conftest.er1
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 ac_header_compiler=yes
7340 else
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 ac_header_compiler=no
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7349 echo "${ECHO_T}$ac_header_compiler" >&6; }
7351 # Is the header present?
7352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 #include <$ac_header>
7361 _ACEOF
7362 if { (ac_try="$ac_cpp conftest.$ac_ext"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } >/dev/null && {
7375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 }; then
7378 ac_header_preproc=yes
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_header_preproc=no
7386 rm -f conftest.err conftest.$ac_ext
7387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6; }
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 yes:no: )
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7399 no:yes:* )
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7414 esac
7415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 eval "$as_ac_Header=\$ac_header_preproc"
7422 ac_res=`eval echo '${'$as_ac_Header'}'`
7423 { echo "$as_me:$LINENO: result: $ac_res" >&5
7424 echo "${ECHO_T}$ac_res" >&6; }
7427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7428 cat >>confdefs.h <<_ACEOF
7429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7430 _ACEOF
7434 done
7437 for ac_header in net/if.h
7439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 #if HAVE_SYS_SOCKET_H
7453 #include <sys/socket.h>
7454 #endif
7456 #include <$ac_header>
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (ac_try="$ac_compile"
7460 case "(($ac_try" in
7461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462 *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465 (eval "$ac_compile") 2>conftest.er1
7466 ac_status=$?
7467 grep -v '^ *+' conftest.er1 >conftest.err
7468 rm -f conftest.er1
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && {
7472 test -z "$ac_c_werror_flag" ||
7473 test ! -s conftest.err
7474 } && test -s conftest.$ac_objext; then
7475 eval "$as_ac_Header=yes"
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7480 eval "$as_ac_Header=no"
7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 ac_res=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491 _ACEOF
7495 done
7498 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7499 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7500 if test "${ac_cv_struct_tm+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 #include <sys/types.h>
7510 #include <time.h>
7513 main ()
7515 struct tm tm;
7516 int *p = &tm.tm_sec;
7517 return !p;
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext
7523 if { (ac_try="$ac_compile"
7524 case "(($ac_try" in
7525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7526 *) ac_try_echo=$ac_try;;
7527 esac
7528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7529 (eval "$ac_compile") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest.$ac_objext; then
7539 ac_cv_struct_tm=time.h
7540 else
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_cv_struct_tm=sys/time.h
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7550 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7551 if test $ac_cv_struct_tm = sys/time.h; then
7553 cat >>confdefs.h <<\_ACEOF
7554 #define TM_IN_SYS_TIME 1
7555 _ACEOF
7559 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7560 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7561 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <sys/types.h>
7571 #include <$ac_cv_struct_tm>
7575 main ()
7577 static struct tm ac_aggr;
7578 if (ac_aggr.tm_zone)
7579 return 0;
7581 return 0;
7583 _ACEOF
7584 rm -f conftest.$ac_objext
7585 if { (ac_try="$ac_compile"
7586 case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_compile") 2>conftest.er1
7592 ac_status=$?
7593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest.$ac_objext; then
7601 ac_cv_member_struct_tm_tm_zone=yes
7602 else
7603 echo "$as_me: failed program was:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h. */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 #include <sys/types.h>
7613 #include <$ac_cv_struct_tm>
7617 main ()
7619 static struct tm ac_aggr;
7620 if (sizeof ac_aggr.tm_zone)
7621 return 0;
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_compile") 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_c_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest.$ac_objext; then
7643 ac_cv_member_struct_tm_tm_zone=yes
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 ac_cv_member_struct_tm_tm_zone=no
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7657 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7658 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define HAVE_STRUCT_TM_TM_ZONE 1
7662 _ACEOF
7667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_TM_ZONE 1
7671 _ACEOF
7673 else
7674 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7675 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7676 if test "${ac_cv_have_decl_tzname+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <time.h>
7688 main ()
7690 #ifndef tzname
7691 (void) tzname;
7692 #endif
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 ac_cv_have_decl_tzname=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_have_decl_tzname=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7726 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7727 if test $ac_cv_have_decl_tzname = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730 #define HAVE_DECL_TZNAME 1
7731 _ACEOF
7734 else
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_DECL_TZNAME 0
7737 _ACEOF
7743 { echo "$as_me:$LINENO: checking for tzname" >&5
7744 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7745 if test "${ac_cv_var_tzname+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <time.h>
7755 #if !HAVE_DECL_TZNAME
7756 extern char *tzname[];
7757 #endif
7760 main ()
7762 return tzname[0][0];
7764 return 0;
7766 _ACEOF
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7769 case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_link") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest$ac_exeext &&
7784 $as_test_x conftest$ac_exeext; then
7785 ac_cv_var_tzname=yes
7786 else
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_var_tzname=no
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794 conftest$ac_exeext conftest.$ac_ext
7796 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7797 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7798 if test $ac_cv_var_tzname = yes; then
7800 cat >>confdefs.h <<\_ACEOF
7801 #define HAVE_TZNAME 1
7802 _ACEOF
7807 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7808 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7809 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812 cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 #include <time.h>
7821 main ()
7823 static struct tm ac_aggr;
7824 if (ac_aggr.tm_gmtoff)
7825 return 0;
7827 return 0;
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7832 case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
7847 ac_cv_member_struct_tm_tm_gmtoff=yes
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <time.h>
7861 main ()
7863 static struct tm ac_aggr;
7864 if (sizeof ac_aggr.tm_gmtoff)
7865 return 0;
7867 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (ac_try="$ac_compile"
7872 case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_compile") 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest.$ac_objext; then
7887 ac_cv_member_struct_tm_tm_gmtoff=yes
7888 else
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_cv_member_struct_tm_tm_gmtoff=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7901 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7902 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7904 cat >>confdefs.h <<\_ACEOF
7905 #define HAVE_TM_GMTOFF 1
7906 _ACEOF
7910 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7911 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7912 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7921 $ac_includes_default
7922 #if HAVE_SYS_SOCKET_H
7923 #include <sys/socket.h>
7924 #endif
7925 #if HAVE_NET_IF_H
7926 #include <net/if.h>
7927 #endif
7930 main ()
7932 static struct ifreq ac_aggr;
7933 if (ac_aggr.ifr_flags)
7934 return 0;
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 ac_cv_member_struct_ifreq_ifr_flags=yes
7957 else
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #if HAVE_SYS_SOCKET_H
7969 #include <sys/socket.h>
7970 #endif
7971 #if HAVE_NET_IF_H
7972 #include <net/if.h>
7973 #endif
7976 main ()
7978 static struct ifreq ac_aggr;
7979 if (sizeof ac_aggr.ifr_flags)
7980 return 0;
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 ac_cv_member_struct_ifreq_ifr_flags=yes
8003 else
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_cv_member_struct_ifreq_ifr_flags=no
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8016 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8017 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8019 cat >>confdefs.h <<_ACEOF
8020 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8021 _ACEOF
8025 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8026 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8027 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h. */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8037 #if HAVE_SYS_SOCKET_H
8038 #include <sys/socket.h>
8039 #endif
8040 #if HAVE_NET_IF_H
8041 #include <net/if.h>
8042 #endif
8045 main ()
8047 static struct ifreq ac_aggr;
8048 if (ac_aggr.ifr_hwaddr)
8049 return 0;
8051 return 0;
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8062 ac_status=$?
8063 grep -v '^ *+' conftest.er1 >conftest.err
8064 rm -f conftest.er1
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8072 else
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 #if HAVE_SYS_SOCKET_H
8084 #include <sys/socket.h>
8085 #endif
8086 #if HAVE_NET_IF_H
8087 #include <net/if.h>
8088 #endif
8091 main ()
8093 static struct ifreq ac_aggr;
8094 if (sizeof ac_aggr.ifr_hwaddr)
8095 return 0;
8097 return 0;
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8102 case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105 esac
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8108 ac_status=$?
8109 grep -v '^ *+' conftest.er1 >conftest.err
8110 rm -f conftest.er1
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8118 else
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8131 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8132 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8134 cat >>confdefs.h <<_ACEOF
8135 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8136 _ACEOF
8140 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8141 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8142 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145 cat >conftest.$ac_ext <<_ACEOF
8146 /* confdefs.h. */
8147 _ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 $ac_includes_default
8152 #if HAVE_SYS_SOCKET_H
8153 #include <sys/socket.h>
8154 #endif
8155 #if HAVE_NET_IF_H
8156 #include <net/if.h>
8157 #endif
8160 main ()
8162 static struct ifreq ac_aggr;
8163 if (ac_aggr.ifr_netmask)
8164 return 0;
8166 return 0;
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_compile") 2>conftest.er1
8177 ac_status=$?
8178 grep -v '^ *+' conftest.er1 >conftest.err
8179 rm -f conftest.er1
8180 cat conftest.err >&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } && {
8183 test -z "$ac_c_werror_flag" ||
8184 test ! -s conftest.err
8185 } && test -s conftest.$ac_objext; then
8186 ac_cv_member_struct_ifreq_ifr_netmask=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 $ac_includes_default
8198 #if HAVE_SYS_SOCKET_H
8199 #include <sys/socket.h>
8200 #endif
8201 #if HAVE_NET_IF_H
8202 #include <net/if.h>
8203 #endif
8206 main ()
8208 static struct ifreq ac_aggr;
8209 if (sizeof ac_aggr.ifr_netmask)
8210 return 0;
8212 return 0;
8214 _ACEOF
8215 rm -f conftest.$ac_objext
8216 if { (ac_try="$ac_compile"
8217 case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220 esac
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_compile") 2>conftest.er1
8223 ac_status=$?
8224 grep -v '^ *+' conftest.er1 >conftest.err
8225 rm -f conftest.er1
8226 cat conftest.err >&5
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest.$ac_objext; then
8232 ac_cv_member_struct_ifreq_ifr_netmask=yes
8233 else
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_member_struct_ifreq_ifr_netmask=no
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8246 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8247 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8249 cat >>confdefs.h <<_ACEOF
8250 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8251 _ACEOF
8255 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8256 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8257 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 #if HAVE_SYS_SOCKET_H
8268 #include <sys/socket.h>
8269 #endif
8270 #if HAVE_NET_IF_H
8271 #include <net/if.h>
8272 #endif
8275 main ()
8277 static struct ifreq ac_aggr;
8278 if (ac_aggr.ifr_broadaddr)
8279 return 0;
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (ac_try="$ac_compile"
8286 case "(($ac_try" in
8287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8288 *) ac_try_echo=$ac_try;;
8289 esac
8290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 #if HAVE_SYS_SOCKET_H
8314 #include <sys/socket.h>
8315 #endif
8316 #if HAVE_NET_IF_H
8317 #include <net/if.h>
8318 #endif
8321 main ()
8323 static struct ifreq ac_aggr;
8324 if (sizeof ac_aggr.ifr_broadaddr)
8325 return 0;
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8338 ac_status=$?
8339 grep -v '^ *+' conftest.er1 >conftest.err
8340 rm -f conftest.er1
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } && {
8344 test -z "$ac_c_werror_flag" ||
8345 test ! -s conftest.err
8346 } && test -s conftest.$ac_objext; then
8347 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8348 else
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8361 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8362 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8366 _ACEOF
8370 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8371 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8372 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h. */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8381 $ac_includes_default
8382 #if HAVE_SYS_SOCKET_H
8383 #include <sys/socket.h>
8384 #endif
8385 #if HAVE_NET_IF_H
8386 #include <net/if.h>
8387 #endif
8390 main ()
8392 static struct ifreq ac_aggr;
8393 if (ac_aggr.ifr_addr)
8394 return 0;
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_member_struct_ifreq_ifr_addr=yes
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #if HAVE_SYS_SOCKET_H
8429 #include <sys/socket.h>
8430 #endif
8431 #if HAVE_NET_IF_H
8432 #include <net/if.h>
8433 #endif
8436 main ()
8438 static struct ifreq ac_aggr;
8439 if (sizeof ac_aggr.ifr_addr)
8440 return 0;
8442 return 0;
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (ac_try="$ac_compile"
8447 case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_ifreq_ifr_addr=yes
8463 else
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_member_struct_ifreq_ifr_addr=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8476 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8477 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8481 _ACEOF
8488 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8489 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8490 if test "$ac_cv_prog_cc_c89" != no; then
8491 { echo "$as_me:$LINENO: result: yes" >&5
8492 echo "${ECHO_T}yes" >&6; }
8494 cat >>confdefs.h <<\_ACEOF
8495 #define PROTOTYPES 1
8496 _ACEOF
8499 cat >>confdefs.h <<\_ACEOF
8500 #define __PROTOTYPES 1
8501 _ACEOF
8503 else
8504 { echo "$as_me:$LINENO: result: no" >&5
8505 echo "${ECHO_T}no" >&6; }
8508 { echo "$as_me:$LINENO: checking for working volatile" >&5
8509 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8510 if test "${ac_cv_c_volatile+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8521 main ()
8524 volatile int x;
8525 int * volatile y = (int *) 0;
8526 return !x && !y;
8528 return 0;
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8533 case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_c_volatile=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8553 ac_cv_c_volatile=no
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8559 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8560 if test $ac_cv_c_volatile = no; then
8562 cat >>confdefs.h <<\_ACEOF
8563 #define volatile
8564 _ACEOF
8568 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8570 if test "${ac_cv_c_const+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 else
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h. */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8581 main ()
8583 /* FIXME: Include the comments suggested by Paul. */
8584 #ifndef __cplusplus
8585 /* Ultrix mips cc rejects this. */
8586 typedef int charset[2];
8587 const charset cs;
8588 /* SunOS 4.1.1 cc rejects this. */
8589 char const *const *pcpcc;
8590 char **ppc;
8591 /* NEC SVR4.0.2 mips cc rejects this. */
8592 struct point {int x, y;};
8593 static struct point const zero = {0,0};
8594 /* AIX XL C 1.02.0.0 rejects this.
8595 It does not let you subtract one const X* pointer from another in
8596 an arm of an if-expression whose if-part is not a constant
8597 expression */
8598 const char *g = "string";
8599 pcpcc = &g + (g ? g-g : 0);
8600 /* HPUX 7.0 cc rejects these. */
8601 ++pcpcc;
8602 ppc = (char**) pcpcc;
8603 pcpcc = (char const *const *) ppc;
8604 { /* SCO 3.2v4 cc rejects this. */
8605 char *t;
8606 char const *s = 0 ? (char *) 0 : (char const *) 0;
8608 *t++ = 0;
8609 if (s) return 0;
8611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8612 int x[] = {25, 17};
8613 const int *foo = &x[0];
8614 ++foo;
8616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8617 typedef const int *iptr;
8618 iptr p = 0;
8619 ++p;
8621 { /* AIX XL C 1.02.0.0 rejects this saying
8622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8623 struct s { int j; const int *ap[3]; };
8624 struct s *b; b->j = 5;
8626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8627 const int foo = 10;
8628 if (!foo) return 0;
8630 return !cs[0] && !zero.x;
8631 #endif
8634 return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_c_const=yes
8655 else
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_cv_c_const=no
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8665 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8666 if test $ac_cv_c_const = no; then
8668 cat >>confdefs.h <<\_ACEOF
8669 #define const
8670 _ACEOF
8674 { echo "$as_me:$LINENO: checking for void * support" >&5
8675 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8676 if test "${emacs_cv_void_star+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. */
8687 main ()
8689 void * foo;
8691 return 0;
8693 _ACEOF
8694 rm -f conftest.$ac_objext
8695 if { (ac_try="$ac_compile"
8696 case "(($ac_try" in
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8699 esac
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_compile") 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then
8711 emacs_cv_void_star=yes
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8716 emacs_cv_void_star=no
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8722 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8723 if test $emacs_cv_void_star = yes; then
8724 cat >>confdefs.h <<\_ACEOF
8725 #define POINTER_TYPE void
8726 _ACEOF
8728 else
8729 cat >>confdefs.h <<\_ACEOF
8730 #define POINTER_TYPE char
8731 _ACEOF
8739 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8740 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8741 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 cat >conftest.make <<\_ACEOF
8746 SHELL = /bin/sh
8747 all:
8748 @echo '@@@%%%=$(MAKE)=@@@%%%'
8749 _ACEOF
8750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8752 *@@@%%%=?*=@@@%%%*)
8753 eval ac_cv_prog_make_${ac_make}_set=yes;;
8755 eval ac_cv_prog_make_${ac_make}_set=no;;
8756 esac
8757 rm -f conftest.make
8759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8760 { echo "$as_me:$LINENO: result: yes" >&5
8761 echo "${ECHO_T}yes" >&6; }
8762 SET_MAKE=
8763 else
8764 { echo "$as_me:$LINENO: result: no" >&5
8765 echo "${ECHO_T}no" >&6; }
8766 SET_MAKE="MAKE=${MAKE-make}"
8770 { echo "$as_me:$LINENO: checking for long file names" >&5
8771 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8772 if test "${ac_cv_sys_long_file_names+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 ac_cv_sys_long_file_names=yes
8776 # Test for long file names in all the places we know might matter:
8777 # . the current directory, where building will happen
8778 # $prefix/lib where we will be installing things
8779 # $exec_prefix/lib likewise
8780 # $TMPDIR if set, where it might want to write temporary files
8781 # /tmp where it might want to write temporary files
8782 # /var/tmp likewise
8783 # /usr/tmp likewise
8784 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8785 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8786 # in the usual case where exec_prefix is '${prefix}'.
8787 case $ac_dir in #(
8788 . | /* | ?:[\\/]*) ;; #(
8789 *) continue;;
8790 esac
8791 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8792 ac_xdir=$ac_dir/cf$$
8793 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8794 ac_tf1=$ac_xdir/conftest9012345
8795 ac_tf2=$ac_xdir/conftest9012346
8796 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8797 ac_cv_sys_long_file_names=no
8798 rm -f -r "$ac_xdir" 2>/dev/null
8799 test $ac_cv_sys_long_file_names = no && break
8800 done
8802 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8803 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8804 if test $ac_cv_sys_long_file_names = yes; then
8806 cat >>confdefs.h <<\_ACEOF
8807 #define HAVE_LONG_FILE_NAMES 1
8808 _ACEOF
8813 #### Choose a window system.
8815 { echo "$as_me:$LINENO: checking for X" >&5
8816 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8819 # Check whether --with-x was given.
8820 if test "${with_x+set}" = set; then
8821 withval=$with_x;
8824 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8825 if test "x$with_x" = xno; then
8826 # The user explicitly disabled X.
8827 have_x=disabled
8828 else
8829 case $x_includes,$x_libraries in #(
8830 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8831 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8832 { (exit 1); exit 1; }; };; #(
8833 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 # One or both of the vars are not set, and there is no cached value.
8837 ac_x_includes=no ac_x_libraries=no
8838 rm -f -r conftest.dir
8839 if mkdir conftest.dir; then
8840 cd conftest.dir
8841 cat >Imakefile <<'_ACEOF'
8842 incroot:
8843 @echo incroot='${INCROOT}'
8844 usrlibdir:
8845 @echo usrlibdir='${USRLIBDIR}'
8846 libdir:
8847 @echo libdir='${LIBDIR}'
8848 _ACEOF
8849 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8851 for ac_var in incroot usrlibdir libdir; do
8852 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8853 done
8854 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8855 for ac_extension in a so sl; do
8856 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8857 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8858 ac_im_usrlibdir=$ac_im_libdir; break
8860 done
8861 # Screen out bogus values from the imake configuration. They are
8862 # bogus both because they are the default anyway, and because
8863 # using them would break gcc on systems where it needs fixed includes.
8864 case $ac_im_incroot in
8865 /usr/include) ac_x_includes= ;;
8866 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8867 esac
8868 case $ac_im_usrlibdir in
8869 /usr/lib | /lib) ;;
8870 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8871 esac
8873 cd ..
8874 rm -f -r conftest.dir
8877 # Standard set of common directories for X headers.
8878 # Check X11 before X11Rn because it is often a symlink to the current release.
8879 ac_x_header_dirs='
8880 /usr/X11/include
8881 /usr/X11R6/include
8882 /usr/X11R5/include
8883 /usr/X11R4/include
8885 /usr/include/X11
8886 /usr/include/X11R6
8887 /usr/include/X11R5
8888 /usr/include/X11R4
8890 /usr/local/X11/include
8891 /usr/local/X11R6/include
8892 /usr/local/X11R5/include
8893 /usr/local/X11R4/include
8895 /usr/local/include/X11
8896 /usr/local/include/X11R6
8897 /usr/local/include/X11R5
8898 /usr/local/include/X11R4
8900 /usr/X386/include
8901 /usr/x386/include
8902 /usr/XFree86/include/X11
8904 /usr/include
8905 /usr/local/include
8906 /usr/unsupported/include
8907 /usr/athena/include
8908 /usr/local/x11r5/include
8909 /usr/lpp/Xamples/include
8911 /usr/openwin/include
8912 /usr/openwin/share/include'
8914 if test "$ac_x_includes" = no; then
8915 # Guess where to find include files, by looking for Xlib.h.
8916 # First, try using that file with no special directory specified.
8917 cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h. */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 #include <X11/Xlib.h>
8924 _ACEOF
8925 if { (ac_try="$ac_cpp conftest.$ac_ext"
8926 case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929 esac
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } >/dev/null && {
8938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 }; then
8941 # We can compile using X headers with no special include directory.
8942 ac_x_includes=
8943 else
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 for ac_dir in $ac_x_header_dirs; do
8948 if test -r "$ac_dir/X11/Xlib.h"; then
8949 ac_x_includes=$ac_dir
8950 break
8952 done
8955 rm -f conftest.err conftest.$ac_ext
8956 fi # $ac_x_includes = no
8958 if test "$ac_x_libraries" = no; then
8959 # Check for the libraries.
8960 # See if we find them without any special options.
8961 # Don't add to $LIBS permanently.
8962 ac_save_LIBS=$LIBS
8963 LIBS="-lX11 $LIBS"
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 #include <X11/Xlib.h>
8972 main ()
8974 XrmInitialize ()
8976 return 0;
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8981 case "(($ac_try" in
8982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983 *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986 (eval "$ac_link") 2>conftest.er1
8987 ac_status=$?
8988 grep -v '^ *+' conftest.er1 >conftest.err
8989 rm -f conftest.er1
8990 cat conftest.err >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); } && {
8993 test -z "$ac_c_werror_flag" ||
8994 test ! -s conftest.err
8995 } && test -s conftest$ac_exeext &&
8996 $as_test_x conftest$ac_exeext; then
8997 LIBS=$ac_save_LIBS
8998 # We can link X programs with no special library path.
8999 ac_x_libraries=
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 LIBS=$ac_save_LIBS
9005 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9007 # Don't even attempt the hair of trying to link an X program!
9008 for ac_extension in a so sl; do
9009 if test -r "$ac_dir/libX11.$ac_extension"; then
9010 ac_x_libraries=$ac_dir
9011 break 2
9013 done
9014 done
9017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9018 conftest$ac_exeext conftest.$ac_ext
9019 fi # $ac_x_libraries = no
9021 case $ac_x_includes,$ac_x_libraries in #(
9022 no,* | *,no | *\'*)
9023 # Didn't find X, or a directory has "'" in its name.
9024 ac_cv_have_x="have_x=no";; #(
9026 # Record where we found X for the cache.
9027 ac_cv_have_x="have_x=yes\
9028 ac_x_includes='$ac_x_includes'\
9029 ac_x_libraries='$ac_x_libraries'"
9030 esac
9032 ;; #(
9033 *) have_x=yes;;
9034 esac
9035 eval "$ac_cv_have_x"
9036 fi # $with_x != no
9038 if test "$have_x" != yes; then
9039 { echo "$as_me:$LINENO: result: $have_x" >&5
9040 echo "${ECHO_T}$have_x" >&6; }
9041 no_x=yes
9042 else
9043 # If each of the values was on the command line, it overrides each guess.
9044 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9045 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9046 # Update the cache value to reflect the command line values.
9047 ac_cv_have_x="have_x=yes\
9048 ac_x_includes='$x_includes'\
9049 ac_x_libraries='$x_libraries'"
9050 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9051 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9054 if test "$no_x" = yes; then
9055 window_system=none
9056 else
9057 window_system=x11
9060 if test "${x_libraries}" != NONE; then
9061 if test -n "${x_libraries}"; then
9062 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9063 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9065 x_default_search_path=""
9066 x_search_path=${x_libraries}
9067 if test -z "${x_search_path}"; then
9068 x_search_path=/usr/lib
9070 for x_library in `echo ${x_search_path}: | \
9071 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9072 x_search_path="\
9073 ${x_library}/X11/%L/%T/%N%C%S:\
9074 ${x_library}/X11/%l/%T/%N%C%S:\
9075 ${x_library}/X11/%T/%N%C%S:\
9076 ${x_library}/X11/%L/%T/%N%S:\
9077 ${x_library}/X11/%l/%T/%N%S:\
9078 ${x_library}/X11/%T/%N%S"
9079 if test x"${x_default_search_path}" = x; then
9080 x_default_search_path=${x_search_path}
9081 else
9082 x_default_search_path="${x_search_path}:${x_default_search_path}"
9084 done
9086 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9087 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9090 if test x"${x_includes}" = x; then
9091 bitmapdir=/usr/include/X11/bitmaps
9092 else
9093 # accumulate include directories that have X11 bitmap subdirectories
9094 bmd_acc="dummyval"
9095 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9096 if test -d "${bmd}/X11/bitmaps"; then
9097 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9099 if test -d "${bmd}/bitmaps"; then
9100 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9102 done
9103 if test ${bmd_acc} != "dummyval"; then
9104 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9108 HAVE_CARBON=no
9109 if test "${with_carbon}" != no; then
9110 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9111 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9112 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9113 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9117 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9118 else
9119 # Is the header compilable?
9120 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9121 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9129 #include <Carbon/Carbon.h>
9130 _ACEOF
9131 rm -f conftest.$ac_objext
9132 if { (ac_try="$ac_compile"
9133 case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_compile") 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && {
9145 test -z "$ac_c_werror_flag" ||
9146 test ! -s conftest.err
9147 } && test -s conftest.$ac_objext; then
9148 ac_header_compiler=yes
9149 else
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_header_compiler=no
9156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9158 echo "${ECHO_T}$ac_header_compiler" >&6; }
9160 # Is the header present?
9161 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9162 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 #include <Carbon/Carbon.h>
9170 _ACEOF
9171 if { (ac_try="$ac_cpp conftest.$ac_ext"
9172 case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9178 ac_status=$?
9179 grep -v '^ *+' conftest.er1 >conftest.err
9180 rm -f conftest.er1
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } >/dev/null && {
9184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 }; then
9187 ac_header_preproc=yes
9188 else
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9192 ac_header_preproc=no
9195 rm -f conftest.err conftest.$ac_ext
9196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9197 echo "${ECHO_T}$ac_header_preproc" >&6; }
9199 # So? What about this header?
9200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9201 yes:no: )
9202 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9203 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9205 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9206 ac_header_preproc=yes
9208 no:yes:* )
9209 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9210 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9212 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9214 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9216 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9218 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9220 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9223 esac
9224 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9225 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9226 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9231 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9235 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9236 HAVE_CARBON=yes
9241 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9242 if test "${with_carbon+set}" != set \
9243 && test "${carbon_appdir_x+set}" != set; then
9244 for var in with_x with_x_toolkit with_xim \
9245 with_xpm with_jpeg with_tiff with_gif with_png; do
9246 if eval test \"\${$var+set}\" = set; then
9247 HAVE_CARBON=no
9248 break
9250 done
9253 if test "${HAVE_CARBON}" = yes; then
9254 window_system=mac
9257 case "${window_system}" in
9258 x11 )
9259 HAVE_X_WINDOWS=yes
9260 HAVE_X11=yes
9261 case "${with_x_toolkit}" in
9262 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9263 motif ) USE_X_TOOLKIT=MOTIF ;;
9264 gtk ) with_gtk=yes
9265 USE_X_TOOLKIT=none ;;
9266 no ) USE_X_TOOLKIT=none ;;
9267 * ) USE_X_TOOLKIT=maybe ;;
9268 esac
9270 mac | none )
9271 HAVE_X_WINDOWS=no
9272 HAVE_X11=no
9273 USE_X_TOOLKIT=none
9275 esac
9277 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9278 # Extract the first word of "X", so it can be a program name with args.
9279 set dummy X; ac_word=$2
9280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9282 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285 if test -n "$HAVE_XSERVER"; then
9286 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9287 else
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_prog_HAVE_XSERVER="true"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9299 done
9300 done
9301 IFS=$as_save_IFS
9303 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9306 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9307 if test -n "$HAVE_XSERVER"; then
9308 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9309 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9310 else
9311 { echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6; }
9316 if test "$HAVE_XSERVER" = true ||
9317 test -n "$DISPLAY" ||
9318 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9319 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9320 were found. You should install the relevant development files for X
9321 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9322 sure you have development files for image handling, i.e.
9323 tiff, gif, jpeg, png and xpm.
9324 If you are sure you want Emacs compiled without X window support, pass
9325 --without-x
9326 to configure." >&5
9327 echo "$as_me: error: You seem to be running X, but no X development libraries
9328 were found. You should install the relevant development files for X
9329 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9330 sure you have development files for image handling, i.e.
9331 tiff, gif, jpeg, png and xpm.
9332 If you are sure you want Emacs compiled without X window support, pass
9333 --without-x
9334 to configure." >&2;}
9335 { (exit 1); exit 1; }; }
9339 ### If we're using X11, we should use the X menu package.
9340 HAVE_MENUS=no
9341 case ${HAVE_X11} in
9342 yes ) HAVE_MENUS=yes ;;
9343 esac
9345 ### Compute the unexec source name from the object name.
9346 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9348 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9349 # Assume not, until told otherwise.
9350 GNU_MALLOC=yes
9351 doug_lea_malloc=yes
9352 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9353 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9354 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9365 #define malloc_get_state innocuous_malloc_get_state
9367 /* System header to define __stub macros and hopefully few prototypes,
9368 which can conflict with char malloc_get_state (); below.
9369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9370 <limits.h> exists even on freestanding compilers. */
9372 #ifdef __STDC__
9373 # include <limits.h>
9374 #else
9375 # include <assert.h>
9376 #endif
9378 #undef malloc_get_state
9380 /* Override any GCC internal prototype to avoid an error.
9381 Use char because int might match the return type of a GCC
9382 builtin and then its argument prototype would still apply. */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char malloc_get_state ();
9387 /* The GNU C library defines this for functions which it implements
9388 to always fail with ENOSYS. Some functions are actually named
9389 something starting with __ and the normal name is an alias. */
9390 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9391 choke me
9392 #endif
9395 main ()
9397 return malloc_get_state ();
9399 return 0;
9401 _ACEOF
9402 rm -f conftest.$ac_objext conftest$ac_exeext
9403 if { (ac_try="$ac_link"
9404 case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407 esac
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_link") 2>conftest.er1
9410 ac_status=$?
9411 grep -v '^ *+' conftest.er1 >conftest.err
9412 rm -f conftest.er1
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest$ac_exeext &&
9419 $as_test_x conftest$ac_exeext; then
9420 ac_cv_func_malloc_get_state=yes
9421 else
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_cv_func_malloc_get_state=no
9428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9429 conftest$ac_exeext conftest.$ac_ext
9431 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9432 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9433 if test $ac_cv_func_malloc_get_state = yes; then
9435 else
9436 doug_lea_malloc=no
9439 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9440 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9441 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452 #define malloc_set_state innocuous_malloc_set_state
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char malloc_set_state (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9459 #ifdef __STDC__
9460 # include <limits.h>
9461 #else
9462 # include <assert.h>
9463 #endif
9465 #undef malloc_set_state
9467 /* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9470 #ifdef __cplusplus
9471 extern "C"
9472 #endif
9473 char malloc_set_state ();
9474 /* The GNU C library defines this for functions which it implements
9475 to always fail with ENOSYS. Some functions are actually named
9476 something starting with __ and the normal name is an alias. */
9477 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9478 choke me
9479 #endif
9482 main ()
9484 return malloc_set_state ();
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9491 case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494 esac
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_link") 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest$ac_exeext &&
9506 $as_test_x conftest$ac_exeext; then
9507 ac_cv_func_malloc_set_state=yes
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_func_malloc_set_state=no
9515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9516 conftest$ac_exeext conftest.$ac_ext
9518 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9519 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9520 if test $ac_cv_func_malloc_set_state = yes; then
9522 else
9523 doug_lea_malloc=no
9526 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9527 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9528 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 extern void (* __after_morecore_hook)();
9539 main ()
9541 __after_morecore_hook = 0
9543 return 0;
9545 _ACEOF
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9548 case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_link") 2>conftest.er1
9554 ac_status=$?
9555 grep -v '^ *+' conftest.er1 >conftest.err
9556 rm -f conftest.er1
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest$ac_exeext &&
9563 $as_test_x conftest$ac_exeext; then
9564 emacs_cv_var___after_morecore_hook=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 emacs_cv_var___after_morecore_hook=no
9572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9573 conftest$ac_exeext conftest.$ac_ext
9575 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9576 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9577 if test $emacs_cv_var___after_morecore_hook = no; then
9578 doug_lea_malloc=no
9580 if test "${system_malloc}" = "yes"; then
9581 GNU_MALLOC=no
9582 GNU_MALLOC_reason="
9583 (The GNU allocators don't work with this system configuration.)"
9585 if test "$doug_lea_malloc" = "yes" ; then
9586 if test "$GNU_MALLOC" = yes ; then
9587 GNU_MALLOC_reason="
9588 (Using Doug Lea's new malloc from the GNU C Library.)"
9591 cat >>confdefs.h <<\_ACEOF
9592 #define DOUG_LEA_MALLOC 1
9593 _ACEOF
9597 if test x"${REL_ALLOC}" = x; then
9598 REL_ALLOC=${GNU_MALLOC}
9604 for ac_header in stdlib.h unistd.h
9606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_res=`eval echo '${'$as_ac_Header'}'`
9614 { echo "$as_me:$LINENO: result: $ac_res" >&5
9615 echo "${ECHO_T}$ac_res" >&6; }
9616 else
9617 # Is the header compilable?
9618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9620 cat >conftest.$ac_ext <<_ACEOF
9621 /* confdefs.h. */
9622 _ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9626 $ac_includes_default
9627 #include <$ac_header>
9628 _ACEOF
9629 rm -f conftest.$ac_objext
9630 if { (ac_try="$ac_compile"
9631 case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_compile") 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest.$ac_objext; then
9646 ac_header_compiler=yes
9647 else
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_header_compiler=no
9654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9656 echo "${ECHO_T}$ac_header_compiler" >&6; }
9658 # Is the header present?
9659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667 #include <$ac_header>
9668 _ACEOF
9669 if { (ac_try="$ac_cpp conftest.$ac_ext"
9670 case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } >/dev/null && {
9682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 }; then
9685 ac_header_preproc=yes
9686 else
9687 echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_header_preproc=no
9693 rm -f conftest.err conftest.$ac_ext
9694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9695 echo "${ECHO_T}$ac_header_preproc" >&6; }
9697 # So? What about this header?
9698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9699 yes:no: )
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9704 ac_header_preproc=yes
9706 no:yes:* )
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9721 esac
9722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727 eval "$as_ac_Header=\$ac_header_preproc"
9729 ac_res=`eval echo '${'$as_ac_Header'}'`
9730 { echo "$as_me:$LINENO: result: $ac_res" >&5
9731 echo "${ECHO_T}$ac_res" >&6; }
9734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9737 _ACEOF
9741 done
9744 for ac_func in getpagesize
9746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752 cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h. */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9760 #define $ac_func innocuous_$ac_func
9762 /* System header to define __stub macros and hopefully few prototypes,
9763 which can conflict with char $ac_func (); below.
9764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9765 <limits.h> exists even on freestanding compilers. */
9767 #ifdef __STDC__
9768 # include <limits.h>
9769 #else
9770 # include <assert.h>
9771 #endif
9773 #undef $ac_func
9775 /* Override any GCC internal prototype to avoid an error.
9776 Use char because int might match the return type of a GCC
9777 builtin and then its argument prototype would still apply. */
9778 #ifdef __cplusplus
9779 extern "C"
9780 #endif
9781 char $ac_func ();
9782 /* The GNU C library defines this for functions which it implements
9783 to always fail with ENOSYS. Some functions are actually named
9784 something starting with __ and the normal name is an alias. */
9785 #if defined __stub_$ac_func || defined __stub___$ac_func
9786 choke me
9787 #endif
9790 main ()
9792 return $ac_func ();
9794 return 0;
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9799 case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802 esac
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 eval "$as_ac_var=yes"
9816 else
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 eval "$as_ac_var=no"
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9826 ac_res=`eval echo '${'$as_ac_var'}'`
9827 { echo "$as_me:$LINENO: result: $ac_res" >&5
9828 echo "${ECHO_T}$ac_res" >&6; }
9829 if test `eval echo '${'$as_ac_var'}'` = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9832 _ACEOF
9835 done
9837 { echo "$as_me:$LINENO: checking for working mmap" >&5
9838 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9839 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 if test "$cross_compiling" = yes; then
9843 ac_cv_func_mmap_fixed_mapped=no
9844 else
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9852 /* malloc might have been renamed as rpl_malloc. */
9853 #undef malloc
9855 /* Thanks to Mike Haertel and Jim Avera for this test.
9856 Here is a matrix of mmap possibilities:
9857 mmap private not fixed
9858 mmap private fixed at somewhere currently unmapped
9859 mmap private fixed at somewhere already mapped
9860 mmap shared not fixed
9861 mmap shared fixed at somewhere currently unmapped
9862 mmap shared fixed at somewhere already mapped
9863 For private mappings, we should verify that changes cannot be read()
9864 back from the file, nor mmap's back from the file at a different
9865 address. (There have been systems where private was not correctly
9866 implemented like the infamous i386 svr4.0, and systems where the
9867 VM page cache was not coherent with the file system buffer cache
9868 like early versions of FreeBSD and possibly contemporary NetBSD.)
9869 For shared mappings, we should conversely verify that changes get
9870 propagated back to all the places they're supposed to be.
9872 Grep wants private fixed already mapped.
9873 The main things grep needs to know about mmap are:
9874 * does it exist and is it safe to write into the mmap'd area
9875 * how to use it (BSD variants) */
9877 #include <fcntl.h>
9878 #include <sys/mman.h>
9880 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9881 char *malloc ();
9882 #endif
9884 /* This mess was copied from the GNU getpagesize.h. */
9885 #ifndef HAVE_GETPAGESIZE
9886 /* Assume that all systems that can run configure have sys/param.h. */
9887 # ifndef HAVE_SYS_PARAM_H
9888 # define HAVE_SYS_PARAM_H 1
9889 # endif
9891 # ifdef _SC_PAGESIZE
9892 # define getpagesize() sysconf(_SC_PAGESIZE)
9893 # else /* no _SC_PAGESIZE */
9894 # ifdef HAVE_SYS_PARAM_H
9895 # include <sys/param.h>
9896 # ifdef EXEC_PAGESIZE
9897 # define getpagesize() EXEC_PAGESIZE
9898 # else /* no EXEC_PAGESIZE */
9899 # ifdef NBPG
9900 # define getpagesize() NBPG * CLSIZE
9901 # ifndef CLSIZE
9902 # define CLSIZE 1
9903 # endif /* no CLSIZE */
9904 # else /* no NBPG */
9905 # ifdef NBPC
9906 # define getpagesize() NBPC
9907 # else /* no NBPC */
9908 # ifdef PAGESIZE
9909 # define getpagesize() PAGESIZE
9910 # endif /* PAGESIZE */
9911 # endif /* no NBPC */
9912 # endif /* no NBPG */
9913 # endif /* no EXEC_PAGESIZE */
9914 # else /* no HAVE_SYS_PARAM_H */
9915 # define getpagesize() 8192 /* punt totally */
9916 # endif /* no HAVE_SYS_PARAM_H */
9917 # endif /* no _SC_PAGESIZE */
9919 #endif /* no HAVE_GETPAGESIZE */
9922 main ()
9924 char *data, *data2, *data3;
9925 int i, pagesize;
9926 int fd;
9928 pagesize = getpagesize ();
9930 /* First, make a file with some known garbage in it. */
9931 data = (char *) malloc (pagesize);
9932 if (!data)
9933 return 1;
9934 for (i = 0; i < pagesize; ++i)
9935 *(data + i) = rand ();
9936 umask (0);
9937 fd = creat ("conftest.mmap", 0600);
9938 if (fd < 0)
9939 return 1;
9940 if (write (fd, data, pagesize) != pagesize)
9941 return 1;
9942 close (fd);
9944 /* Next, try to mmap the file at a fixed address which already has
9945 something else allocated at it. If we can, also make sure that
9946 we see the same garbage. */
9947 fd = open ("conftest.mmap", O_RDWR);
9948 if (fd < 0)
9949 return 1;
9950 data2 = (char *) malloc (2 * pagesize);
9951 if (!data2)
9952 return 1;
9953 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9954 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9955 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9956 return 1;
9957 for (i = 0; i < pagesize; ++i)
9958 if (*(data + i) != *(data2 + i))
9959 return 1;
9961 /* Finally, make sure that changes to the mapped area do not
9962 percolate back to the file as seen by read(). (This is a bug on
9963 some variants of i386 svr4.0.) */
9964 for (i = 0; i < pagesize; ++i)
9965 *(data2 + i) = *(data2 + i) + 1;
9966 data3 = (char *) malloc (pagesize);
9967 if (!data3)
9968 return 1;
9969 if (read (fd, data3, pagesize) != pagesize)
9970 return 1;
9971 for (i = 0; i < pagesize; ++i)
9972 if (*(data + i) != *(data3 + i))
9973 return 1;
9974 close (fd);
9975 return 0;
9977 _ACEOF
9978 rm -f conftest$ac_exeext
9979 if { (ac_try="$ac_link"
9980 case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_func_mmap_fixed_mapped=yes
9999 else
10000 echo "$as_me: program exited with status $ac_status" >&5
10001 echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10004 ( exit $ac_status )
10005 ac_cv_func_mmap_fixed_mapped=no
10007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10012 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10013 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10014 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10016 cat >>confdefs.h <<\_ACEOF
10017 #define HAVE_MMAP 1
10018 _ACEOF
10021 rm -f conftest.mmap
10023 if test $use_mmap_for_buffers = yes; then
10024 REL_ALLOC=no
10027 LIBS="$libsrc_libs $LIBS"
10030 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10031 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10032 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-ldnet $LIBS"
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char dnet_ntoa ();
10052 main ()
10054 return dnet_ntoa ();
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_link") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest$ac_exeext &&
10076 $as_test_x conftest$ac_exeext; then
10077 ac_cv_lib_dnet_dnet_ntoa=yes
10078 else
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_dnet_dnet_ntoa=no
10085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10086 conftest$ac_exeext conftest.$ac_ext
10087 LIBS=$ac_check_lib_save_LIBS
10089 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10090 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10091 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define HAVE_LIBDNET 1
10094 _ACEOF
10096 LIBS="-ldnet $LIBS"
10101 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10102 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10103 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 else
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-lXbsd $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10117 main ()
10119 return main ();
10121 return 0;
10123 _ACEOF
10124 rm -f conftest.$ac_objext conftest$ac_exeext
10125 if { (ac_try="$ac_link"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } && {
10138 test -z "$ac_c_werror_flag" ||
10139 test ! -s conftest.err
10140 } && test -s conftest$ac_exeext &&
10141 $as_test_x conftest$ac_exeext; then
10142 ac_cv_lib_Xbsd_main=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_lib_Xbsd_main=no
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10152 LIBS=$ac_check_lib_save_LIBS
10154 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10155 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10156 if test $ac_cv_lib_Xbsd_main = yes; then
10157 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10162 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10163 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10164 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 else
10167 ac_check_lib_save_LIBS=$LIBS
10168 LIBS="-lpthreads $LIBS"
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char cma_open ();
10184 main ()
10186 return cma_open ();
10188 return 0;
10190 _ACEOF
10191 rm -f conftest.$ac_objext conftest$ac_exeext
10192 if { (ac_try="$ac_link"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196 esac
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_link") 2>conftest.er1
10199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest$ac_exeext &&
10208 $as_test_x conftest$ac_exeext; then
10209 ac_cv_lib_pthreads_cma_open=yes
10210 else
10211 echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_cv_lib_pthreads_cma_open=no
10217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10218 conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10221 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10222 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10223 if test $ac_cv_lib_pthreads_cma_open = yes; then
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_LIBPTHREADS 1
10226 _ACEOF
10228 LIBS="-lpthreads $LIBS"
10234 case ${host_os} in
10235 aix*)
10236 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10237 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10238 if test "${gdb_cv_bigtoc+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10242 case $GCC in
10243 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10244 *) gdb_cv_bigtoc=-bbigtoc ;;
10245 esac
10247 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10256 main ()
10258 int i;
10260 return 0;
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest$ac_exeext &&
10280 $as_test_x conftest$ac_exeext; then
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10286 gdb_cv_bigtoc=
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290 conftest$ac_exeext conftest.$ac_ext
10293 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10294 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10296 esac
10298 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10299 # used for the tests that follow. We set them back to REAL_CFLAGS and
10300 # REAL_CPPFLAGS later on.
10302 REAL_CPPFLAGS="$CPPFLAGS"
10304 if test "${HAVE_X11}" = "yes"; then
10305 DEFS="$C_SWITCH_X_SITE $DEFS"
10306 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10307 LIBS="$LIBX $LIBS"
10308 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10309 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10311 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10312 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10313 # but it's more convenient here to set LD_RUN_PATH
10314 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10315 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10316 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10317 export LD_RUN_PATH
10320 if test "${opsys}" = "gnu-linux"; then
10321 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10322 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10331 main ()
10333 XOpenDisplay ("foo");
10335 return 0;
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest$ac_exeext &&
10355 $as_test_x conftest$ac_exeext; then
10356 xlinux_first_failure=no
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 xlinux_first_failure=yes
10364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10365 conftest$ac_exeext conftest.$ac_ext
10366 if test "${xlinux_first_failure}" = "yes"; then
10367 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10368 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10369 OLD_CPPFLAGS="$CPPFLAGS"
10370 OLD_LIBS="$LIBS"
10371 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10372 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10373 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10374 LIBS="$LIBS -b i486-linuxaout"
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10383 main ()
10385 XOpenDisplay ("foo");
10387 return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext &&
10407 $as_test_x conftest$ac_exeext; then
10408 xlinux_second_failure=no
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 xlinux_second_failure=yes
10416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10417 conftest$ac_exeext conftest.$ac_ext
10418 if test "${xlinux_second_failure}" = "yes"; then
10419 # If we get the same failure with -b, there is no use adding -b.
10420 # So take it out. This plays safe.
10421 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10422 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10423 CPPFLAGS="$OLD_CPPFLAGS"
10424 LIBS="$OLD_LIBS"
10425 { echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6; }
10427 else
10428 { echo "$as_me:$LINENO: result: yes" >&5
10429 echo "${ECHO_T}yes" >&6; }
10431 else
10432 { echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6; }
10437 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10438 # header files included from there.
10439 { echo "$as_me:$LINENO: checking for Xkb" >&5
10440 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10441 cat >conftest.$ac_ext <<_ACEOF
10442 /* confdefs.h. */
10443 _ACEOF
10444 cat confdefs.h >>conftest.$ac_ext
10445 cat >>conftest.$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 #include <X11/Xlib.h>
10448 #include <X11/XKBlib.h>
10450 main ()
10452 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10454 return 0;
10456 _ACEOF
10457 rm -f conftest.$ac_objext conftest$ac_exeext
10458 if { (ac_try="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_link") 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest$ac_exeext &&
10474 $as_test_x conftest$ac_exeext; then
10475 emacs_xkb=yes
10476 else
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10480 emacs_xkb=no
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10485 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10486 echo "${ECHO_T}$emacs_xkb" >&6; }
10487 if test $emacs_xkb = yes; then
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_XKBGETKEYBOARD 1
10491 _ACEOF
10499 for ac_func in XrmSetDatabase XScreenResourceString \
10500 XScreenNumberOfScreen XSetWMProtocols
10502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10516 #define $ac_func innocuous_$ac_func
10518 /* System header to define __stub macros and hopefully few prototypes,
10519 which can conflict with char $ac_func (); below.
10520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 <limits.h> exists even on freestanding compilers. */
10523 #ifdef __STDC__
10524 # include <limits.h>
10525 #else
10526 # include <assert.h>
10527 #endif
10529 #undef $ac_func
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 char $ac_func ();
10538 /* The GNU C library defines this for functions which it implements
10539 to always fail with ENOSYS. Some functions are actually named
10540 something starting with __ and the normal name is an alias. */
10541 #if defined __stub_$ac_func || defined __stub___$ac_func
10542 choke me
10543 #endif
10546 main ()
10548 return $ac_func ();
10550 return 0;
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (ac_try="$ac_link"
10555 case "(($ac_try" in
10556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560 (eval "$ac_link") 2>conftest.er1
10561 ac_status=$?
10562 grep -v '^ *+' conftest.er1 >conftest.err
10563 rm -f conftest.er1
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } && {
10567 test -z "$ac_c_werror_flag" ||
10568 test ! -s conftest.err
10569 } && test -s conftest$ac_exeext &&
10570 $as_test_x conftest$ac_exeext; then
10571 eval "$as_ac_var=yes"
10572 else
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580 conftest$ac_exeext conftest.$ac_ext
10582 ac_res=`eval echo '${'$as_ac_var'}'`
10583 { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10585 if test `eval echo '${'$as_ac_var'}'` = yes; then
10586 cat >>confdefs.h <<_ACEOF
10587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10588 _ACEOF
10591 done
10595 if test "${window_system}" = "x11"; then
10596 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10597 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10598 if test "${emacs_cv_x11_version_6+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <X11/Xlib.h>
10609 main ()
10611 #if XlibSpecificationRelease < 6
10612 fail;
10613 #endif
10616 return 0;
10618 _ACEOF
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (ac_try="$ac_link"
10621 case "(($ac_try" in
10622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623 *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626 (eval "$ac_link") 2>conftest.er1
10627 ac_status=$?
10628 grep -v '^ *+' conftest.er1 >conftest.err
10629 rm -f conftest.er1
10630 cat conftest.err >&5
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); } && {
10633 test -z "$ac_c_werror_flag" ||
10634 test ! -s conftest.err
10635 } && test -s conftest$ac_exeext &&
10636 $as_test_x conftest$ac_exeext; then
10637 emacs_cv_x11_version_6=yes
10638 else
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 emacs_cv_x11_version_6=no
10645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10646 conftest$ac_exeext conftest.$ac_ext
10649 if test $emacs_cv_x11_version_6 = yes; then
10650 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10651 echo "${ECHO_T}6 or newer" >&6; }
10653 cat >>confdefs.h <<\_ACEOF
10654 #define HAVE_X11R6 1
10655 _ACEOF
10657 else
10658 { echo "$as_me:$LINENO: result: before 6" >&5
10659 echo "${ECHO_T}before 6" >&6; }
10664 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10665 HAVE_RSVG=no
10666 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10667 if test "${with_rsvg}" != "no"; then
10668 RSVG_REQUIRED=2.0.0
10669 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10672 succeeded=no
10674 # Extract the first word of "pkg-config", so it can be a program name with args.
10675 set dummy pkg-config; ac_word=$2
10676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 case $PKG_CONFIG in
10682 [\\/]* | ?:[\\/]*)
10683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10697 done
10698 done
10699 IFS=$as_save_IFS
10701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10703 esac
10705 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10706 if test -n "$PKG_CONFIG"; then
10707 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10708 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10709 else
10710 { echo "$as_me:$LINENO: result: no" >&5
10711 echo "${ECHO_T}no" >&6; }
10716 if test "$PKG_CONFIG" = "no" ; then
10718 else
10719 PKG_CONFIG_MIN_VERSION=0.9.0
10720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10721 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10722 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10724 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10725 { echo "$as_me:$LINENO: result: yes" >&5
10726 echo "${ECHO_T}yes" >&6; }
10727 succeeded=yes
10729 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10730 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10731 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10732 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10733 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10735 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10736 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10737 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10738 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10739 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10740 else
10741 { echo "$as_me:$LINENO: result: no" >&5
10742 echo "${ECHO_T}no" >&6; }
10743 RSVG_CFLAGS=""
10744 RSVG_LIBS=""
10745 ## If we have a custom action on failure, don't print errors, but
10746 ## do set a variable so people can do so.
10747 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10753 else
10754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10759 if test $succeeded = yes; then
10761 else
10768 if test ".${RSVG_CFLAGS}" != "."; then
10769 HAVE_RSVG=yes
10771 cat >>confdefs.h <<\_ACEOF
10772 #define HAVE_RSVG 1
10773 _ACEOF
10775 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10776 LIBS="$RSVG_LIBS $LIBS"
10782 HAVE_GTK=no
10783 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10784 GLIB_REQUIRED=2.6
10785 GTK_REQUIRED=2.6
10786 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10789 succeeded=no
10791 # Extract the first word of "pkg-config", so it can be a program name with args.
10792 set dummy pkg-config; ac_word=$2
10793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798 case $PKG_CONFIG in
10799 [\\/]* | ?:[\\/]*)
10800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10814 done
10815 done
10816 IFS=$as_save_IFS
10818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10820 esac
10822 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10823 if test -n "$PKG_CONFIG"; then
10824 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10825 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10826 else
10827 { echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6; }
10833 if test "$PKG_CONFIG" = "no" ; then
10834 pkg_check_gtk=no
10835 else
10836 PKG_CONFIG_MIN_VERSION=0.9.0
10837 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10838 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10839 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10841 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10842 { echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6; }
10844 succeeded=yes
10846 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10847 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10848 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10849 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10850 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10852 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10853 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10854 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10855 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10856 echo "${ECHO_T}$GTK_LIBS" >&6; }
10857 else
10858 { echo "$as_me:$LINENO: result: no" >&5
10859 echo "${ECHO_T}no" >&6; }
10860 GTK_CFLAGS=""
10861 GTK_LIBS=""
10862 ## If we have a custom action on failure, don't print errors, but
10863 ## do set a variable so people can do so.
10864 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10870 else
10871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10876 if test $succeeded = yes; then
10877 pkg_check_gtk=yes
10878 else
10879 pkg_check_gtk=no
10882 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10883 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10884 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10885 { (exit 1); exit 1; }; }
10890 if test x"$pkg_check_gtk" = xyes; then
10894 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10895 CFLAGS="$CFLAGS $GTK_CFLAGS"
10896 LIBS="$GTK_LIBS $LIBS"
10897 GTK_COMPILES=no
10899 for ac_func in gtk_main
10901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 else
10907 cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h. */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10915 #define $ac_func innocuous_$ac_func
10917 /* System header to define __stub macros and hopefully few prototypes,
10918 which can conflict with char $ac_func (); below.
10919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10920 <limits.h> exists even on freestanding compilers. */
10922 #ifdef __STDC__
10923 # include <limits.h>
10924 #else
10925 # include <assert.h>
10926 #endif
10928 #undef $ac_func
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char $ac_func ();
10937 /* The GNU C library defines this for functions which it implements
10938 to always fail with ENOSYS. Some functions are actually named
10939 something starting with __ and the normal name is an alias. */
10940 #if defined __stub_$ac_func || defined __stub___$ac_func
10941 choke me
10942 #endif
10945 main ()
10947 return $ac_func ();
10949 return 0;
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (ac_try="$ac_link"
10954 case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_link") 2>conftest.er1
10960 ac_status=$?
10961 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1
10963 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && {
10966 test -z "$ac_c_werror_flag" ||
10967 test ! -s conftest.err
10968 } && test -s conftest$ac_exeext &&
10969 $as_test_x conftest$ac_exeext; then
10970 eval "$as_ac_var=yes"
10971 else
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 eval "$as_ac_var=no"
10978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979 conftest$ac_exeext conftest.$ac_ext
10981 ac_res=`eval echo '${'$as_ac_var'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983 echo "${ECHO_T}$ac_res" >&6; }
10984 if test `eval echo '${'$as_ac_var'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10987 _ACEOF
10988 GTK_COMPILES=yes
10990 done
10992 if test "${GTK_COMPILES}" != "yes"; then
10993 if test "$USE_X_TOOLKIT" != "maybe"; then
10994 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10995 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10996 { (exit 1); exit 1; }; };
10998 else
10999 HAVE_GTK=yes
11001 cat >>confdefs.h <<\_ACEOF
11002 #define HAVE_GTK 1
11003 _ACEOF
11005 USE_X_TOOLKIT=none
11006 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11008 else
11009 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11010 closing open displays. This is no problem if you just use
11011 one display, but if you use more than one and close one of them
11012 Emacs may crash." >&5
11013 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11014 closing open displays. This is no problem if you just use
11015 one display, but if you use more than one and close one of them
11016 Emacs may crash." >&2;}
11017 sleep 3
11024 if test "${HAVE_GTK}" = "yes"; then
11026 if test "$with_toolkit_scroll_bars" != no; then
11027 with_toolkit_scroll_bars=yes
11030 HAVE_GTK_MULTIDISPLAY=no
11032 for ac_func in gdk_display_open
11034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h. */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048 #define $ac_func innocuous_$ac_func
11050 /* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11055 #ifdef __STDC__
11056 # include <limits.h>
11057 #else
11058 # include <assert.h>
11059 #endif
11061 #undef $ac_func
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char $ac_func ();
11070 /* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
11073 #if defined __stub_$ac_func || defined __stub___$ac_func
11074 choke me
11075 #endif
11078 main ()
11080 return $ac_func ();
11082 return 0;
11084 _ACEOF
11085 rm -f conftest.$ac_objext conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
11093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && {
11099 test -z "$ac_c_werror_flag" ||
11100 test ! -s conftest.err
11101 } && test -s conftest$ac_exeext &&
11102 $as_test_x conftest$ac_exeext; then
11103 eval "$as_ac_var=yes"
11104 else
11105 echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 eval "$as_ac_var=no"
11111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11112 conftest$ac_exeext conftest.$ac_ext
11114 ac_res=`eval echo '${'$as_ac_var'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11117 if test `eval echo '${'$as_ac_var'}'` = yes; then
11118 cat >>confdefs.h <<_ACEOF
11119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11120 _ACEOF
11121 HAVE_GTK_MULTIDISPLAY=yes
11123 done
11125 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11127 cat >>confdefs.h <<\_ACEOF
11128 #define HAVE_GTK_MULTIDISPLAY 1
11129 _ACEOF
11133 HAVE_GTK_FILE_SELECTION=no
11135 for ac_func in gtk_file_selection_new
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143 cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11158 #ifdef __STDC__
11159 # include <limits.h>
11160 #else
11161 # include <assert.h>
11162 #endif
11164 #undef $ac_func
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11169 #ifdef __cplusplus
11170 extern "C"
11171 #endif
11172 char $ac_func ();
11173 /* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176 #if defined __stub_$ac_func || defined __stub___$ac_func
11177 choke me
11178 #endif
11181 main ()
11183 return $ac_func ();
11185 return 0;
11187 _ACEOF
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193 esac
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest$ac_exeext &&
11205 $as_test_x conftest$ac_exeext; then
11206 eval "$as_ac_var=yes"
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11215 conftest$ac_exeext conftest.$ac_ext
11217 ac_res=`eval echo '${'$as_ac_var'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11220 if test `eval echo '${'$as_ac_var'}'` = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11223 _ACEOF
11224 HAVE_GTK_FILE_SELECTION=yes
11226 done
11229 HAVE_GTK_FILE_CHOOSER=no
11231 for ac_func in gtk_file_chooser_dialog_new
11233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247 #define $ac_func innocuous_$ac_func
11249 /* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func (); below.
11251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252 <limits.h> exists even on freestanding compilers. */
11254 #ifdef __STDC__
11255 # include <limits.h>
11256 #else
11257 # include <assert.h>
11258 #endif
11260 #undef $ac_func
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 char $ac_func ();
11269 /* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
11272 #if defined __stub_$ac_func || defined __stub___$ac_func
11273 choke me
11274 #endif
11277 main ()
11279 return $ac_func ();
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (ac_try="$ac_link"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_link") 2>conftest.er1
11292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest$ac_exeext &&
11301 $as_test_x conftest$ac_exeext; then
11302 eval "$as_ac_var=yes"
11303 else
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 eval "$as_ac_var=no"
11310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11311 conftest$ac_exeext conftest.$ac_ext
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11320 HAVE_GTK_FILE_CHOOSER=yes
11322 done
11325 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11326 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_GTK_FILE_BOTH 1
11330 _ACEOF
11334 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11335 HAVE_GTK_AND_PTHREAD=no
11337 for ac_header in pthread.h
11339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 ac_res=`eval echo '${'$as_ac_Header'}'`
11347 { echo "$as_me:$LINENO: result: $ac_res" >&5
11348 echo "${ECHO_T}$ac_res" >&6; }
11349 else
11350 # Is the header compilable?
11351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h. */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 $ac_includes_default
11360 #include <$ac_header>
11361 _ACEOF
11362 rm -f conftest.$ac_objext
11363 if { (ac_try="$ac_compile"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_compile") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest.$ac_objext; then
11379 ac_header_compiler=yes
11380 else
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_compiler=no
11387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11389 echo "${ECHO_T}$ac_header_compiler" >&6; }
11391 # Is the header present?
11392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <$ac_header>
11401 _ACEOF
11402 if { (ac_try="$ac_cpp conftest.$ac_ext"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } >/dev/null && {
11415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11416 test ! -s conftest.err
11417 }; then
11418 ac_header_preproc=yes
11419 else
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.$ac_ext >&5
11423 ac_header_preproc=no
11426 rm -f conftest.err conftest.$ac_ext
11427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11428 echo "${ECHO_T}$ac_header_preproc" >&6; }
11430 # So? What about this header?
11431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11432 yes:no: )
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11437 ac_header_preproc=yes
11439 no:yes:* )
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11454 esac
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 eval "$as_ac_Header=\$ac_header_preproc"
11462 ac_res=`eval echo '${'$as_ac_Header'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11470 _ACEOF
11474 done
11476 if test "$ac_cv_header_pthread_h"; then
11477 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11478 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11479 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482 ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-lpthread $LIBS"
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char pthread_self ();
11499 main ()
11501 return pthread_self ();
11503 return 0;
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (ac_try="$ac_link"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_link") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest$ac_exeext &&
11523 $as_test_x conftest$ac_exeext; then
11524 ac_cv_lib_pthread_pthread_self=yes
11525 else
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 ac_cv_lib_pthread_pthread_self=no
11532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11536 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11537 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11538 if test $ac_cv_lib_pthread_pthread_self = yes; then
11539 HAVE_GTK_AND_PTHREAD=yes
11543 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11544 case "${canonical}" in
11545 *-hpux*) ;;
11546 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11547 esac
11549 cat >>confdefs.h <<\_ACEOF
11550 #define HAVE_GTK_AND_PTHREAD 1
11551 _ACEOF
11557 HAVE_DBUS=no
11558 if test "${with_dbus}" = "yes"; then
11560 succeeded=no
11562 # Extract the first word of "pkg-config", so it can be a program name with args.
11563 set dummy pkg-config; ac_word=$2
11564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569 case $PKG_CONFIG in
11570 [\\/]* | ?:[\\/]*)
11571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11585 done
11586 done
11587 IFS=$as_save_IFS
11589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11591 esac
11593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11594 if test -n "$PKG_CONFIG"; then
11595 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11596 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11597 else
11598 { echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6; }
11604 if test "$PKG_CONFIG" = "no" ; then
11605 HAVE_DBUS=no
11606 else
11607 PKG_CONFIG_MIN_VERSION=0.9.0
11608 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11609 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11610 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11612 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11613 { echo "$as_me:$LINENO: result: yes" >&5
11614 echo "${ECHO_T}yes" >&6; }
11615 succeeded=yes
11617 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11618 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11619 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11620 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11621 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11623 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11624 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11625 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11626 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11627 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11628 else
11629 { echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6; }
11631 DBUS_CFLAGS=""
11632 DBUS_LIBS=""
11633 ## If we have a custom action on failure, don't print errors, but
11634 ## do set a variable so people can do so.
11635 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11641 else
11642 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11643 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11647 if test $succeeded = yes; then
11648 HAVE_DBUS=yes
11649 else
11650 HAVE_DBUS=no
11653 if test "$HAVE_DBUS" = yes; then
11655 cat >>confdefs.h <<\_ACEOF
11656 #define HAVE_DBUS 1
11657 _ACEOF
11662 HAVE_XAW3D=no
11663 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11664 if test "$with_xaw3d" != no; then
11665 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11666 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11667 if test "${emacs_cv_xaw3d+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h. */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11677 #include <X11/Intrinsic.h>
11678 #include <X11/Xaw3d/Simple.h>
11680 main ()
11684 return 0;
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (ac_try="$ac_link"
11689 case "(($ac_try" in
11690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11691 *) ac_try_echo=$ac_try;;
11692 esac
11693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11694 (eval "$ac_link") 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext &&
11704 $as_test_x conftest$ac_exeext; then
11705 emacs_cv_xaw3d=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 emacs_cv_xaw3d=no
11713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11714 conftest$ac_exeext conftest.$ac_ext
11717 else
11718 emacs_cv_xaw3d=no
11720 if test $emacs_cv_xaw3d = yes; then
11721 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11722 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11723 USE_X_TOOLKIT=LUCID
11724 HAVE_XAW3D=yes
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_XAW3D 1
11728 _ACEOF
11730 else
11731 { echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6; }
11733 { echo "$as_me:$LINENO: checking for libXaw" >&5
11734 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11735 if test "${emacs_cv_xaw+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11745 #include <X11/Intrinsic.h>
11746 #include <X11/Xaw/Simple.h>
11748 main ()
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_link") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest$ac_exeext &&
11772 $as_test_x conftest$ac_exeext; then
11773 emacs_cv_xaw=yes
11774 else
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 emacs_cv_xaw=no
11781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11782 conftest$ac_exeext conftest.$ac_ext
11785 if test $emacs_cv_xaw = yes; then
11786 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11787 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11788 USE_X_TOOLKIT=LUCID
11789 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11790 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11791 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11792 { (exit 1); exit 1; }; }
11793 else
11794 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11795 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11796 USE_X_TOOLKIT=none
11801 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11803 if test "${USE_X_TOOLKIT}" != "none"; then
11804 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11805 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11806 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <X11/Intrinsic.h>
11817 main ()
11819 #if XtSpecificationRelease < 6
11820 fail;
11821 #endif
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (ac_try="$ac_link"
11829 case "(($ac_try" in
11830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11832 esac
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_link") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest$ac_exeext &&
11844 $as_test_x conftest$ac_exeext; then
11845 emacs_cv_x11_toolkit_version_6=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 emacs_cv_x11_toolkit_version_6=no
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854 conftest$ac_exeext conftest.$ac_ext
11857 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11858 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11859 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11860 echo "${ECHO_T}6 or newer" >&6; }
11862 cat >>confdefs.h <<\_ACEOF
11863 #define HAVE_X11XTR6 1
11864 _ACEOF
11866 else
11867 { echo "$as_me:$LINENO: result: before 6" >&5
11868 echo "${ECHO_T}before 6" >&6; }
11871 OLDLIBS="$LIBS"
11872 if test x$HAVE_X11XTR6 = xyes; then
11873 LIBS="-lXt -lSM -lICE $LIBS"
11874 else
11875 LIBS="-lXt $LIBS"
11878 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11879 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11880 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lXmu $LIBS"
11885 cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char XmuConvertStandardSelection ();
11900 main ()
11902 return XmuConvertStandardSelection ();
11904 return 0;
11906 _ACEOF
11907 rm -f conftest.$ac_objext conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912 esac
11913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_link") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest$ac_exeext &&
11924 $as_test_x conftest$ac_exeext; then
11925 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11937 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11938 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11939 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11940 cat >>confdefs.h <<_ACEOF
11941 #define HAVE_LIBXMU 1
11942 _ACEOF
11944 LIBS="-lXmu $LIBS"
11948 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11951 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11952 if test "${HAVE_X11}" = "yes"; then
11953 if test "${USE_X_TOOLKIT}" != "none"; then
11955 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11956 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11957 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-lXext $LIBS"
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11972 #ifdef __cplusplus
11973 extern "C"
11974 #endif
11975 char XShapeQueryExtension ();
11977 main ()
11979 return XShapeQueryExtension ();
11981 return 0;
11983 _ACEOF
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>conftest.er1
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && {
11998 test -z "$ac_c_werror_flag" ||
11999 test ! -s conftest.err
12000 } && test -s conftest$ac_exeext &&
12001 $as_test_x conftest$ac_exeext; then
12002 ac_cv_lib_Xext_XShapeQueryExtension=yes
12003 else
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_cv_lib_Xext_XShapeQueryExtension=no
12010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12011 conftest$ac_exeext conftest.$ac_ext
12012 LIBS=$ac_check_lib_save_LIBS
12014 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12015 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12016 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018 #define HAVE_LIBXEXT 1
12019 _ACEOF
12021 LIBS="-lXext $LIBS"
12028 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12029 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12030 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12031 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <Xm/Xm.h>
12042 main ()
12044 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12045 int x = 5;
12046 #else
12047 Motif version prior to 2.1.
12048 #endif
12050 return 0;
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12070 emacs_cv_motif_version_2_1=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12075 emacs_cv_motif_version_2_1=no
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12081 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12082 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12083 if test $emacs_cv_motif_version_2_1 = yes; then
12084 HAVE_LIBXP=no
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_MOTIF_2_1 1
12088 _ACEOF
12090 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12091 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lXp $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char XpCreateContext ();
12112 main ()
12114 return XpCreateContext ();
12116 return 0;
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest$ac_exeext &&
12136 $as_test_x conftest$ac_exeext; then
12137 ac_cv_lib_Xp_XpCreateContext=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 ac_cv_lib_Xp_XpCreateContext=no
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12150 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12151 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12152 HAVE_LIBXP=yes
12155 if test ${HAVE_LIBXP} = yes; then
12157 cat >>confdefs.h <<\_ACEOF
12158 #define HAVE_LIBXP 1
12159 _ACEOF
12162 else
12163 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12164 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12165 if test "${emacs_cv_lesstif+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168 # We put this in CFLAGS temporarily to precede other -I options
12169 # that might be in CFLAGS temporarily.
12170 # We put this in CPPFLAGS where it precedes the other -I options.
12171 OLD_CPPFLAGS=$CPPFLAGS
12172 OLD_CFLAGS=$CFLAGS
12173 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12174 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12183 main ()
12185 int x = 5;
12187 return 0;
12189 _ACEOF
12190 rm -f conftest.$ac_objext
12191 if { (ac_try="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 emacs_cv_lesstif=yes
12208 else
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 emacs_cv_lesstif=no
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12218 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12219 if test $emacs_cv_lesstif = yes; then
12220 # Make sure this -I option remains in CPPFLAGS after it is set
12221 # back to REAL_CPPFLAGS.
12222 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12223 # have those other -I options anyway. Ultimately, having this
12224 # directory ultimately in CPPFLAGS will be enough.
12225 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12226 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12227 else
12228 CFLAGS=$OLD_CFLAGS
12229 CPPFLAGS=$OLD_CPPFLAGS
12236 USE_TOOLKIT_SCROLL_BARS=no
12237 if test "${with_toolkit_scroll_bars}" != "no"; then
12238 if test "${USE_X_TOOLKIT}" != "none"; then
12239 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define USE_TOOLKIT_SCROLL_BARS 1
12242 _ACEOF
12244 HAVE_XAW3D=no
12245 USE_TOOLKIT_SCROLL_BARS=yes
12246 elif test "${HAVE_XAW3D}" = "yes"; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define USE_TOOLKIT_SCROLL_BARS 1
12249 _ACEOF
12251 USE_TOOLKIT_SCROLL_BARS=yes
12253 elif test "${HAVE_GTK}" = "yes"; then
12254 cat >>confdefs.h <<\_ACEOF
12255 #define USE_TOOLKIT_SCROLL_BARS 1
12256 _ACEOF
12258 USE_TOOLKIT_SCROLL_BARS=yes
12259 elif test "${HAVE_CARBON}" = "yes"; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define USE_TOOLKIT_SCROLL_BARS 1
12262 _ACEOF
12264 USE_TOOLKIT_SCROLL_BARS=yes
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 #include <X11/Xlib.h>
12276 #include <X11/Xresource.h>
12278 main ()
12280 XIMProc callback;
12282 return 0;
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (ac_try="$ac_compile"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290 esac
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_compile") 2>conftest.er1
12293 ac_status=$?
12294 grep -v '^ *+' conftest.er1 >conftest.err
12295 rm -f conftest.er1
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && {
12299 test -z "$ac_c_werror_flag" ||
12300 test ! -s conftest.err
12301 } && test -s conftest.$ac_objext; then
12302 HAVE_XIM=yes
12304 cat >>confdefs.h <<\_ACEOF
12305 #define HAVE_XIM 1
12306 _ACEOF
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 HAVE_XIM=no
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 if test "${with_xim}" != "no"; then
12320 cat >>confdefs.h <<\_ACEOF
12321 #define USE_XIM 1
12322 _ACEOF
12327 if test "${HAVE_XIM}" != "no"; then
12328 late_CFLAGS=$CFLAGS
12329 if test "$GCC" = yes; then
12330 CFLAGS="$CFLAGS --pedantic-errors"
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h. */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12339 #include <X11/Xlib.h>
12340 #include <X11/Xresource.h>
12342 main ()
12344 Display *display;
12345 XrmDatabase db;
12346 char *res_name;
12347 char *res_class;
12348 XIMProc callback;
12349 XPointer *client_data;
12350 #ifndef __GNUC__
12351 /* If we're not using GCC, it's probably not XFree86, and this is
12352 probably right, but we can't use something like --pedantic-errors. */
12353 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12354 char*, XIMProc, XPointer*);
12355 #endif
12356 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12357 client_data);
12359 return 0;
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_compile") 2>conftest.er1
12370 ac_status=$?
12371 grep -v '^ *+' conftest.er1 >conftest.err
12372 rm -f conftest.er1
12373 cat conftest.err >&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); } && {
12376 test -z "$ac_c_werror_flag" ||
12377 test ! -s conftest.err
12378 } && test -s conftest.$ac_objext; then
12379 emacs_cv_arg6_star=yes
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 if test "$emacs_cv_arg6_star" = yes; then
12390 cat >>confdefs.h <<\_ACEOF
12391 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12392 _ACEOF
12394 else
12395 cat >>confdefs.h <<\_ACEOF
12396 #define XRegisterIMInstantiateCallback_arg6 XPointer
12397 _ACEOF
12400 CFLAGS=$late_CFLAGS
12403 ### Start of font-backend section.
12404 if test "${HAVE_X11}" != "yes"; then
12405 USE_FONT_BACKEND=no
12408 if test "${USE_FONT_BACKEND}" = "yes"; then
12410 cat >>confdefs.h <<\_ACEOF
12411 #define USE_FONT_BACKEND 1
12412 _ACEOF
12415 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12416 HAVE_XFT=maybe
12417 if test "x${with_freetype}" = "xno"; then
12418 with_xft="no";
12420 if test "x${with_xft}" != "xno"; then
12423 succeeded=no
12425 # Extract the first word of "pkg-config", so it can be a program name with args.
12426 set dummy pkg-config; ac_word=$2
12427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432 case $PKG_CONFIG in
12433 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12440 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2
12448 done
12449 done
12450 IFS=$as_save_IFS
12452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12454 esac
12456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457 if test -n "$PKG_CONFIG"; then
12458 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12459 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12460 else
12461 { echo "$as_me:$LINENO: result: no" >&5
12462 echo "${ECHO_T}no" >&6; }
12467 if test "$PKG_CONFIG" = "no" ; then
12468 HAVE_XFT=no
12469 else
12470 PKG_CONFIG_MIN_VERSION=0.9.0
12471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12472 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12473 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12475 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12476 { echo "$as_me:$LINENO: result: yes" >&5
12477 echo "${ECHO_T}yes" >&6; }
12478 succeeded=yes
12480 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12481 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12482 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12483 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12484 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12486 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12487 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12488 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12489 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12490 echo "${ECHO_T}$XFT_LIBS" >&6; }
12491 else
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12494 XFT_CFLAGS=""
12495 XFT_LIBS=""
12496 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so.
12498 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12504 else
12505 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12506 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12510 if test $succeeded = yes; then
12512 else
12513 HAVE_XFT=no
12516 if test "$HAVE_XFT" != no; then
12517 OLD_CPPFLAGS="$CPPFLAGS"
12518 OLD_CFLAGS="$CFLAGS"
12519 OLD_LIBS="$LIBS"
12520 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12521 CFLAGS="$CFLAGS $XFT_CFLAGS"
12522 LIBS="$XFT_LIBS $LIBS"
12523 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12524 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12525 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12526 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12529 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12530 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12531 else
12532 # Is the header compilable?
12533 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12534 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12535 cat >conftest.$ac_ext <<_ACEOF
12536 /* confdefs.h. */
12537 _ACEOF
12538 cat confdefs.h >>conftest.$ac_ext
12539 cat >>conftest.$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 $ac_includes_default
12542 #include <X11/Xft/Xft.h>
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12552 ac_status=$?
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
12561 ac_header_compiler=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_header_compiler=no
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12571 echo "${ECHO_T}$ac_header_compiler" >&6; }
12573 # Is the header present?
12574 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12575 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <X11/Xft/Xft.h>
12583 _ACEOF
12584 if { (ac_try="$ac_cpp conftest.$ac_ext"
12585 case "(($ac_try" in
12586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12587 *) ac_try_echo=$ac_try;;
12588 esac
12589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12591 ac_status=$?
12592 grep -v '^ *+' conftest.er1 >conftest.err
12593 rm -f conftest.er1
12594 cat conftest.err >&5
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); } >/dev/null && {
12597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12598 test ! -s conftest.err
12599 }; then
12600 ac_header_preproc=yes
12601 else
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 ac_header_preproc=no
12608 rm -f conftest.err conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12610 echo "${ECHO_T}$ac_header_preproc" >&6; }
12612 # So? What about this header?
12613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12614 yes:no: )
12615 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12616 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12618 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12619 ac_header_preproc=yes
12621 no:yes:* )
12622 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12623 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12625 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12627 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12629 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12631 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12633 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12636 esac
12637 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12638 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12639 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641 else
12642 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12644 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12645 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12648 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12649 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12650 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12651 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lXft $XFT_LIBS $LIBS"
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12663 /* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char XftFontOpen ();
12671 main ()
12673 return XftFontOpen ();
12675 return 0;
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 ac_cv_lib_Xft_XftFontOpen=yes
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 ac_cv_lib_Xft_XftFontOpen=no
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12708 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12709 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12710 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12711 HAVE_XFT=yes
12718 if test "${HAVE_XFT}" = "yes"; then
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_XFT 1
12722 _ACEOF
12725 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12726 else
12727 CPPFLAGS="$OLD_CPPFLAGS"
12728 CFLAGS="$OLD_CFLAGS"
12729 LIBS="$OLD_LIBS"
12730 fi # "${HAVE_XFT}" = "yes"
12731 fi # "$HAVE_XFT" != no
12732 fi # "x${with_xft}" != "xno"
12734 if test "$HAVE_XFT" != "yes"; then
12735 HAVE_XFT=no
12739 HAVE_FREETYPE=no
12740 ### Use -lfreetype if available, unless `--with-freetype=no'.
12741 if test "${HAVE_XFT}" = "yes"; then
12742 HAVE_FREETYPE=yes
12743 elif test "x${with_freetype}" != "xno"; then
12746 succeeded=no
12748 # Extract the first word of "pkg-config", so it can be a program name with args.
12749 set dummy pkg-config; ac_word=$2
12750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12752 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 case $PKG_CONFIG in
12756 [\\/]* | ?:[\\/]*)
12757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12763 IFS=$as_save_IFS
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12769 break 2
12771 done
12772 done
12773 IFS=$as_save_IFS
12775 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12777 esac
12779 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12780 if test -n "$PKG_CONFIG"; then
12781 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12782 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12783 else
12784 { echo "$as_me:$LINENO: result: no" >&5
12785 echo "${ECHO_T}no" >&6; }
12790 if test "$PKG_CONFIG" = "no" ; then
12791 HAVE_FREETYPE=no
12792 else
12793 PKG_CONFIG_MIN_VERSION=0.9.0
12794 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12795 { echo "$as_me:$LINENO: checking for freetype2" >&5
12796 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12798 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12799 { echo "$as_me:$LINENO: result: yes" >&5
12800 echo "${ECHO_T}yes" >&6; }
12801 succeeded=yes
12803 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12804 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12805 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12806 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12807 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12809 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12810 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12811 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12812 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12813 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12814 else
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12817 FREETYPE_CFLAGS=""
12818 FREETYPE_LIBS=""
12819 ## If we have a custom action on failure, don't print errors, but
12820 ## do set a variable so people can do so.
12821 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12827 else
12828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12833 if test $succeeded = yes; then
12834 HAVE_FREETYPE=yes
12835 else
12836 HAVE_FREETYPE=no
12839 if test "${HAVE_FREETYPE}" = "yes"; then
12841 succeeded=no
12843 # Extract the first word of "pkg-config", so it can be a program name with args.
12844 set dummy pkg-config; ac_word=$2
12845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850 case $PKG_CONFIG in
12851 [\\/]* | ?:[\\/]*)
12852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12858 IFS=$as_save_IFS
12859 test -z "$as_dir" && as_dir=.
12860 for ac_exec_ext in '' $ac_executable_extensions; do
12861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12864 break 2
12866 done
12867 done
12868 IFS=$as_save_IFS
12870 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12872 esac
12874 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12875 if test -n "$PKG_CONFIG"; then
12876 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12877 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12878 else
12879 { echo "$as_me:$LINENO: result: no" >&5
12880 echo "${ECHO_T}no" >&6; }
12885 if test "$PKG_CONFIG" = "no" ; then
12886 HAVE_FC=no
12887 else
12888 PKG_CONFIG_MIN_VERSION=0.9.0
12889 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12890 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12891 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12893 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12894 { echo "$as_me:$LINENO: result: yes" >&5
12895 echo "${ECHO_T}yes" >&6; }
12896 succeeded=yes
12898 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12899 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12900 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12901 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12902 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12904 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12905 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12906 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12907 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12908 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12909 else
12910 { echo "$as_me:$LINENO: result: no" >&5
12911 echo "${ECHO_T}no" >&6; }
12912 FONTCONFIG_CFLAGS=""
12913 FONTCONFIG_LIBS=""
12914 ## If we have a custom action on failure, don't print errors, but
12915 ## do set a variable so people can do so.
12916 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12922 else
12923 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12924 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12928 if test $succeeded = yes; then
12929 HAVE_FC=yes
12930 else
12931 HAVE_FC=no
12934 if test "${HAVE_FC}" = "no"; then
12935 HAVE_FREETYPE=no
12940 HAVE_LIBOTF=no
12941 if test "${HAVE_FREETYPE}" = "yes"; then
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_FREETYPE 1
12945 _ACEOF
12947 if test "${with_libotf}" != "no"; then
12949 succeeded=no
12951 # Extract the first word of "pkg-config", so it can be a program name with args.
12952 set dummy pkg-config; ac_word=$2
12953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12955 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958 case $PKG_CONFIG in
12959 [\\/]* | ?:[\\/]*)
12960 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12970 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12974 done
12975 done
12976 IFS=$as_save_IFS
12978 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12980 esac
12982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12983 if test -n "$PKG_CONFIG"; then
12984 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12985 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12986 else
12987 { echo "$as_me:$LINENO: result: no" >&5
12988 echo "${ECHO_T}no" >&6; }
12993 if test "$PKG_CONFIG" = "no" ; then
12994 HAVE_LIBOTF=no
12995 else
12996 PKG_CONFIG_MIN_VERSION=0.9.0
12997 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12998 { echo "$as_me:$LINENO: checking for libotf" >&5
12999 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13001 if $PKG_CONFIG --exists "libotf" 2>&5; then
13002 { echo "$as_me:$LINENO: result: yes" >&5
13003 echo "${ECHO_T}yes" >&6; }
13004 succeeded=yes
13006 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13007 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13008 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13009 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13010 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13012 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13013 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13014 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13015 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13016 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13017 else
13018 { echo "$as_me:$LINENO: result: no" >&5
13019 echo "${ECHO_T}no" >&6; }
13020 LIBOTF_CFLAGS=""
13021 LIBOTF_LIBS=""
13022 ## If we have a custom action on failure, don't print errors, but
13023 ## do set a variable so people can do so.
13024 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13030 else
13031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13036 if test $succeeded = yes; then
13037 HAVE_LIBOTF=yes
13038 else
13039 HAVE_LIBOTF=no
13042 if test "$HAVE_LIBOTF" = "yes"; then
13044 cat >>confdefs.h <<\_ACEOF
13045 #define HAVE_LIBOTF 1
13046 _ACEOF
13052 HAVE_M17N_FLT=no
13053 if test "${with_m17n_flt}" != "no"; then
13055 succeeded=no
13057 # Extract the first word of "pkg-config", so it can be a program name with args.
13058 set dummy pkg-config; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064 case $PKG_CONFIG in
13065 [\\/]* | ?:[\\/]*)
13066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13078 break 2
13080 done
13081 done
13082 IFS=$as_save_IFS
13084 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13086 esac
13088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13089 if test -n "$PKG_CONFIG"; then
13090 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13091 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13092 else
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13099 if test "$PKG_CONFIG" = "no" ; then
13100 HAVE_M17N_FLT=no
13101 else
13102 PKG_CONFIG_MIN_VERSION=0.9.0
13103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13104 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13105 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13107 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13108 { echo "$as_me:$LINENO: result: yes" >&5
13109 echo "${ECHO_T}yes" >&6; }
13110 succeeded=yes
13112 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13113 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13114 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13115 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13116 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13118 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13119 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13120 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13121 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13122 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13123 else
13124 { echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6; }
13126 M17N_FLT_CFLAGS=""
13127 M17N_FLT_LIBS=""
13128 ## If we have a custom action on failure, don't print errors, but
13129 ## do set a variable so people can do so.
13130 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13136 else
13137 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13138 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13142 if test $succeeded = yes; then
13143 HAVE_M17N_FLT=yes
13144 else
13145 HAVE_M17N_FLT=no
13148 if test "$HAVE_M17N_FLT" = "yes"; then
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_M17N_FLT 1
13152 _ACEOF
13166 fi # "${USE_FONT_BACKEND}" = "yes"
13167 ### End of font-backend section.
13169 ### Use -lXpm if available, unless `--with-xpm=no'.
13170 HAVE_XPM=no
13171 if test "${HAVE_X11}" = "yes"; then
13172 if test "${with_xpm}" != "no"; then
13173 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13174 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13175 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13176 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13180 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13181 else
13182 # Is the header compilable?
13183 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13184 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 $ac_includes_default
13192 #include <X11/xpm.h>
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest.$ac_objext; then
13211 ac_header_compiler=yes
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 ac_header_compiler=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13221 echo "${ECHO_T}$ac_header_compiler" >&6; }
13223 # Is the header present?
13224 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13225 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <X11/xpm.h>
13233 _ACEOF
13234 if { (ac_try="$ac_cpp conftest.$ac_ext"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } >/dev/null && {
13247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 }; then
13250 ac_header_preproc=yes
13251 else
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_header_preproc=no
13258 rm -f conftest.err conftest.$ac_ext
13259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 echo "${ECHO_T}$ac_header_preproc" >&6; }
13262 # So? What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13264 yes:no: )
13265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13266 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13269 ac_header_preproc=yes
13271 no:yes:* )
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13274 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13275 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13276 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13277 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13278 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13279 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13281 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13282 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13283 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13286 esac
13287 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13288 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13289 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 else
13292 ac_cv_header_X11_xpm_h=$ac_header_preproc
13294 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13295 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13298 if test $ac_cv_header_X11_xpm_h = yes; then
13299 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13300 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13301 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 ac_check_lib_save_LIBS=$LIBS
13305 LIBS="-lXpm -lX11 $LIBS"
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13313 /* Override any GCC internal prototype to avoid an error.
13314 Use char because int might match the return type of a GCC
13315 builtin and then its argument prototype would still apply. */
13316 #ifdef __cplusplus
13317 extern "C"
13318 #endif
13319 char XpmReadFileToPixmap ();
13321 main ()
13323 return XpmReadFileToPixmap ();
13325 return 0;
13327 _ACEOF
13328 rm -f conftest.$ac_objext conftest$ac_exeext
13329 if { (ac_try="$ac_link"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_link") 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest$ac_exeext &&
13345 $as_test_x conftest$ac_exeext; then
13346 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13347 else
13348 echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13351 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13355 conftest$ac_exeext conftest.$ac_ext
13356 LIBS=$ac_check_lib_save_LIBS
13358 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13359 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13360 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13361 HAVE_XPM=yes
13367 if test "${HAVE_XPM}" = "yes"; then
13368 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13369 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include "X11/xpm.h"
13377 #ifndef XpmReturnAllocPixels
13378 no_return_alloc_pixels
13379 #endif
13381 _ACEOF
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13384 HAVE_XPM=no
13385 else
13386 HAVE_XPM=yes
13388 rm -f conftest*
13391 if test "${HAVE_XPM}" = "yes"; then
13392 { echo "$as_me:$LINENO: result: yes" >&5
13393 echo "${ECHO_T}yes" >&6; }
13394 else
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13401 if test "${HAVE_XPM}" = "yes"; then
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_XPM 1
13405 _ACEOF
13410 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13411 HAVE_JPEG=no
13412 if test "${HAVE_X11}" = "yes"; then
13413 if test "${with_jpeg}" != "no"; then
13414 if test "${ac_cv_header_jerror_h+set}" = set; then
13415 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13416 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_header_jerror_h+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13422 else
13423 # Is the header compilable?
13424 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13425 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13426 cat >conftest.$ac_ext <<_ACEOF
13427 /* confdefs.h. */
13428 _ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 $ac_includes_default
13433 #include <jerror.h>
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13452 ac_header_compiler=yes
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_header_compiler=no
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13462 echo "${ECHO_T}$ac_header_compiler" >&6; }
13464 # Is the header present?
13465 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13466 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 #include <jerror.h>
13474 _ACEOF
13475 if { (ac_try="$ac_cpp conftest.$ac_ext"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } >/dev/null && {
13488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 }; then
13491 ac_header_preproc=yes
13492 else
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13496 ac_header_preproc=no
13499 rm -f conftest.err conftest.$ac_ext
13500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13501 echo "${ECHO_T}$ac_header_preproc" >&6; }
13503 # So? What about this header?
13504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13505 yes:no: )
13506 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13507 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13509 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13510 ac_header_preproc=yes
13512 no:yes:* )
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13514 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13516 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13518 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13520 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13521 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13522 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13523 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13524 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13527 esac
13528 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13529 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13530 if test "${ac_cv_header_jerror_h+set}" = set; then
13531 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533 ac_cv_header_jerror_h=$ac_header_preproc
13535 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13536 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13539 if test $ac_cv_header_jerror_h = yes; then
13540 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13541 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13542 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 else
13545 ac_check_lib_save_LIBS=$LIBS
13546 LIBS="-ljpeg $LIBS"
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13554 /* Override any GCC internal prototype to avoid an error.
13555 Use char because int might match the return type of a GCC
13556 builtin and then its argument prototype would still apply. */
13557 #ifdef __cplusplus
13558 extern "C"
13559 #endif
13560 char jpeg_destroy_compress ();
13562 main ()
13564 return jpeg_destroy_compress ();
13566 return 0;
13568 _ACEOF
13569 rm -f conftest.$ac_objext conftest$ac_exeext
13570 if { (ac_try="$ac_link"
13571 case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574 esac
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_link") 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest$ac_exeext &&
13586 $as_test_x conftest$ac_exeext; then
13587 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13588 else
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13596 conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13599 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13600 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13601 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13602 HAVE_JPEG=yes
13611 if test "${HAVE_JPEG}" = "yes"; then
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_JPEG 1
13614 _ACEOF
13616 cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h. */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h. */
13622 #include <jpeglib.h>
13623 version=JPEG_LIB_VERSION
13625 _ACEOF
13626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13627 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_JPEG 1
13630 _ACEOF
13632 else
13633 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13634 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13635 HAVE_JPEG=no
13637 rm -f conftest*
13642 ### Use -lpng if available, unless `--with-png=no'.
13643 HAVE_PNG=no
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_png}" != "no"; then
13646 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13647 # in /usr/include/libpng.
13650 for ac_header in png.h libpng/png.h
13652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_res=`eval echo '${'$as_ac_Header'}'`
13660 { echo "$as_me:$LINENO: result: $ac_res" >&5
13661 echo "${ECHO_T}$ac_res" >&6; }
13662 else
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <$ac_header>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ac_header_compiler=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <$ac_header>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 }; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13767 esac
13768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 eval "$as_ac_Header=\$ac_header_preproc"
13775 ac_res=`eval echo '${'$as_ac_Header'}'`
13776 { echo "$as_me:$LINENO: result: $ac_res" >&5
13777 echo "${ECHO_T}$ac_res" >&6; }
13780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13781 cat >>confdefs.h <<_ACEOF
13782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13783 _ACEOF
13787 done
13789 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13790 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13791 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13792 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795 ac_check_lib_save_LIBS=$LIBS
13796 LIBS="-lpng -lz -lm $LIBS"
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13804 /* Override any GCC internal prototype to avoid an error.
13805 Use char because int might match the return type of a GCC
13806 builtin and then its argument prototype would still apply. */
13807 #ifdef __cplusplus
13808 extern "C"
13809 #endif
13810 char png_get_channels ();
13812 main ()
13814 return png_get_channels ();
13816 return 0;
13818 _ACEOF
13819 rm -f conftest.$ac_objext conftest$ac_exeext
13820 if { (ac_try="$ac_link"
13821 case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_link") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } && {
13833 test -z "$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 } && test -s conftest$ac_exeext &&
13836 $as_test_x conftest$ac_exeext; then
13837 ac_cv_lib_png_png_get_channels=yes
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13842 ac_cv_lib_png_png_get_channels=no
13845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LIBS=$ac_check_lib_save_LIBS
13849 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13850 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13851 if test $ac_cv_lib_png_png_get_channels = yes; then
13852 HAVE_PNG=yes
13858 if test "${HAVE_PNG}" = "yes"; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_PNG 1
13862 _ACEOF
13867 ### Use -ltiff if available, unless `--with-tiff=no'.
13868 HAVE_TIFF=no
13869 if test "${HAVE_X11}" = "yes"; then
13870 if test "${with_tiff}" != "no"; then
13871 if test "${ac_cv_header_tiffio_h+set}" = set; then
13872 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13873 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13874 if test "${ac_cv_header_tiffio_h+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13878 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13879 else
13880 # Is the header compilable?
13881 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13882 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h. */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13889 $ac_includes_default
13890 #include <tiffio.h>
13891 _ACEOF
13892 rm -f conftest.$ac_objext
13893 if { (ac_try="$ac_compile"
13894 case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897 esac
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_compile") 2>conftest.er1
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest.$ac_objext; then
13909 ac_header_compiler=yes
13910 else
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13914 ac_header_compiler=no
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6; }
13921 # Is the header present?
13922 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13923 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <tiffio.h>
13931 _ACEOF
13932 if { (ac_try="$ac_cpp conftest.$ac_ext"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_preproc=no
13956 rm -f conftest.err conftest.$ac_ext
13957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 echo "${ECHO_T}$ac_header_preproc" >&6; }
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13966 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13969 no:yes:* )
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13971 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13973 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13975 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13977 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13979 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13981 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13984 esac
13985 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13986 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13987 if test "${ac_cv_header_tiffio_h+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 ac_cv_header_tiffio_h=$ac_header_preproc
13992 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13993 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13996 if test $ac_cv_header_tiffio_h = yes; then
13997 tifflibs="-lz -lm"
13998 # At least one tiff package requires the jpeg library.
13999 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14000 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14001 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14002 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-ltiff $tifflibs $LIBS"
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char TIFFGetVersion ();
14022 main ()
14024 return TIFFGetVersion ();
14026 return 0;
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14037 ac_status=$?
14038 grep -v '^ *+' conftest.er1 >conftest.err
14039 rm -f conftest.er1
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest$ac_exeext &&
14046 $as_test_x conftest$ac_exeext; then
14047 ac_cv_lib_tiff_TIFFGetVersion=yes
14048 else
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ac_cv_lib_tiff_TIFFGetVersion=no
14055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14060 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14061 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14062 HAVE_TIFF=yes
14070 if test "${HAVE_TIFF}" = "yes"; then
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_TIFF 1
14074 _ACEOF
14079 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14080 HAVE_GIF=no
14081 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14082 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14083 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14084 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14085 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14089 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14090 else
14091 # Is the header compilable?
14092 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14093 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h. */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14101 #include <gif_lib.h>
14102 _ACEOF
14103 rm -f conftest.$ac_objext
14104 if { (ac_try="$ac_compile"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_compile") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest.$ac_objext; then
14120 ac_header_compiler=yes
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_header_compiler=no
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14130 echo "${ECHO_T}$ac_header_compiler" >&6; }
14132 # Is the header present?
14133 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14134 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 #include <gif_lib.h>
14142 _ACEOF
14143 if { (ac_try="$ac_cpp conftest.$ac_ext"
14144 case "(($ac_try" in
14145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14146 *) ac_try_echo=$ac_try;;
14147 esac
14148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } >/dev/null && {
14156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 }; then
14159 ac_header_preproc=yes
14160 else
14161 echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14164 ac_header_preproc=no
14167 rm -f conftest.err conftest.$ac_ext
14168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14169 echo "${ECHO_T}$ac_header_preproc" >&6; }
14171 # So? What about this header?
14172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14173 yes:no: )
14174 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14175 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14177 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14178 ac_header_preproc=yes
14180 no:yes:* )
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14182 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14183 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14184 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14185 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14186 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14188 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14192 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14195 esac
14196 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14197 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14198 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201 ac_cv_header_gif_lib_h=$ac_header_preproc
14203 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14204 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14207 if test $ac_cv_header_gif_lib_h = yes; then
14208 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14209 # Earlier versions can crash Emacs.
14210 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14211 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-lgif $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char EGifPutExtensionLast ();
14232 main ()
14234 return EGifPutExtensionLast ();
14236 return 0;
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_gif_EGifPutExtensionLast=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_cv_lib_gif_EGifPutExtensionLast=no
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14270 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14271 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14272 HAVE_GIF=yes
14273 else
14274 try_libungif=yes
14281 if test "$HAVE_GIF" = yes; then
14282 ac_gif_lib_name="-lgif"
14285 # If gif_lib.h but no libgif, try libungif.
14286 if test x"$try_libungif" = xyes; then
14287 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14288 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14289 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lungif $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h. */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char EGifPutExtensionLast ();
14309 main ()
14311 return EGifPutExtensionLast ();
14313 return 0;
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14321 esac
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_link") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest$ac_exeext &&
14333 $as_test_x conftest$ac_exeext; then
14334 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14335 else
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_lib_ungif_EGifPutExtensionLast=no
14342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14343 conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14346 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14347 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14348 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14349 HAVE_GIF=yes
14353 if test "$HAVE_GIF" = yes; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define LIBGIF -lungif
14357 _ACEOF
14359 ac_gif_lib_name="-lungif"
14363 if test "${HAVE_GIF}" = "yes"; then
14365 cat >>confdefs.h <<\_ACEOF
14366 #define HAVE_GIF 1
14367 _ACEOF
14372 if test "${HAVE_X11}" = "yes"; then
14373 MISSING=""
14374 WITH_NO=""
14375 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14376 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14377 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14378 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14379 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14380 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14381 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14382 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14383 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14384 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14386 if test "X${MISSING}" != X; then
14387 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14388 $MISSING
14389 Maybe some development libraries/packages are missing?
14390 If you don't want to link with them give
14391 $WITH_NO
14392 as options to configure" >&5
14393 echo "$as_me: error: The following required libraries were not found:
14394 $MISSING
14395 Maybe some development libraries/packages are missing?
14396 If you don't want to link with them give
14397 $WITH_NO
14398 as options to configure" >&2;}
14399 { (exit 1); exit 1; }; }
14403 ### Use -lgpm if available, unless `--with-gpm=no'.
14404 HAVE_GPM=no
14405 if test "${with_gpm}" != "no"; then
14406 if test "${ac_cv_header_gpm_h+set}" = set; then
14407 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14408 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14409 if test "${ac_cv_header_gpm_h+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14412 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14413 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14414 else
14415 # Is the header compilable?
14416 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14417 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 $ac_includes_default
14425 #include <gpm.h>
14426 _ACEOF
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest.$ac_objext; then
14444 ac_header_compiler=yes
14445 else
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_header_compiler=no
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14454 echo "${ECHO_T}$ac_header_compiler" >&6; }
14456 # Is the header present?
14457 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14458 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14459 cat >conftest.$ac_ext <<_ACEOF
14460 /* confdefs.h. */
14461 _ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #include <gpm.h>
14466 _ACEOF
14467 if { (ac_try="$ac_cpp conftest.$ac_ext"
14468 case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14471 esac
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 ac_status=$?
14475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } >/dev/null && {
14480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 }; then
14483 ac_header_preproc=yes
14484 else
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 ac_header_preproc=no
14491 rm -f conftest.err conftest.$ac_ext
14492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14493 echo "${ECHO_T}$ac_header_preproc" >&6; }
14495 # So? What about this header?
14496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497 yes:no: )
14498 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14499 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14501 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14502 ac_header_preproc=yes
14504 no:yes:* )
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14506 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14508 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14510 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14512 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14514 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14516 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14519 esac
14520 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14521 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14522 if test "${ac_cv_header_gpm_h+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 else
14525 ac_cv_header_gpm_h=$ac_header_preproc
14527 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14528 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14531 if test $ac_cv_header_gpm_h = yes; then
14532 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14533 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14534 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 else
14537 ac_check_lib_save_LIBS=$LIBS
14538 LIBS="-lgpm $LIBS"
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h. */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 char Gpm_Open ();
14554 main ()
14556 return Gpm_Open ();
14558 return 0;
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_link") 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } && {
14575 test -z "$ac_c_werror_flag" ||
14576 test ! -s conftest.err
14577 } && test -s conftest$ac_exeext &&
14578 $as_test_x conftest$ac_exeext; then
14579 ac_cv_lib_gpm_Gpm_Open=yes
14580 else
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_cv_lib_gpm_Gpm_Open=no
14587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14588 conftest$ac_exeext conftest.$ac_ext
14589 LIBS=$ac_check_lib_save_LIBS
14591 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14592 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14593 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14594 HAVE_GPM=yes
14602 if test "${HAVE_GPM}" = "yes"; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define HAVE_GPM 1
14606 _ACEOF
14610 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14611 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14612 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14613 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14617 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14618 else
14619 # Is the header compilable?
14620 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14621 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 #include <malloc/malloc.h>
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14636 esac
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_header_compiler=no
14656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658 echo "${ECHO_T}$ac_header_compiler" >&6; }
14660 # Is the header present?
14661 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14662 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669 #include <malloc/malloc.h>
14670 _ACEOF
14671 if { (ac_try="$ac_cpp conftest.$ac_ext"
14672 case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } >/dev/null && {
14684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14685 test ! -s conftest.err
14686 }; then
14687 ac_header_preproc=yes
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_header_preproc=no
14695 rm -f conftest.err conftest.$ac_ext
14696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6; }
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 yes:no: )
14702 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14708 no:yes:* )
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14723 esac
14724 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14725 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14726 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14735 if test $ac_cv_header_malloc_malloc_h = yes; then
14737 cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_MALLOC_MALLOC_H 1
14739 _ACEOF
14745 ### Use Mac OS X Carbon API to implement GUI.
14746 if test "${HAVE_CARBON}" = "yes"; then
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_CARBON 1
14750 _ACEOF
14752 ## Specify the install directory
14753 carbon_appdir=
14754 if test "${carbon_appdir_x}" != ""; then
14755 case ${carbon_appdir_x} in
14756 y | ye | yes) carbon_appdir=/Applications ;;
14757 * ) carbon_appdir=${carbon_appdir_x} ;;
14758 esac
14760 # We also have mouse menus.
14761 HAVE_MENUS=yes
14764 ### Use session management (-lSM -lICE) if available
14765 HAVE_X_SM=no
14766 if test "${HAVE_X11}" = "yes"; then
14767 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14768 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14769 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14774 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14775 else
14776 # Is the header compilable?
14777 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14778 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785 $ac_includes_default
14786 #include <X11/SM/SMlib.h>
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (ac_try="$ac_compile"
14790 case "(($ac_try" in
14791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14792 *) ac_try_echo=$ac_try;;
14793 esac
14794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14795 (eval "$ac_compile") 2>conftest.er1
14796 ac_status=$?
14797 grep -v '^ *+' conftest.er1 >conftest.err
14798 rm -f conftest.er1
14799 cat conftest.err >&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); } && {
14802 test -z "$ac_c_werror_flag" ||
14803 test ! -s conftest.err
14804 } && test -s conftest.$ac_objext; then
14805 ac_header_compiler=yes
14806 else
14807 echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14810 ac_header_compiler=no
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14815 echo "${ECHO_T}$ac_header_compiler" >&6; }
14817 # Is the header present?
14818 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14819 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h. */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <X11/SM/SMlib.h>
14827 _ACEOF
14828 if { (ac_try="$ac_cpp conftest.$ac_ext"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14835 ac_status=$?
14836 grep -v '^ *+' conftest.er1 >conftest.err
14837 rm -f conftest.er1
14838 cat conftest.err >&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } >/dev/null && {
14841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14842 test ! -s conftest.err
14843 }; then
14844 ac_header_preproc=yes
14845 else
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_header_preproc=no
14852 rm -f conftest.err conftest.$ac_ext
14853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14854 echo "${ECHO_T}$ac_header_preproc" >&6; }
14856 # So? What about this header?
14857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14858 yes:no: )
14859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14860 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14862 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14863 ac_header_preproc=yes
14865 no:yes:* )
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14869 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14871 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14873 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14875 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14877 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14880 esac
14881 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14882 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14883 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 else
14886 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14888 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14889 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14892 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14893 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14894 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14895 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 ac_check_lib_save_LIBS=$LIBS
14899 LIBS="-lSM -lICE $LIBS"
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply. */
14910 #ifdef __cplusplus
14911 extern "C"
14912 #endif
14913 char SmcOpenConnection ();
14915 main ()
14917 return SmcOpenConnection ();
14919 return 0;
14921 _ACEOF
14922 rm -f conftest.$ac_objext conftest$ac_exeext
14923 if { (ac_try="$ac_link"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_link") 2>conftest.er1
14930 ac_status=$?
14931 grep -v '^ *+' conftest.er1 >conftest.err
14932 rm -f conftest.er1
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest$ac_exeext &&
14939 $as_test_x conftest$ac_exeext; then
14940 ac_cv_lib_SM_SmcOpenConnection=yes
14941 else
14942 echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_cv_lib_SM_SmcOpenConnection=no
14948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14953 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14954 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14955 HAVE_X_SM=yes
14962 if test "${HAVE_X_SM}" = "yes"; then
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_X_SM 1
14966 _ACEOF
14968 case "$LIBS" in
14969 *-lSM*) ;;
14970 *) LIBS="-lSM -lICE $LIBS" ;;
14971 esac
14975 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14976 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14977 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14978 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h. */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <netdb.h>
14989 main ()
14991 return h_errno;
14993 return 0;
14995 _ACEOF
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (ac_try="$ac_link"
14998 case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_link") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
15012 } && test -s conftest$ac_exeext &&
15013 $as_test_x conftest$ac_exeext; then
15014 emacs_cv_netdb_declares_h_errno=yes
15015 else
15016 echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15019 emacs_cv_netdb_declares_h_errno=no
15022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15023 conftest$ac_exeext conftest.$ac_ext
15025 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15026 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15027 if test $emacs_cv_netdb_declares_h_errno = yes; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_H_ERRNO 1
15031 _ACEOF
15035 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15036 # for constant arguments. Useless!
15037 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15038 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15039 if test "${ac_cv_working_alloca_h+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <alloca.h>
15050 main ()
15052 char *p = (char *) alloca (2 * sizeof (int));
15053 if (p) return 0;
15055 return 0;
15057 _ACEOF
15058 rm -f conftest.$ac_objext conftest$ac_exeext
15059 if { (ac_try="$ac_link"
15060 case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063 esac
15064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_link") 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } && {
15072 test -z "$ac_c_werror_flag" ||
15073 test ! -s conftest.err
15074 } && test -s conftest$ac_exeext &&
15075 $as_test_x conftest$ac_exeext; then
15076 ac_cv_working_alloca_h=yes
15077 else
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_cv_working_alloca_h=no
15084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15085 conftest$ac_exeext conftest.$ac_ext
15087 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15088 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15089 if test $ac_cv_working_alloca_h = yes; then
15091 cat >>confdefs.h <<\_ACEOF
15092 #define HAVE_ALLOCA_H 1
15093 _ACEOF
15097 { echo "$as_me:$LINENO: checking for alloca" >&5
15098 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15099 if test "${ac_cv_func_alloca_works+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102 cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h. */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15108 #ifdef __GNUC__
15109 # define alloca __builtin_alloca
15110 #else
15111 # ifdef _MSC_VER
15112 # include <malloc.h>
15113 # define alloca _alloca
15114 # else
15115 # ifdef HAVE_ALLOCA_H
15116 # include <alloca.h>
15117 # else
15118 # ifdef _AIX
15119 #pragma alloca
15120 # else
15121 # ifndef alloca /* predefined by HP cc +Olibcalls */
15122 char *alloca ();
15123 # endif
15124 # endif
15125 # endif
15126 # endif
15127 #endif
15130 main ()
15132 char *p = (char *) alloca (1);
15133 if (p) return 0;
15135 return 0;
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15156 ac_cv_func_alloca_works=yes
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_func_alloca_works=no
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15168 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15170 if test $ac_cv_func_alloca_works = yes; then
15172 cat >>confdefs.h <<\_ACEOF
15173 #define HAVE_ALLOCA 1
15174 _ACEOF
15176 else
15177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15178 # that cause trouble. Some versions do not even contain alloca or
15179 # contain a buggy version. If you still want to use their alloca,
15180 # use ar to extract alloca.o from them instead of compiling alloca.c.
15182 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15184 cat >>confdefs.h <<\_ACEOF
15185 #define C_ALLOCA 1
15186 _ACEOF
15189 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15190 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15191 if test "${ac_cv_os_cray+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194 cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h. */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #if defined CRAY && ! defined CRAY2
15201 webecray
15202 #else
15203 wenotbecray
15204 #endif
15206 _ACEOF
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 $EGREP "webecray" >/dev/null 2>&1; then
15209 ac_cv_os_cray=yes
15210 else
15211 ac_cv_os_cray=no
15213 rm -f conftest*
15216 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15217 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15218 if test $ac_cv_os_cray = yes; then
15219 for ac_func in _getb67 GETB67 getb67; do
15220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 cat >conftest.$ac_ext <<_ACEOF
15227 /* confdefs.h. */
15228 _ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15234 #define $ac_func innocuous_$ac_func
15236 /* System header to define __stub macros and hopefully few prototypes,
15237 which can conflict with char $ac_func (); below.
15238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15239 <limits.h> exists even on freestanding compilers. */
15241 #ifdef __STDC__
15242 # include <limits.h>
15243 #else
15244 # include <assert.h>
15245 #endif
15247 #undef $ac_func
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15252 #ifdef __cplusplus
15253 extern "C"
15254 #endif
15255 char $ac_func ();
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined __stub_$ac_func || defined __stub___$ac_func
15260 choke me
15261 #endif
15264 main ()
15266 return $ac_func ();
15268 return 0;
15270 _ACEOF
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (ac_try="$ac_link"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276 esac
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15289 eval "$as_ac_var=yes"
15290 else
15291 echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 eval "$as_ac_var=no"
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15300 ac_res=`eval echo '${'$as_ac_var'}'`
15301 { echo "$as_me:$LINENO: result: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define CRAY_STACKSEG_END $ac_func
15307 _ACEOF
15309 break
15312 done
15315 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15316 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15317 if test "${ac_cv_c_stack_direction+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320 if test "$cross_compiling" = yes; then
15321 ac_cv_c_stack_direction=0
15322 else
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h. */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15331 find_stack_direction ()
15333 static char *addr = 0;
15334 auto char dummy;
15335 if (addr == 0)
15337 addr = &dummy;
15338 return find_stack_direction ();
15340 else
15341 return (&dummy > addr) ? 1 : -1;
15345 main ()
15347 return find_stack_direction () < 0;
15349 _ACEOF
15350 rm -f conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 ac_cv_c_stack_direction=1
15371 else
15372 echo "$as_me: program exited with status $ac_status" >&5
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ( exit $ac_status )
15377 ac_cv_c_stack_direction=-1
15379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15384 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15385 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15387 cat >>confdefs.h <<_ACEOF
15388 #define STACK_DIRECTION $ac_cv_c_stack_direction
15389 _ACEOF
15395 if test x"$ac_cv_func_alloca_works" != xyes; then
15396 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15397 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15398 { (exit 1); exit 1; }; }
15401 # fmod, logb, and frexp are found in -lm on most systems.
15402 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15404 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15405 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15406 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 else
15409 ac_check_lib_save_LIBS=$LIBS
15410 LIBS="-lm $LIBS"
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15418 /* Override any GCC internal prototype to avoid an error.
15419 Use char because int might match the return type of a GCC
15420 builtin and then its argument prototype would still apply. */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 char sqrt ();
15426 main ()
15428 return sqrt ();
15430 return 0;
15432 _ACEOF
15433 rm -f conftest.$ac_objext conftest$ac_exeext
15434 if { (ac_try="$ac_link"
15435 case "(($ac_try" in
15436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437 *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440 (eval "$ac_link") 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } && {
15447 test -z "$ac_c_werror_flag" ||
15448 test ! -s conftest.err
15449 } && test -s conftest$ac_exeext &&
15450 $as_test_x conftest$ac_exeext; then
15451 ac_cv_lib_m_sqrt=yes
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_cv_lib_m_sqrt=no
15459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15463 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15464 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15465 if test $ac_cv_lib_m_sqrt = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define HAVE_LIBM 1
15468 _ACEOF
15470 LIBS="-lm $LIBS"
15475 # Check for mail-locking functions in a "mail" library. Probably this should
15476 # have the same check as for liblockfile below.
15478 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15479 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15480 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483 ac_check_lib_save_LIBS=$LIBS
15484 LIBS="-lmail $LIBS"
15485 cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h. */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h. */
15492 /* Override any GCC internal prototype to avoid an error.
15493 Use char because int might match the return type of a GCC
15494 builtin and then its argument prototype would still apply. */
15495 #ifdef __cplusplus
15496 extern "C"
15497 #endif
15498 char maillock ();
15500 main ()
15502 return maillock ();
15504 return 0;
15506 _ACEOF
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (ac_try="$ac_link"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15512 esac
15513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_link") 2>conftest.er1
15515 ac_status=$?
15516 grep -v '^ *+' conftest.er1 >conftest.err
15517 rm -f conftest.er1
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest$ac_exeext &&
15524 $as_test_x conftest$ac_exeext; then
15525 ac_cv_lib_mail_maillock=yes
15526 else
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15530 ac_cv_lib_mail_maillock=no
15533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15534 conftest$ac_exeext conftest.$ac_ext
15535 LIBS=$ac_check_lib_save_LIBS
15537 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15538 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15539 if test $ac_cv_lib_mail_maillock = yes; then
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_LIBMAIL 1
15542 _ACEOF
15544 LIBS="-lmail $LIBS"
15549 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15550 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15551 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554 ac_check_lib_save_LIBS=$LIBS
15555 LIBS="-llockfile $LIBS"
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 char maillock ();
15571 main ()
15573 return maillock ();
15575 return 0;
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_lib_lockfile_maillock=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_cv_lib_lockfile_maillock=no
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15608 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15609 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15610 if test $ac_cv_lib_lockfile_maillock = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_LIBLOCKFILE 1
15613 _ACEOF
15615 LIBS="-llockfile $LIBS"
15619 # If we have the shared liblockfile, assume we must use it for mail
15620 # locking (e.g. Debian). If we couldn't link against liblockfile
15621 # (no liblockfile.a installed), ensure that we don't need to.
15622 if test "$ac_cv_lib_lockfile_maillock" = no; then
15623 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15624 set dummy liblockfile.so; ac_word=$2
15625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15627 if test "${ac_cv_prog_liblockfile+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630 if test -n "$liblockfile"; then
15631 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15632 else
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15635 for as_dir in $as_dummy
15637 IFS=$as_save_IFS
15638 test -z "$as_dir" && as_dir=.
15639 for ac_exec_ext in '' $ac_executable_extensions; do
15640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15641 ac_cv_prog_liblockfile="yes"
15642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15643 break 2
15645 done
15646 done
15647 IFS=$as_save_IFS
15649 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15652 liblockfile=$ac_cv_prog_liblockfile
15653 if test -n "$liblockfile"; then
15654 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15655 echo "${ECHO_T}$liblockfile" >&6; }
15656 else
15657 { echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6; }
15662 if test $ac_cv_prog_liblockfile = yes; then
15663 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15664 This probably means that movemail could lose mail.
15665 There may be a \`development' package to install containing liblockfile." >&5
15666 echo "$as_me: error: Shared liblockfile found but can't link against it.
15667 This probably means that movemail could lose mail.
15668 There may be a \`development' package to install containing liblockfile." >&2;}
15669 { (exit 1); exit 1; }; }
15670 else :
15674 for ac_func in touchlock
15676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15680 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682 cat >conftest.$ac_ext <<_ACEOF
15683 /* confdefs.h. */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15690 #define $ac_func innocuous_$ac_func
15692 /* System header to define __stub macros and hopefully few prototypes,
15693 which can conflict with char $ac_func (); below.
15694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15695 <limits.h> exists even on freestanding compilers. */
15697 #ifdef __STDC__
15698 # include <limits.h>
15699 #else
15700 # include <assert.h>
15701 #endif
15703 #undef $ac_func
15705 /* Override any GCC internal prototype to avoid an error.
15706 Use char because int might match the return type of a GCC
15707 builtin and then its argument prototype would still apply. */
15708 #ifdef __cplusplus
15709 extern "C"
15710 #endif
15711 char $ac_func ();
15712 /* The GNU C library defines this for functions which it implements
15713 to always fail with ENOSYS. Some functions are actually named
15714 something starting with __ and the normal name is an alias. */
15715 #if defined __stub_$ac_func || defined __stub___$ac_func
15716 choke me
15717 #endif
15720 main ()
15722 return $ac_func ();
15724 return 0;
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (ac_try="$ac_link"
15729 case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732 esac
15733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_link") 2>conftest.er1
15735 ac_status=$?
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } && {
15741 test -z "$ac_c_werror_flag" ||
15742 test ! -s conftest.err
15743 } && test -s conftest$ac_exeext &&
15744 $as_test_x conftest$ac_exeext; then
15745 eval "$as_ac_var=yes"
15746 else
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 eval "$as_ac_var=no"
15753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15754 conftest$ac_exeext conftest.$ac_ext
15756 ac_res=`eval echo '${'$as_ac_var'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759 if test `eval echo '${'$as_ac_var'}'` = yes; then
15760 cat >>confdefs.h <<_ACEOF
15761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15762 _ACEOF
15765 done
15768 for ac_header in maillock.h
15770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780 else
15781 # Is the header compilable?
15782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h. */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 $ac_includes_default
15791 #include <$ac_header>
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800 (eval "$ac_compile") 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } && {
15807 test -z "$ac_c_werror_flag" ||
15808 test ! -s conftest.err
15809 } && test -s conftest.$ac_objext; then
15810 ac_header_compiler=yes
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_compiler=no
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6; }
15822 # Is the header present?
15823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h. */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <$ac_header>
15832 _ACEOF
15833 if { (ac_try="$ac_cpp conftest.$ac_ext"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } >/dev/null && {
15846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 }; then
15849 ac_header_preproc=yes
15850 else
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 ac_header_preproc=no
15857 rm -f conftest.err conftest.$ac_ext
15858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15859 echo "${ECHO_T}$ac_header_preproc" >&6; }
15861 # So? What about this header?
15862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863 yes:no: )
15864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15868 ac_header_preproc=yes
15870 no:yes:* )
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15885 esac
15886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 else
15891 eval "$as_ac_Header=\$ac_header_preproc"
15893 ac_res=`eval echo '${'$as_ac_Header'}'`
15894 { echo "$as_me:$LINENO: result: $ac_res" >&5
15895 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15901 _ACEOF
15905 done
15976 for ac_func in gethostname getdomainname dup2 \
15977 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15978 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15979 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15980 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15981 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15982 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15983 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15984 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h. */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h. */
15998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16000 #define $ac_func innocuous_$ac_func
16002 /* System header to define __stub macros and hopefully few prototypes,
16003 which can conflict with char $ac_func (); below.
16004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16005 <limits.h> exists even on freestanding compilers. */
16007 #ifdef __STDC__
16008 # include <limits.h>
16009 #else
16010 # include <assert.h>
16011 #endif
16013 #undef $ac_func
16015 /* Override any GCC internal prototype to avoid an error.
16016 Use char because int might match the return type of a GCC
16017 builtin and then its argument prototype would still apply. */
16018 #ifdef __cplusplus
16019 extern "C"
16020 #endif
16021 char $ac_func ();
16022 /* The GNU C library defines this for functions which it implements
16023 to always fail with ENOSYS. Some functions are actually named
16024 something starting with __ and the normal name is an alias. */
16025 #if defined __stub_$ac_func || defined __stub___$ac_func
16026 choke me
16027 #endif
16030 main ()
16032 return $ac_func ();
16034 return 0;
16036 _ACEOF
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (ac_try="$ac_link"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_link") 2>conftest.er1
16045 ac_status=$?
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } && {
16051 test -z "$ac_c_werror_flag" ||
16052 test ! -s conftest.err
16053 } && test -s conftest$ac_exeext &&
16054 $as_test_x conftest$ac_exeext; then
16055 eval "$as_ac_var=yes"
16056 else
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 eval "$as_ac_var=no"
16063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16064 conftest$ac_exeext conftest.$ac_ext
16066 ac_res=`eval echo '${'$as_ac_var'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16069 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16072 _ACEOF
16075 done
16079 for ac_header in sys/un.h
16081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 ac_res=`eval echo '${'$as_ac_Header'}'`
16089 { echo "$as_me:$LINENO: result: $ac_res" >&5
16090 echo "${ECHO_T}$ac_res" >&6; }
16091 else
16092 # Is the header compilable?
16093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h. */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16101 $ac_includes_default
16102 #include <$ac_header>
16103 _ACEOF
16104 rm -f conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109 esac
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_compile") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest.$ac_objext; then
16121 ac_header_compiler=yes
16122 else
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_header_compiler=no
16129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16131 echo "${ECHO_T}$ac_header_compiler" >&6; }
16133 # Is the header present?
16134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h. */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h. */
16142 #include <$ac_header>
16143 _ACEOF
16144 if { (ac_try="$ac_cpp conftest.$ac_ext"
16145 case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } >/dev/null && {
16157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16158 test ! -s conftest.err
16159 }; then
16160 ac_header_preproc=yes
16161 else
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_header_preproc=no
16168 rm -f conftest.err conftest.$ac_ext
16169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16170 echo "${ECHO_T}$ac_header_preproc" >&6; }
16172 # So? What about this header?
16173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16174 yes:no: )
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16179 ac_header_preproc=yes
16181 no:yes:* )
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16196 esac
16197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202 eval "$as_ac_Header=\$ac_header_preproc"
16204 ac_res=`eval echo '${'$as_ac_Header'}'`
16205 { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16210 cat >>confdefs.h <<_ACEOF
16211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16212 _ACEOF
16216 done
16223 for ac_header in $ac_header_list
16225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 ac_res=`eval echo '${'$as_ac_Header'}'`
16233 { echo "$as_me:$LINENO: result: $ac_res" >&5
16234 echo "${ECHO_T}$ac_res" >&6; }
16235 else
16236 # Is the header compilable?
16237 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16239 cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h. */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 #include <$ac_header>
16247 _ACEOF
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16253 esac
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_compile") 2>conftest.er1
16256 ac_status=$?
16257 grep -v '^ *+' conftest.er1 >conftest.err
16258 rm -f conftest.er1
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest.$ac_objext; then
16265 ac_header_compiler=yes
16266 else
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_header_compiler=no
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16275 echo "${ECHO_T}$ac_header_compiler" >&6; }
16277 # Is the header present?
16278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <$ac_header>
16287 _ACEOF
16288 if { (ac_try="$ac_cpp conftest.$ac_ext"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } >/dev/null && {
16301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 }; then
16304 ac_header_preproc=yes
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_header_preproc=no
16312 rm -f conftest.err conftest.$ac_ext
16313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16314 echo "${ECHO_T}$ac_header_preproc" >&6; }
16316 # So? What about this header?
16317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16318 yes:no: )
16319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16322 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16323 ac_header_preproc=yes
16325 no:yes:* )
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16331 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16333 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16337 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16340 esac
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 else
16346 eval "$as_ac_Header=\$ac_header_preproc"
16348 ac_res=`eval echo '${'$as_ac_Header'}'`
16349 { echo "$as_me:$LINENO: result: $ac_res" >&5
16350 echo "${ECHO_T}$ac_res" >&6; }
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 _ACEOF
16360 done
16370 for ac_func in $ac_func_list
16372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378 cat >conftest.$ac_ext <<_ACEOF
16379 /* confdefs.h. */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h. */
16384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16386 #define $ac_func innocuous_$ac_func
16388 /* System header to define __stub macros and hopefully few prototypes,
16389 which can conflict with char $ac_func (); below.
16390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16391 <limits.h> exists even on freestanding compilers. */
16393 #ifdef __STDC__
16394 # include <limits.h>
16395 #else
16396 # include <assert.h>
16397 #endif
16399 #undef $ac_func
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char $ac_func ();
16408 /* The GNU C library defines this for functions which it implements
16409 to always fail with ENOSYS. Some functions are actually named
16410 something starting with __ and the normal name is an alias. */
16411 #if defined __stub_$ac_func || defined __stub___$ac_func
16412 choke me
16413 #endif
16416 main ()
16418 return $ac_func ();
16420 return 0;
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430 (eval "$ac_link") 2>conftest.er1
16431 ac_status=$?
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } && {
16437 test -z "$ac_c_werror_flag" ||
16438 test ! -s conftest.err
16439 } && test -s conftest$ac_exeext &&
16440 $as_test_x conftest$ac_exeext; then
16441 eval "$as_ac_var=yes"
16442 else
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 eval "$as_ac_var=no"
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450 conftest$ac_exeext conftest.$ac_ext
16452 ac_res=`eval echo '${'$as_ac_var'}'`
16453 { echo "$as_me:$LINENO: result: $ac_res" >&5
16454 echo "${ECHO_T}$ac_res" >&6; }
16455 if test `eval echo '${'$as_ac_var'}'` = yes; then
16456 cat >>confdefs.h <<_ACEOF
16457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16461 done
16479 { echo "$as_me:$LINENO: checking for working mktime" >&5
16480 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16481 if test "${ac_cv_func_working_mktime+set}" = set; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484 if test "$cross_compiling" = yes; then
16485 ac_cv_func_working_mktime=no
16486 else
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h. */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16493 /* Test program from Paul Eggert and Tony Leneis. */
16494 #ifdef TIME_WITH_SYS_TIME
16495 # include <sys/time.h>
16496 # include <time.h>
16497 #else
16498 # ifdef HAVE_SYS_TIME_H
16499 # include <sys/time.h>
16500 # else
16501 # include <time.h>
16502 # endif
16503 #endif
16505 #include <limits.h>
16506 #include <stdlib.h>
16508 #ifdef HAVE_UNISTD_H
16509 # include <unistd.h>
16510 #endif
16512 #ifndef HAVE_ALARM
16513 # define alarm(X) /* empty */
16514 #endif
16516 /* Work around redefinition to rpl_putenv by other config tests. */
16517 #undef putenv
16519 static time_t time_t_max;
16520 static time_t time_t_min;
16522 /* Values we'll use to set the TZ environment variable. */
16523 static char *tz_strings[] = {
16524 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16525 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16527 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16529 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16530 Based on a problem report from Andreas Jaeger. */
16531 static int
16532 spring_forward_gap ()
16534 /* glibc (up to about 1998-10-07) failed this test. */
16535 struct tm tm;
16537 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16538 instead of "TZ=America/Vancouver" in order to detect the bug even
16539 on systems that don't support the Olson extension, or don't have the
16540 full zoneinfo tables installed. */
16541 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16543 tm.tm_year = 98;
16544 tm.tm_mon = 3;
16545 tm.tm_mday = 5;
16546 tm.tm_hour = 2;
16547 tm.tm_min = 0;
16548 tm.tm_sec = 0;
16549 tm.tm_isdst = -1;
16550 return mktime (&tm) != (time_t) -1;
16553 static int
16554 mktime_test1 (now)
16555 time_t now;
16557 struct tm *lt;
16558 return ! (lt = localtime (&now)) || mktime (lt) == now;
16561 static int
16562 mktime_test (now)
16563 time_t now;
16565 return (mktime_test1 (now)
16566 && mktime_test1 ((time_t) (time_t_max - now))
16567 && mktime_test1 ((time_t) (time_t_min + now)));
16570 static int
16571 irix_6_4_bug ()
16573 /* Based on code from Ariel Faigon. */
16574 struct tm tm;
16575 tm.tm_year = 96;
16576 tm.tm_mon = 3;
16577 tm.tm_mday = 0;
16578 tm.tm_hour = 0;
16579 tm.tm_min = 0;
16580 tm.tm_sec = 0;
16581 tm.tm_isdst = -1;
16582 mktime (&tm);
16583 return tm.tm_mon == 2 && tm.tm_mday == 31;
16586 static int
16587 bigtime_test (j)
16588 int j;
16590 struct tm tm;
16591 time_t now;
16592 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16593 now = mktime (&tm);
16594 if (now != (time_t) -1)
16596 struct tm *lt = localtime (&now);
16597 if (! (lt
16598 && lt->tm_year == tm.tm_year
16599 && lt->tm_mon == tm.tm_mon
16600 && lt->tm_mday == tm.tm_mday
16601 && lt->tm_hour == tm.tm_hour
16602 && lt->tm_min == tm.tm_min
16603 && lt->tm_sec == tm.tm_sec
16604 && lt->tm_yday == tm.tm_yday
16605 && lt->tm_wday == tm.tm_wday
16606 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16607 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16608 return 0;
16610 return 1;
16613 static int
16614 year_2050_test ()
16616 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16617 ignoring leap seconds. */
16618 unsigned long int answer = 2527315200UL;
16620 struct tm tm;
16621 time_t t;
16622 tm.tm_year = 2050 - 1900;
16623 tm.tm_mon = 2 - 1;
16624 tm.tm_mday = 1;
16625 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16626 tm.tm_isdst = -1;
16628 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16629 instead of "TZ=America/Vancouver" in order to detect the bug even
16630 on systems that don't support the Olson extension, or don't have the
16631 full zoneinfo tables installed. */
16632 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16634 t = mktime (&tm);
16636 /* Check that the result is either a failure, or close enough
16637 to the correct answer that we can assume the discrepancy is
16638 due to leap seconds. */
16639 return (t == (time_t) -1
16640 || (0 < t && answer - 120 <= t && t <= answer + 120));
16644 main ()
16646 time_t t, delta;
16647 int i, j;
16649 /* This test makes some buggy mktime implementations loop.
16650 Give up after 60 seconds; a mktime slower than that
16651 isn't worth using anyway. */
16652 alarm (60);
16654 for (;;)
16656 t = (time_t_max << 1) + 1;
16657 if (t <= time_t_max)
16658 break;
16659 time_t_max = t;
16661 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16663 delta = time_t_max / 997; /* a suitable prime number */
16664 for (i = 0; i < N_STRINGS; i++)
16666 if (tz_strings[i])
16667 putenv (tz_strings[i]);
16669 for (t = 0; t <= time_t_max - delta; t += delta)
16670 if (! mktime_test (t))
16671 return 1;
16672 if (! (mktime_test ((time_t) 1)
16673 && mktime_test ((time_t) (60 * 60))
16674 && mktime_test ((time_t) (60 * 60 * 24))))
16675 return 1;
16677 for (j = 1; ; j <<= 1)
16678 if (! bigtime_test (j))
16679 return 1;
16680 else if (INT_MAX / 2 < j)
16681 break;
16682 if (! bigtime_test (INT_MAX))
16683 return 1;
16685 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16687 _ACEOF
16688 rm -f conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693 esac
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16699 { (case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16702 esac
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_try") 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_cv_func_working_mktime=yes
16709 else
16710 echo "$as_me: program exited with status $ac_status" >&5
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 ( exit $ac_status )
16715 ac_cv_func_working_mktime=no
16717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16723 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16724 if test $ac_cv_func_working_mktime = no; then
16725 case " $LIBOBJS " in
16726 *" mktime.$ac_objext "* ) ;;
16727 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16729 esac
16733 if test "$ac_cv_func_working_mktime" = no; then
16735 cat >>confdefs.h <<\_ACEOF
16736 #define BROKEN_MKTIME 1
16737 _ACEOF
16741 ac_have_func=no # yes means we've found a way to get the load average.
16743 # Make sure getloadavg.c is where it belongs, at configure-time.
16744 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16745 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16746 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16747 { (exit 1); exit 1; }; }
16749 ac_save_LIBS=$LIBS
16751 # Check for getloadavg, but be sure not to touch the cache variable.
16752 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16753 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16754 if test "${ac_cv_func_getloadavg+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 else
16757 cat >conftest.$ac_ext <<_ACEOF
16758 /* confdefs.h. */
16759 _ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765 #define getloadavg innocuous_getloadavg
16767 /* System header to define __stub macros and hopefully few prototypes,
16768 which can conflict with char getloadavg (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
16772 #ifdef __STDC__
16773 # include <limits.h>
16774 #else
16775 # include <assert.h>
16776 #endif
16778 #undef getloadavg
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 char getloadavg ();
16787 /* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790 #if defined __stub_getloadavg || defined __stub___getloadavg
16791 choke me
16792 #endif
16795 main ()
16797 return getloadavg ();
16799 return 0;
16801 _ACEOF
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (ac_try="$ac_link"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
16810 ac_status=$?
16811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } && {
16816 test -z "$ac_c_werror_flag" ||
16817 test ! -s conftest.err
16818 } && test -s conftest$ac_exeext &&
16819 $as_test_x conftest$ac_exeext; then
16820 ac_cv_func_getloadavg=yes
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_func_getloadavg=no
16828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16829 conftest$ac_exeext conftest.$ac_ext
16831 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16832 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16833 if test $ac_cv_func_getloadavg = yes; then
16834 exit 0
16835 else
16836 exit 1
16838 ) && ac_have_func=yes
16840 # On HPUX9, an unprivileged user can get load averages through this function.
16842 for ac_func in pstat_getdynamic
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858 #define $ac_func innocuous_$ac_func
16860 /* System header to define __stub macros and hopefully few prototypes,
16861 which can conflict with char $ac_func (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16871 #undef $ac_func
16873 /* Override any GCC internal prototype to avoid an error.
16874 Use char because int might match the return type of a GCC
16875 builtin and then its argument prototype would still apply. */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char $ac_func ();
16880 /* The GNU C library defines this for functions which it implements
16881 to always fail with ENOSYS. Some functions are actually named
16882 something starting with __ and the normal name is an alias. */
16883 #if defined __stub_$ac_func || defined __stub___$ac_func
16884 choke me
16885 #endif
16888 main ()
16890 return $ac_func ();
16892 return 0;
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_link") 2>conftest.er1
16903 ac_status=$?
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } && {
16909 test -z "$ac_c_werror_flag" ||
16910 test ! -s conftest.err
16911 } && test -s conftest$ac_exeext &&
16912 $as_test_x conftest$ac_exeext; then
16913 eval "$as_ac_var=yes"
16914 else
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 eval "$as_ac_var=no"
16921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16922 conftest$ac_exeext conftest.$ac_ext
16924 ac_res=`eval echo '${'$as_ac_var'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928 cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930 _ACEOF
16933 done
16936 # Solaris has libkstat which does not require root.
16938 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16939 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16940 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943 ac_check_lib_save_LIBS=$LIBS
16944 LIBS="-lkstat $LIBS"
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16952 /* Override any GCC internal prototype to avoid an error.
16953 Use char because int might match the return type of a GCC
16954 builtin and then its argument prototype would still apply. */
16955 #ifdef __cplusplus
16956 extern "C"
16957 #endif
16958 char kstat_open ();
16960 main ()
16962 return kstat_open ();
16964 return 0;
16966 _ACEOF
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (ac_try="$ac_link"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16972 esac
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest$ac_exeext &&
16984 $as_test_x conftest$ac_exeext; then
16985 ac_cv_lib_kstat_kstat_open=yes
16986 else
16987 echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_lib_kstat_kstat_open=no
16993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16994 conftest$ac_exeext conftest.$ac_ext
16995 LIBS=$ac_check_lib_save_LIBS
16997 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16998 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16999 if test $ac_cv_lib_kstat_kstat_open = yes; then
17000 cat >>confdefs.h <<_ACEOF
17001 #define HAVE_LIBKSTAT 1
17002 _ACEOF
17004 LIBS="-lkstat $LIBS"
17008 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17010 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17011 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17012 # to get the right answer into the cache.
17013 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17014 if test $ac_have_func = no; then
17015 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17016 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17017 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020 ac_check_lib_save_LIBS=$LIBS
17021 LIBS="-lelf $LIBS"
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032 #ifdef __cplusplus
17033 extern "C"
17034 #endif
17035 char elf_begin ();
17037 main ()
17039 return elf_begin ();
17041 return 0;
17043 _ACEOF
17044 rm -f conftest.$ac_objext conftest$ac_exeext
17045 if { (ac_try="$ac_link"
17046 case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049 esac
17050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_link") 2>conftest.er1
17052 ac_status=$?
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } && {
17058 test -z "$ac_c_werror_flag" ||
17059 test ! -s conftest.err
17060 } && test -s conftest$ac_exeext &&
17061 $as_test_x conftest$ac_exeext; then
17062 ac_cv_lib_elf_elf_begin=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_lib_elf_elf_begin=no
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17074 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17075 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17076 if test $ac_cv_lib_elf_elf_begin = yes; then
17077 LIBS="-lelf $LIBS"
17081 if test $ac_have_func = no; then
17082 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17083 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17084 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086 else
17087 ac_check_lib_save_LIBS=$LIBS
17088 LIBS="-lkvm $LIBS"
17089 cat >conftest.$ac_ext <<_ACEOF
17090 /* confdefs.h. */
17091 _ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17096 /* Override any GCC internal prototype to avoid an error.
17097 Use char because int might match the return type of a GCC
17098 builtin and then its argument prototype would still apply. */
17099 #ifdef __cplusplus
17100 extern "C"
17101 #endif
17102 char kvm_open ();
17104 main ()
17106 return kvm_open ();
17108 return 0;
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest$ac_exeext &&
17128 $as_test_x conftest$ac_exeext; then
17129 ac_cv_lib_kvm_kvm_open=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_cv_lib_kvm_kvm_open=no
17137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17138 conftest$ac_exeext conftest.$ac_ext
17139 LIBS=$ac_check_lib_save_LIBS
17141 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17142 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17143 if test $ac_cv_lib_kvm_kvm_open = yes; then
17144 LIBS="-lkvm $LIBS"
17147 # Check for the 4.4BSD definition of getloadavg.
17148 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17149 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17150 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152 else
17153 ac_check_lib_save_LIBS=$LIBS
17154 LIBS="-lutil $LIBS"
17155 cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h. */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h. */
17162 /* Override any GCC internal prototype to avoid an error.
17163 Use char because int might match the return type of a GCC
17164 builtin and then its argument prototype would still apply. */
17165 #ifdef __cplusplus
17166 extern "C"
17167 #endif
17168 char getloadavg ();
17170 main ()
17172 return getloadavg ();
17174 return 0;
17176 _ACEOF
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (ac_try="$ac_link"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_link") 2>conftest.er1
17185 ac_status=$?
17186 grep -v '^ *+' conftest.er1 >conftest.err
17187 rm -f conftest.er1
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && {
17191 test -z "$ac_c_werror_flag" ||
17192 test ! -s conftest.err
17193 } && test -s conftest$ac_exeext &&
17194 $as_test_x conftest$ac_exeext; then
17195 ac_cv_lib_util_getloadavg=yes
17196 else
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_cv_lib_util_getloadavg=no
17203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17204 conftest$ac_exeext conftest.$ac_ext
17205 LIBS=$ac_check_lib_save_LIBS
17207 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17208 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17209 if test $ac_cv_lib_util_getloadavg = yes; then
17210 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17215 if test $ac_have_func = no; then
17216 # There is a commonly available library for RS/6000 AIX.
17217 # Since it is not a standard part of AIX, it might be installed locally.
17218 ac_getloadavg_LIBS=$LIBS
17219 LIBS="-L/usr/local/lib $LIBS"
17220 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17221 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17222 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225 ac_check_lib_save_LIBS=$LIBS
17226 LIBS="-lgetloadavg $LIBS"
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17234 /* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237 #ifdef __cplusplus
17238 extern "C"
17239 #endif
17240 char getloadavg ();
17242 main ()
17244 return getloadavg ();
17246 return 0;
17248 _ACEOF
17249 rm -f conftest.$ac_objext conftest$ac_exeext
17250 if { (ac_try="$ac_link"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_link") 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest$ac_exeext &&
17266 $as_test_x conftest$ac_exeext; then
17267 ac_cv_lib_getloadavg_getloadavg=yes
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_lib_getloadavg_getloadavg=no
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17277 LIBS=$ac_check_lib_save_LIBS
17279 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17280 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17281 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17282 LIBS="-lgetloadavg $LIBS"
17283 else
17284 LIBS=$ac_getloadavg_LIBS
17289 # Make sure it is really in the library, if we think we found it,
17290 # otherwise set up the replacement function.
17292 for ac_func in getloadavg
17294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300 cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h. */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17308 #define $ac_func innocuous_$ac_func
17310 /* System header to define __stub macros and hopefully few prototypes,
17311 which can conflict with char $ac_func (); below.
17312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17313 <limits.h> exists even on freestanding compilers. */
17315 #ifdef __STDC__
17316 # include <limits.h>
17317 #else
17318 # include <assert.h>
17319 #endif
17321 #undef $ac_func
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17326 #ifdef __cplusplus
17327 extern "C"
17328 #endif
17329 char $ac_func ();
17330 /* The GNU C library defines this for functions which it implements
17331 to always fail with ENOSYS. Some functions are actually named
17332 something starting with __ and the normal name is an alias. */
17333 #if defined __stub_$ac_func || defined __stub___$ac_func
17334 choke me
17335 #endif
17338 main ()
17340 return $ac_func ();
17342 return 0;
17344 _ACEOF
17345 rm -f conftest.$ac_objext conftest$ac_exeext
17346 if { (ac_try="$ac_link"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350 esac
17351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_link") 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } && {
17359 test -z "$ac_c_werror_flag" ||
17360 test ! -s conftest.err
17361 } && test -s conftest$ac_exeext &&
17362 $as_test_x conftest$ac_exeext; then
17363 eval "$as_ac_var=yes"
17364 else
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 eval "$as_ac_var=no"
17371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17372 conftest$ac_exeext conftest.$ac_ext
17374 ac_res=`eval echo '${'$as_ac_var'}'`
17375 { echo "$as_me:$LINENO: result: $ac_res" >&5
17376 echo "${ECHO_T}$ac_res" >&6; }
17377 if test `eval echo '${'$as_ac_var'}'` = yes; then
17378 cat >>confdefs.h <<_ACEOF
17379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17380 _ACEOF
17382 else
17383 case " $LIBOBJS " in
17384 *" getloadavg.$ac_objext "* ) ;;
17385 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17387 esac
17390 cat >>confdefs.h <<\_ACEOF
17391 #define C_GETLOADAVG 1
17392 _ACEOF
17394 # Figure out what our getloadavg.c needs.
17395 ac_have_func=no
17396 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17397 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17398 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17399 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17403 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17404 else
17405 # Is the header compilable?
17406 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17407 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h. */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17415 #include <sys/dg_sys_info.h>
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17425 ac_status=$?
17426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } && {
17431 test -z "$ac_c_werror_flag" ||
17432 test ! -s conftest.err
17433 } && test -s conftest.$ac_objext; then
17434 ac_header_compiler=yes
17435 else
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_header_compiler=no
17442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17444 echo "${ECHO_T}$ac_header_compiler" >&6; }
17446 # Is the header present?
17447 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17448 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 #include <sys/dg_sys_info.h>
17456 _ACEOF
17457 if { (ac_try="$ac_cpp conftest.$ac_ext"
17458 case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461 esac
17462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17464 ac_status=$?
17465 grep -v '^ *+' conftest.er1 >conftest.err
17466 rm -f conftest.er1
17467 cat conftest.err >&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); } >/dev/null && {
17470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17471 test ! -s conftest.err
17472 }; then
17473 ac_header_preproc=yes
17474 else
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_header_preproc=no
17481 rm -f conftest.err conftest.$ac_ext
17482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17483 echo "${ECHO_T}$ac_header_preproc" >&6; }
17485 # So? What about this header?
17486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17487 yes:no: )
17488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17489 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17491 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17492 ac_header_preproc=yes
17494 no:yes:* )
17495 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17496 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17497 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17498 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17500 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17501 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17502 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17504 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17506 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17509 esac
17510 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17511 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17512 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17517 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17518 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17521 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17522 ac_have_func=yes
17524 cat >>confdefs.h <<\_ACEOF
17525 #define DGUX 1
17526 _ACEOF
17529 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17530 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17531 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534 ac_check_lib_save_LIBS=$LIBS
17535 LIBS="-ldgc $LIBS"
17536 cat >conftest.$ac_ext <<_ACEOF
17537 /* confdefs.h. */
17538 _ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char dg_sys_info ();
17551 main ()
17553 return dg_sys_info ();
17555 return 0;
17557 _ACEOF
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (ac_try="$ac_link"
17560 case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17563 esac
17564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_link") 2>conftest.er1
17566 ac_status=$?
17567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } && {
17572 test -z "$ac_c_werror_flag" ||
17573 test ! -s conftest.err
17574 } && test -s conftest$ac_exeext &&
17575 $as_test_x conftest$ac_exeext; then
17576 ac_cv_lib_dgc_dg_sys_info=yes
17577 else
17578 echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17581 ac_cv_lib_dgc_dg_sys_info=no
17584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17588 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17589 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17590 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_LIBDGC 1
17593 _ACEOF
17595 LIBS="-ldgc $LIBS"
17603 if test "${ac_cv_header_locale_h+set}" = set; then
17604 { echo "$as_me:$LINENO: checking for locale.h" >&5
17605 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17606 if test "${ac_cv_header_locale_h+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17610 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17611 else
17612 # Is the header compilable?
17613 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17614 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 $ac_includes_default
17622 #include <locale.h>
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (ac_try="$ac_compile"
17626 case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_compile") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } && {
17638 test -z "$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 } && test -s conftest.$ac_objext; then
17641 ac_header_compiler=yes
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17646 ac_header_compiler=no
17649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17651 echo "${ECHO_T}$ac_header_compiler" >&6; }
17653 # Is the header present?
17654 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17655 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h. */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 #include <locale.h>
17663 _ACEOF
17664 if { (ac_try="$ac_cpp conftest.$ac_ext"
17665 case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } >/dev/null && {
17677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 }; then
17680 ac_header_preproc=yes
17681 else
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_header_preproc=no
17688 rm -f conftest.err conftest.$ac_ext
17689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17690 echo "${ECHO_T}$ac_header_preproc" >&6; }
17692 # So? What about this header?
17693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17694 yes:no: )
17695 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17696 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17697 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17698 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17699 ac_header_preproc=yes
17701 no:yes:* )
17702 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17703 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17704 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17705 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17706 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17707 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17709 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17710 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17711 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17713 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17716 esac
17717 { echo "$as_me:$LINENO: checking for locale.h" >&5
17718 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17719 if test "${ac_cv_header_locale_h+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722 ac_cv_header_locale_h=$ac_header_preproc
17724 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17725 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17731 for ac_func in setlocale
17733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17747 #define $ac_func innocuous_$ac_func
17749 /* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char $ac_func (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17754 #ifdef __STDC__
17755 # include <limits.h>
17756 #else
17757 # include <assert.h>
17758 #endif
17760 #undef $ac_func
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 char $ac_func ();
17769 /* The GNU C library defines this for functions which it implements
17770 to always fail with ENOSYS. Some functions are actually named
17771 something starting with __ and the normal name is an alias. */
17772 #if defined __stub_$ac_func || defined __stub___$ac_func
17773 choke me
17774 #endif
17777 main ()
17779 return $ac_func ();
17781 return 0;
17783 _ACEOF
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (ac_try="$ac_link"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791 (eval "$ac_link") 2>conftest.er1
17792 ac_status=$?
17793 grep -v '^ *+' conftest.er1 >conftest.err
17794 rm -f conftest.er1
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } && {
17798 test -z "$ac_c_werror_flag" ||
17799 test ! -s conftest.err
17800 } && test -s conftest$ac_exeext &&
17801 $as_test_x conftest$ac_exeext; then
17802 eval "$as_ac_var=yes"
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 eval "$as_ac_var=no"
17810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17813 ac_res=`eval echo '${'$as_ac_var'}'`
17814 { echo "$as_me:$LINENO: result: $ac_res" >&5
17815 echo "${ECHO_T}$ac_res" >&6; }
17816 if test `eval echo '${'$as_ac_var'}'` = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17819 _ACEOF
17822 done
17825 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17826 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17827 # Irix 4.0.5F has the header but not the library.
17828 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17829 ac_have_func=yes
17831 cat >>confdefs.h <<\_ACEOF
17832 #define SVR4 1
17833 _ACEOF
17837 if test $ac_have_func = no; then
17838 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17839 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17840 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17841 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17842 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17845 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17846 else
17847 # Is the header compilable?
17848 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17849 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 $ac_includes_default
17857 #include <inq_stats/cpustats.h>
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (ac_try="$ac_compile"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17864 esac
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17876 ac_header_compiler=yes
17877 else
17878 echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17881 ac_header_compiler=no
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17886 echo "${ECHO_T}$ac_header_compiler" >&6; }
17888 # Is the header present?
17889 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17890 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #include <inq_stats/cpustats.h>
17898 _ACEOF
17899 if { (ac_try="$ac_cpp conftest.$ac_ext"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } >/dev/null && {
17912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17913 test ! -s conftest.err
17914 }; then
17915 ac_header_preproc=yes
17916 else
17917 echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17920 ac_header_preproc=no
17923 rm -f conftest.err conftest.$ac_ext
17924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17925 echo "${ECHO_T}$ac_header_preproc" >&6; }
17927 # So? What about this header?
17928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17929 yes:no: )
17930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17933 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17934 ac_header_preproc=yes
17936 no:yes:* )
17937 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17938 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17940 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17942 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17944 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17946 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17948 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17951 esac
17952 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17953 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17954 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17959 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17960 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17963 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17964 ac_have_func=yes
17966 cat >>confdefs.h <<\_ACEOF
17967 #define UMAX 1
17968 _ACEOF
17971 cat >>confdefs.h <<\_ACEOF
17972 #define UMAX4_3 1
17973 _ACEOF
17980 if test $ac_have_func = no; then
17981 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17982 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17983 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17984 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17988 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17989 else
17990 # Is the header compilable?
17991 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17992 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18000 #include <sys/cpustats.h>
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest.$ac_objext; then
18019 ac_header_compiler=yes
18020 else
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 ac_header_compiler=no
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18029 echo "${ECHO_T}$ac_header_compiler" >&6; }
18031 # Is the header present?
18032 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18033 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <sys/cpustats.h>
18041 _ACEOF
18042 if { (ac_try="$ac_cpp conftest.$ac_ext"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 ac_status=$?
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } >/dev/null && {
18055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18057 }; then
18058 ac_header_preproc=yes
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 ac_header_preproc=no
18066 rm -f conftest.err conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6; }
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 yes:no: )
18073 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc=yes
18079 no:yes:* )
18080 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18094 esac
18095 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18096 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18097 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18106 if test $ac_cv_header_sys_cpustats_h = yes; then
18107 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18108 #define UMAX 1
18109 _ACEOF
18116 if test $ac_have_func = no; then
18118 for ac_header in mach/mach.h
18120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_res=`eval echo '${'$as_ac_Header'}'`
18128 { echo "$as_me:$LINENO: result: $ac_res" >&5
18129 echo "${ECHO_T}$ac_res" >&6; }
18130 else
18131 # Is the header compilable?
18132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 $ac_includes_default
18141 #include <$ac_header>
18142 _ACEOF
18143 rm -f conftest.$ac_objext
18144 if { (ac_try="$ac_compile"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_compile") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest.$ac_objext; then
18160 ac_header_compiler=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_header_compiler=no
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18170 echo "${ECHO_T}$ac_header_compiler" >&6; }
18172 # Is the header present?
18173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <$ac_header>
18182 _ACEOF
18183 if { (ac_try="$ac_cpp conftest.$ac_ext"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } >/dev/null && {
18196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 }; then
18199 ac_header_preproc=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_header_preproc=no
18207 rm -f conftest.err conftest.$ac_ext
18208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6; }
18211 # So? What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18213 yes:no: )
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18218 ac_header_preproc=yes
18220 no:yes:* )
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18235 esac
18236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241 eval "$as_ac_Header=\$ac_header_preproc"
18243 ac_res=`eval echo '${'$as_ac_Header'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18251 _ACEOF
18255 done
18260 for ac_header in nlist.h
18262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_res=`eval echo '${'$as_ac_Header'}'`
18270 { echo "$as_me:$LINENO: result: $ac_res" >&5
18271 echo "${ECHO_T}$ac_res" >&6; }
18272 else
18273 # Is the header compilable?
18274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18276 cat >conftest.$ac_ext <<_ACEOF
18277 /* confdefs.h. */
18278 _ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 $ac_includes_default
18283 #include <$ac_header>
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.$ac_objext; then
18302 ac_header_compiler=yes
18303 else
18304 echo "$as_me: failed program was:" >&5
18305 sed 's/^/| /' conftest.$ac_ext >&5
18307 ac_header_compiler=no
18310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18312 echo "${ECHO_T}$ac_header_compiler" >&6; }
18314 # Is the header present?
18315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h. */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 #include <$ac_header>
18324 _ACEOF
18325 if { (ac_try="$ac_cpp conftest.$ac_ext"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } >/dev/null && {
18338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18339 test ! -s conftest.err
18340 }; then
18341 ac_header_preproc=yes
18342 else
18343 echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_header_preproc=no
18349 rm -f conftest.err conftest.$ac_ext
18350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18351 echo "${ECHO_T}$ac_header_preproc" >&6; }
18353 # So? What about this header?
18354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18355 yes:no: )
18356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18360 ac_header_preproc=yes
18362 no:yes:* )
18363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18377 esac
18378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 else
18383 eval "$as_ac_Header=\$ac_header_preproc"
18385 ac_res=`eval echo '${'$as_ac_Header'}'`
18386 { echo "$as_me:$LINENO: result: $ac_res" >&5
18387 echo "${ECHO_T}$ac_res" >&6; }
18390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18391 cat >>confdefs.h <<_ACEOF
18392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18393 _ACEOF
18394 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18395 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18396 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18397 echo $ECHO_N "(cached) $ECHO_C" >&6
18398 else
18399 cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h. */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18405 #include <nlist.h>
18408 main ()
18410 static struct nlist ac_aggr;
18411 if (ac_aggr.n_un.n_name)
18412 return 0;
18414 return 0;
18416 _ACEOF
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18422 esac
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18425 ac_status=$?
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest.$ac_objext; then
18434 ac_cv_member_struct_nlist_n_un_n_name=yes
18435 else
18436 echo "$as_me: failed program was:" >&5
18437 sed 's/^/| /' conftest.$ac_ext >&5
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #include <nlist.h>
18448 main ()
18450 static struct nlist ac_aggr;
18451 if (sizeof ac_aggr.n_un.n_name)
18452 return 0;
18454 return 0;
18456 _ACEOF
18457 rm -f conftest.$ac_objext
18458 if { (ac_try="$ac_compile"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18462 esac
18463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18464 (eval "$ac_compile") 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && {
18471 test -z "$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 } && test -s conftest.$ac_objext; then
18474 ac_cv_member_struct_nlist_n_un_n_name=yes
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_cv_member_struct_nlist_n_un_n_name=no
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18488 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18489 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18491 cat >>confdefs.h <<_ACEOF
18492 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18493 _ACEOF
18496 cat >>confdefs.h <<\_ACEOF
18497 #define NLIST_NAME_UNION 1
18498 _ACEOF
18505 done
18508 done
18511 # Some definitions of getloadavg require that the program be installed setgid.
18512 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18513 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18514 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517 cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18523 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18524 #ifdef LDAV_PRIVILEGED
18525 Yowza Am I SETGID yet
18526 #endif
18527 _ACEOF
18528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18529 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18530 ac_cv_func_getloadavg_setgid=yes
18531 else
18532 ac_cv_func_getloadavg_setgid=no
18534 rm -f conftest*
18537 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18538 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18539 if test $ac_cv_func_getloadavg_setgid = yes; then
18540 NEED_SETGID=true
18542 cat >>confdefs.h <<\_ACEOF
18543 #define GETLOADAVG_PRIVILEGED 1
18544 _ACEOF
18546 else
18547 NEED_SETGID=false
18550 if test $ac_cv_func_getloadavg_setgid = yes; then
18551 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18552 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18553 if test "${ac_cv_group_kmem+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 else
18556 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18557 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18558 # If we got an error (system does not support symlinks), try without -L.
18559 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18560 ac_cv_group_kmem=`echo $ac_ls_output \
18561 | sed -ne 's/[ ][ ]*/ /g;
18562 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18563 / /s/.* //;p;'`
18566 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18567 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18568 KMEM_GROUP=$ac_cv_group_kmem
18570 if test "x$ac_save_LIBS" = x; then
18571 GETLOADAVG_LIBS=$LIBS
18572 else
18573 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18575 LIBS=$ac_save_LIBS
18579 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18580 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18581 if test "${ac_cv_sys_largefile_source+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 while :; do
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <stdio.h>
18593 main ()
18595 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18597 return 0;
18599 _ACEOF
18600 rm -f conftest.$ac_objext conftest$ac_exeext
18601 if { (ac_try="$ac_link"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest$ac_exeext &&
18617 $as_test_x conftest$ac_exeext; then
18618 ac_cv_sys_largefile_source=no; break
18619 else
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18627 conftest$ac_exeext conftest.$ac_ext
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 #define _LARGEFILE_SOURCE 1
18635 #include <stdio.h>
18637 main ()
18639 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18641 return 0;
18643 _ACEOF
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_link") 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && {
18658 test -z "$ac_c_werror_flag" ||
18659 test ! -s conftest.err
18660 } && test -s conftest$ac_exeext &&
18661 $as_test_x conftest$ac_exeext; then
18662 ac_cv_sys_largefile_source=1; break
18663 else
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18671 conftest$ac_exeext conftest.$ac_ext
18672 ac_cv_sys_largefile_source=unknown
18673 break
18674 done
18676 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18677 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18678 case $ac_cv_sys_largefile_source in #(
18679 no | unknown) ;;
18681 cat >>confdefs.h <<_ACEOF
18682 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18683 _ACEOF
18685 esac
18686 rm -f conftest*
18688 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18689 # in glibc 2.1.3, but that breaks too many other things.
18690 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18691 if test $ac_cv_sys_largefile_source != unknown; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_FSEEKO 1
18695 _ACEOF
18700 # Configure getopt.
18701 # getopt.m4 serial 10
18703 # The getopt module assume you want GNU getopt, with getopt_long etc,
18704 # rather than vanilla POSIX getopt. This means your your code should
18705 # always include <getopt.h> for the getopt prototypes.
18717 # Prerequisites of lib/getopt*.
18722 GETOPT_H=
18724 for ac_header in getopt.h
18726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 ac_res=`eval echo '${'$as_ac_Header'}'`
18734 { echo "$as_me:$LINENO: result: $ac_res" >&5
18735 echo "${ECHO_T}$ac_res" >&6; }
18736 else
18737 # Is the header compilable?
18738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 $ac_includes_default
18747 #include <$ac_header>
18748 _ACEOF
18749 rm -f conftest.$ac_objext
18750 if { (ac_try="$ac_compile"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_compile") 2>conftest.er1
18757 ac_status=$?
18758 grep -v '^ *+' conftest.er1 >conftest.err
18759 rm -f conftest.er1
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } && {
18763 test -z "$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18765 } && test -s conftest.$ac_objext; then
18766 ac_header_compiler=yes
18767 else
18768 echo "$as_me: failed program was:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_header_compiler=no
18774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18776 echo "${ECHO_T}$ac_header_compiler" >&6; }
18778 # Is the header present?
18779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18781 cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h. */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 #include <$ac_header>
18788 _ACEOF
18789 if { (ac_try="$ac_cpp conftest.$ac_ext"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18796 ac_status=$?
18797 grep -v '^ *+' conftest.er1 >conftest.err
18798 rm -f conftest.er1
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } >/dev/null && {
18802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18803 test ! -s conftest.err
18804 }; then
18805 ac_header_preproc=yes
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18810 ac_header_preproc=no
18813 rm -f conftest.err conftest.$ac_ext
18814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18815 echo "${ECHO_T}$ac_header_preproc" >&6; }
18817 # So? What about this header?
18818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18819 yes:no: )
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18824 ac_header_preproc=yes
18826 no:yes:* )
18827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18841 esac
18842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 else
18847 eval "$as_ac_Header=\$ac_header_preproc"
18849 ac_res=`eval echo '${'$as_ac_Header'}'`
18850 { echo "$as_me:$LINENO: result: $ac_res" >&5
18851 echo "${ECHO_T}$ac_res" >&6; }
18854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18855 cat >>confdefs.h <<_ACEOF
18856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18857 _ACEOF
18859 else
18860 GETOPT_H=getopt.h
18863 done
18865 if test -z "$GETOPT_H"; then
18867 for ac_func in getopt_long_only
18869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 else
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18883 #define $ac_func innocuous_$ac_func
18885 /* System header to define __stub macros and hopefully few prototypes,
18886 which can conflict with char $ac_func (); below.
18887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18888 <limits.h> exists even on freestanding compilers. */
18890 #ifdef __STDC__
18891 # include <limits.h>
18892 #else
18893 # include <assert.h>
18894 #endif
18896 #undef $ac_func
18898 /* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18901 #ifdef __cplusplus
18902 extern "C"
18903 #endif
18904 char $ac_func ();
18905 /* The GNU C library defines this for functions which it implements
18906 to always fail with ENOSYS. Some functions are actually named
18907 something starting with __ and the normal name is an alias. */
18908 #if defined __stub_$ac_func || defined __stub___$ac_func
18909 choke me
18910 #endif
18913 main ()
18915 return $ac_func ();
18917 return 0;
18919 _ACEOF
18920 rm -f conftest.$ac_objext conftest$ac_exeext
18921 if { (ac_try="$ac_link"
18922 case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925 esac
18926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_link") 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } && {
18934 test -z "$ac_c_werror_flag" ||
18935 test ! -s conftest.err
18936 } && test -s conftest$ac_exeext &&
18937 $as_test_x conftest$ac_exeext; then
18938 eval "$as_ac_var=yes"
18939 else
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 eval "$as_ac_var=no"
18946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18947 conftest$ac_exeext conftest.$ac_ext
18949 ac_res=`eval echo '${'$as_ac_var'}'`
18950 { echo "$as_me:$LINENO: result: $ac_res" >&5
18951 echo "${ECHO_T}$ac_res" >&6; }
18952 if test `eval echo '${'$as_ac_var'}'` = yes; then
18953 cat >>confdefs.h <<_ACEOF
18954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18955 _ACEOF
18957 else
18958 GETOPT_H=getopt.h
18960 done
18964 if test -z "$GETOPT_H"; then
18965 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18966 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18967 if test "${ac_cv_have_decl_optreset+set}" = set; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #include <getopt.h>
18979 main ()
18981 #ifndef optreset
18982 (void) optreset;
18983 #endif
18986 return 0;
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (ac_try="$ac_compile"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_compile") 2>conftest.er1
18997 ac_status=$?
18998 grep -v '^ *+' conftest.er1 >conftest.err
18999 rm -f conftest.er1
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest.$ac_objext; then
19006 ac_cv_have_decl_optreset=yes
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_cv_have_decl_optreset=no
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19017 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19018 if test $ac_cv_have_decl_optreset = yes; then
19019 GETOPT_H=getopt.h
19024 if test -z "$GETOPT_H"; then
19025 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19026 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19027 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030 if test "$cross_compiling" = yes; then
19031 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19032 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19033 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 #include <getopt.h>
19045 main ()
19047 #ifndef getopt_clip
19048 (void) getopt_clip;
19049 #endif
19052 return 0;
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_compile") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest.$ac_objext; then
19072 ac_cv_have_decl_getopt_clip=yes
19073 else
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19077 ac_cv_have_decl_getopt_clip=no
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19082 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19083 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19084 if test $ac_cv_have_decl_getopt_clip = yes; then
19085 gl_cv_func_gnu_getopt=no
19086 else
19087 gl_cv_func_gnu_getopt=yes
19090 else
19091 cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h. */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 #include <getopt.h>
19099 main ()
19102 char *myargv[3];
19103 myargv[0] = "conftest";
19104 myargv[1] = "-+";
19105 myargv[2] = 0;
19106 return getopt (2, myargv, "+a") != '?';
19109 return 0;
19111 _ACEOF
19112 rm -f conftest$ac_exeext
19113 if { (ac_try="$ac_link"
19114 case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19117 esac
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_link") 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 gl_cv_func_gnu_getopt=yes
19133 else
19134 echo "$as_me: program exited with status $ac_status" >&5
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 ( exit $ac_status )
19139 gl_cv_func_gnu_getopt=no
19141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19146 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19147 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19148 if test "$gl_cv_func_gnu_getopt" = "no"; then
19149 GETOPT_H=getopt.h
19155 if test -n "$GETOPT_H"; then
19158 GETOPT_H=getopt.h
19160 cat >>confdefs.h <<\_ACEOF
19161 #define __GETOPT_PREFIX rpl_
19162 _ACEOF
19167 GETOPTOBJS='getopt.o getopt1.o'
19174 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19175 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19176 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179 # Use it with a single arg.
19180 cat >conftest.$ac_ext <<_ACEOF
19181 /* confdefs.h. */
19182 _ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 $ac_includes_default
19188 main ()
19190 getpgrp (0);
19192 return 0;
19194 _ACEOF
19195 rm -f conftest.$ac_objext
19196 if { (ac_try="$ac_compile"
19197 case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200 esac
19201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19202 (eval "$ac_compile") 2>conftest.er1
19203 ac_status=$?
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest.$ac_objext; then
19212 ac_cv_func_getpgrp_void=no
19213 else
19214 echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_cv_func_getpgrp_void=yes
19220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19223 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19224 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19225 if test $ac_cv_func_getpgrp_void = yes; then
19227 cat >>confdefs.h <<\_ACEOF
19228 #define GETPGRP_VOID 1
19229 _ACEOF
19235 for ac_func in strftime
19237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19241 echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h. */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19251 #define $ac_func innocuous_$ac_func
19253 /* System header to define __stub macros and hopefully few prototypes,
19254 which can conflict with char $ac_func (); below.
19255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19256 <limits.h> exists even on freestanding compilers. */
19258 #ifdef __STDC__
19259 # include <limits.h>
19260 #else
19261 # include <assert.h>
19262 #endif
19264 #undef $ac_func
19266 /* Override any GCC internal prototype to avoid an error.
19267 Use char because int might match the return type of a GCC
19268 builtin and then its argument prototype would still apply. */
19269 #ifdef __cplusplus
19270 extern "C"
19271 #endif
19272 char $ac_func ();
19273 /* The GNU C library defines this for functions which it implements
19274 to always fail with ENOSYS. Some functions are actually named
19275 something starting with __ and the normal name is an alias. */
19276 #if defined __stub_$ac_func || defined __stub___$ac_func
19277 choke me
19278 #endif
19281 main ()
19283 return $ac_func ();
19285 return 0;
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (ac_try="$ac_link"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293 esac
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_link") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest$ac_exeext &&
19305 $as_test_x conftest$ac_exeext; then
19306 eval "$as_ac_var=yes"
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 eval "$as_ac_var=no"
19314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19315 conftest$ac_exeext conftest.$ac_ext
19317 ac_res=`eval echo '${'$as_ac_var'}'`
19318 { echo "$as_me:$LINENO: result: $ac_res" >&5
19319 echo "${ECHO_T}$ac_res" >&6; }
19320 if test `eval echo '${'$as_ac_var'}'` = yes; then
19321 cat >>confdefs.h <<_ACEOF
19322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19323 _ACEOF
19325 else
19326 # strftime is in -lintl on SCO UNIX.
19327 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19328 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lintl $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any GCC internal prototype to avoid an error.
19342 Use char because int might match the return type of a GCC
19343 builtin and then its argument prototype would still apply. */
19344 #ifdef __cplusplus
19345 extern "C"
19346 #endif
19347 char strftime ();
19349 main ()
19351 return strftime ();
19353 return 0;
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19364 ac_status=$?
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_lib_intl_strftime=yes
19375 else
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_intl_strftime=no
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19387 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19388 if test $ac_cv_lib_intl_strftime = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define HAVE_STRFTIME 1
19391 _ACEOF
19393 LIBS="-lintl $LIBS"
19397 done
19400 # UNIX98 PTYs.
19402 for ac_func in grantpt
19404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410 cat >conftest.$ac_ext <<_ACEOF
19411 /* confdefs.h. */
19412 _ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19418 #define $ac_func innocuous_$ac_func
19420 /* System header to define __stub macros and hopefully few prototypes,
19421 which can conflict with char $ac_func (); below.
19422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19423 <limits.h> exists even on freestanding compilers. */
19425 #ifdef __STDC__
19426 # include <limits.h>
19427 #else
19428 # include <assert.h>
19429 #endif
19431 #undef $ac_func
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char $ac_func ();
19440 /* The GNU C library defines this for functions which it implements
19441 to always fail with ENOSYS. Some functions are actually named
19442 something starting with __ and the normal name is an alias. */
19443 #if defined __stub_$ac_func || defined __stub___$ac_func
19444 choke me
19445 #endif
19448 main ()
19450 return $ac_func ();
19452 return 0;
19454 _ACEOF
19455 rm -f conftest.$ac_objext conftest$ac_exeext
19456 if { (ac_try="$ac_link"
19457 case "(($ac_try" in
19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19459 *) ac_try_echo=$ac_try;;
19460 esac
19461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19462 (eval "$ac_link") 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } && {
19469 test -z "$ac_c_werror_flag" ||
19470 test ! -s conftest.err
19471 } && test -s conftest$ac_exeext &&
19472 $as_test_x conftest$ac_exeext; then
19473 eval "$as_ac_var=yes"
19474 else
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 eval "$as_ac_var=no"
19481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19482 conftest$ac_exeext conftest.$ac_ext
19484 ac_res=`eval echo '${'$as_ac_var'}'`
19485 { echo "$as_me:$LINENO: result: $ac_res" >&5
19486 echo "${ECHO_T}$ac_res" >&6; }
19487 if test `eval echo '${'$as_ac_var'}'` = yes; then
19488 cat >>confdefs.h <<_ACEOF
19489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19490 _ACEOF
19493 done
19496 # PTY-related GNU extensions.
19498 for ac_func in getpt
19500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506 cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h. */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19514 #define $ac_func innocuous_$ac_func
19516 /* System header to define __stub macros and hopefully few prototypes,
19517 which can conflict with char $ac_func (); below.
19518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19519 <limits.h> exists even on freestanding compilers. */
19521 #ifdef __STDC__
19522 # include <limits.h>
19523 #else
19524 # include <assert.h>
19525 #endif
19527 #undef $ac_func
19529 /* Override any GCC internal prototype to avoid an error.
19530 Use char because int might match the return type of a GCC
19531 builtin and then its argument prototype would still apply. */
19532 #ifdef __cplusplus
19533 extern "C"
19534 #endif
19535 char $ac_func ();
19536 /* The GNU C library defines this for functions which it implements
19537 to always fail with ENOSYS. Some functions are actually named
19538 something starting with __ and the normal name is an alias. */
19539 #if defined __stub_$ac_func || defined __stub___$ac_func
19540 choke me
19541 #endif
19544 main ()
19546 return $ac_func ();
19548 return 0;
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_link") 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest$ac_exeext &&
19568 $as_test_x conftest$ac_exeext; then
19569 eval "$as_ac_var=yes"
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 eval "$as_ac_var=no"
19577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19578 conftest$ac_exeext conftest.$ac_ext
19580 ac_res=`eval echo '${'$as_ac_var'}'`
19581 { echo "$as_me:$LINENO: result: $ac_res" >&5
19582 echo "${ECHO_T}$ac_res" >&6; }
19583 if test `eval echo '${'$as_ac_var'}'` = yes; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19586 _ACEOF
19589 done
19592 # Check this now, so that we will NOT find the above functions in ncurses.
19593 # That is because we have not set up to link ncurses in lib-src.
19594 # It's better to believe a function is not available
19595 # than to expect to find it in ncurses.
19597 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19598 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19599 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602 ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lncurses $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 /* Override any GCC internal prototype to avoid an error.
19612 Use char because int might match the return type of a GCC
19613 builtin and then its argument prototype would still apply. */
19614 #ifdef __cplusplus
19615 extern "C"
19616 #endif
19617 char tparm ();
19619 main ()
19621 return tparm ();
19623 return 0;
19625 _ACEOF
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19634 ac_status=$?
19635 grep -v '^ *+' conftest.er1 >conftest.err
19636 rm -f conftest.er1
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest$ac_exeext &&
19643 $as_test_x conftest$ac_exeext; then
19644 ac_cv_lib_ncurses_tparm=yes
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_cv_lib_ncurses_tparm=no
19652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LIBS=$ac_check_lib_save_LIBS
19656 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19657 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19658 if test $ac_cv_lib_ncurses_tparm = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660 #define HAVE_LIBNCURSES 1
19661 _ACEOF
19663 LIBS="-lncurses $LIBS"
19668 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19670 resolv=no
19671 cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h. */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 #include <netinet/in.h>
19678 #include <arpa/nameser.h>
19679 #include <resolv.h>
19681 main ()
19683 return res_init();
19685 return 0;
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 have_res_init=yes
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 have_res_init=no
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 if test "$have_res_init" = no; then
19717 OLIBS="$LIBS"
19718 LIBS="$LIBS -lresolv"
19719 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19720 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <netinet/in.h>
19728 #include <arpa/nameser.h>
19729 #include <resolv.h>
19731 main ()
19733 return res_init();
19735 return 0;
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19746 ac_status=$?
19747 grep -v '^ *+' conftest.er1 >conftest.err
19748 rm -f conftest.er1
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 have_res_init=yes
19757 else
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 have_res_init=no
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19767 echo "${ECHO_T}$have_res_init" >&6; }
19768 if test "$have_res_init" = yes ; then
19769 resolv=yes
19771 LIBS="$OLIBS"
19774 if test "$have_res_init" = yes; then
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE_RES_INIT 1
19778 _ACEOF
19782 # Do we need the Hesiod library to provide the support routines?
19783 if test "$with_hesiod" = yes ; then
19784 # Don't set $LIBS here -- see comments above.
19785 { echo "$as_me:$LINENO: checking for res_send" >&5
19786 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19787 if test "${ac_cv_func_res_send+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19798 #define res_send innocuous_res_send
19800 /* System header to define __stub macros and hopefully few prototypes,
19801 which can conflict with char res_send (); below.
19802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19803 <limits.h> exists even on freestanding compilers. */
19805 #ifdef __STDC__
19806 # include <limits.h>
19807 #else
19808 # include <assert.h>
19809 #endif
19811 #undef res_send
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 #ifdef __cplusplus
19817 extern "C"
19818 #endif
19819 char res_send ();
19820 /* The GNU C library defines this for functions which it implements
19821 to always fail with ENOSYS. Some functions are actually named
19822 something starting with __ and the normal name is an alias. */
19823 #if defined __stub_res_send || defined __stub___res_send
19824 choke me
19825 #endif
19828 main ()
19830 return res_send ();
19832 return 0;
19834 _ACEOF
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19840 esac
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_link") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest$ac_exeext &&
19852 $as_test_x conftest$ac_exeext; then
19853 ac_cv_func_res_send=yes
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_cv_func_res_send=no
19861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19862 conftest$ac_exeext conftest.$ac_ext
19864 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19865 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19866 if test $ac_cv_func_res_send = yes; then
19868 else
19869 { echo "$as_me:$LINENO: checking for __res_send" >&5
19870 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19871 if test "${ac_cv_func___res_send+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874 cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h. */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19880 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19882 #define __res_send innocuous___res_send
19884 /* System header to define __stub macros and hopefully few prototypes,
19885 which can conflict with char __res_send (); below.
19886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19887 <limits.h> exists even on freestanding compilers. */
19889 #ifdef __STDC__
19890 # include <limits.h>
19891 #else
19892 # include <assert.h>
19893 #endif
19895 #undef __res_send
19897 /* Override any GCC internal prototype to avoid an error.
19898 Use char because int might match the return type of a GCC
19899 builtin and then its argument prototype would still apply. */
19900 #ifdef __cplusplus
19901 extern "C"
19902 #endif
19903 char __res_send ();
19904 /* The GNU C library defines this for functions which it implements
19905 to always fail with ENOSYS. Some functions are actually named
19906 something starting with __ and the normal name is an alias. */
19907 #if defined __stub___res_send || defined __stub_____res_send
19908 choke me
19909 #endif
19912 main ()
19914 return __res_send ();
19916 return 0;
19918 _ACEOF
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (ac_try="$ac_link"
19921 case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_link") 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } && {
19933 test -z "$ac_c_werror_flag" ||
19934 test ! -s conftest.err
19935 } && test -s conftest$ac_exeext &&
19936 $as_test_x conftest$ac_exeext; then
19937 ac_cv_func___res_send=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_cv_func___res_send=no
19945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19946 conftest$ac_exeext conftest.$ac_ext
19948 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19949 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19950 if test $ac_cv_func___res_send = yes; then
19952 else
19953 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19954 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19955 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 else
19958 ac_check_lib_save_LIBS=$LIBS
19959 LIBS="-lresolv $LIBS"
19960 cat >conftest.$ac_ext <<_ACEOF
19961 /* confdefs.h. */
19962 _ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19967 /* Override any GCC internal prototype to avoid an error.
19968 Use char because int might match the return type of a GCC
19969 builtin and then its argument prototype would still apply. */
19970 #ifdef __cplusplus
19971 extern "C"
19972 #endif
19973 char res_send ();
19975 main ()
19977 return res_send ();
19979 return 0;
19981 _ACEOF
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987 esac
19988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest$ac_exeext &&
19999 $as_test_x conftest$ac_exeext; then
20000 ac_cv_lib_resolv_res_send=yes
20001 else
20002 echo "$as_me: failed program was:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 ac_cv_lib_resolv_res_send=no
20008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009 conftest$ac_exeext conftest.$ac_ext
20010 LIBS=$ac_check_lib_save_LIBS
20012 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20013 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20014 if test $ac_cv_lib_resolv_res_send = yes; then
20015 resolv=yes
20016 else
20017 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20018 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20019 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022 ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-lresolv $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h. */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20034 #ifdef __cplusplus
20035 extern "C"
20036 #endif
20037 char __res_send ();
20039 main ()
20041 return __res_send ();
20043 return 0;
20045 _ACEOF
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (ac_try="$ac_link"
20048 case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_link") 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } && {
20060 test -z "$ac_c_werror_flag" ||
20061 test ! -s conftest.err
20062 } && test -s conftest$ac_exeext &&
20063 $as_test_x conftest$ac_exeext; then
20064 ac_cv_lib_resolv___res_send=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_cv_lib_resolv___res_send=no
20072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20073 conftest$ac_exeext conftest.$ac_ext
20074 LIBS=$ac_check_lib_save_LIBS
20076 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20077 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20078 if test $ac_cv_lib_resolv___res_send = yes; then
20079 resolv=yes
20088 if test "$resolv" = yes ; then
20089 RESOLVLIB=-lresolv
20090 else
20091 RESOLVLIB=
20093 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20094 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20095 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098 cat >conftest.$ac_ext <<_ACEOF
20099 /* confdefs.h. */
20100 _ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20104 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20106 #define hes_getmailhost innocuous_hes_getmailhost
20108 /* System header to define __stub macros and hopefully few prototypes,
20109 which can conflict with char hes_getmailhost (); below.
20110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20111 <limits.h> exists even on freestanding compilers. */
20113 #ifdef __STDC__
20114 # include <limits.h>
20115 #else
20116 # include <assert.h>
20117 #endif
20119 #undef hes_getmailhost
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char hes_getmailhost ();
20128 /* The GNU C library defines this for functions which it implements
20129 to always fail with ENOSYS. Some functions are actually named
20130 something starting with __ and the normal name is an alias. */
20131 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20132 choke me
20133 #endif
20136 main ()
20138 return hes_getmailhost ();
20140 return 0;
20142 _ACEOF
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>conftest.er1
20151 ac_status=$?
20152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest$ac_exeext &&
20160 $as_test_x conftest$ac_exeext; then
20161 ac_cv_func_hes_getmailhost=yes
20162 else
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ac_cv_func_hes_getmailhost=no
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170 conftest$ac_exeext conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20173 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20174 if test $ac_cv_func_hes_getmailhost = yes; then
20176 else
20177 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20178 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182 ac_check_lib_save_LIBS=$LIBS
20183 LIBS="-lhesiod $RESOLVLIB $LIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char hes_getmailhost ();
20199 main ()
20201 return hes_getmailhost ();
20203 return 0;
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
20224 ac_cv_lib_hesiod_hes_getmailhost=yes
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ac_cv_lib_hesiod_hes_getmailhost=no
20232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20237 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20238 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20240 cat >>confdefs.h <<\_ACEOF
20241 #define HAVE_LIBHESIOD 1
20242 _ACEOF
20244 else
20252 # Do we need libresolv (due to res_init or Hesiod)?
20253 if test "$resolv" = yes ; then
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE_LIBRESOLV 1
20257 _ACEOF
20261 # These tell us which Kerberos-related libraries to use.
20262 if test "${with_kerberos+set}" = set; then
20264 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20265 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20266 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20267 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269 ac_check_lib_save_LIBS=$LIBS
20270 LIBS="-lcom_err $LIBS"
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char com_err ();
20286 main ()
20288 return com_err ();
20290 return 0;
20292 _ACEOF
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext &&
20310 $as_test_x conftest$ac_exeext; then
20311 ac_cv_lib_com_err_com_err=yes
20312 else
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_cv_lib_com_err_com_err=no
20319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20320 conftest$ac_exeext conftest.$ac_ext
20321 LIBS=$ac_check_lib_save_LIBS
20323 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20324 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20325 if test $ac_cv_lib_com_err_com_err = yes; then
20326 cat >>confdefs.h <<_ACEOF
20327 #define HAVE_LIBCOM_ERR 1
20328 _ACEOF
20330 LIBS="-lcom_err $LIBS"
20335 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20336 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20337 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340 ac_check_lib_save_LIBS=$LIBS
20341 LIBS="-lk5crypto $LIBS"
20342 cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h. */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20349 /* Override any GCC internal prototype to avoid an error.
20350 Use char because int might match the return type of a GCC
20351 builtin and then its argument prototype would still apply. */
20352 #ifdef __cplusplus
20353 extern "C"
20354 #endif
20355 char mit_des_cbc_encrypt ();
20357 main ()
20359 return mit_des_cbc_encrypt ();
20361 return 0;
20363 _ACEOF
20364 rm -f conftest.$ac_objext conftest$ac_exeext
20365 if { (ac_try="$ac_link"
20366 case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20369 esac
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_link") 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && {
20378 test -z "$ac_c_werror_flag" ||
20379 test ! -s conftest.err
20380 } && test -s conftest$ac_exeext &&
20381 $as_test_x conftest$ac_exeext; then
20382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20383 else
20384 echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20387 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20391 conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_check_lib_save_LIBS
20394 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20395 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20396 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398 #define HAVE_LIBK5CRYPTO 1
20399 _ACEOF
20401 LIBS="-lk5crypto $LIBS"
20406 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20407 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20408 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 ac_check_lib_save_LIBS=$LIBS
20412 LIBS="-lcrypto $LIBS"
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20420 /* Override any GCC internal prototype to avoid an error.
20421 Use char because int might match the return type of a GCC
20422 builtin and then its argument prototype would still apply. */
20423 #ifdef __cplusplus
20424 extern "C"
20425 #endif
20426 char mit_des_cbc_encrypt ();
20428 main ()
20430 return mit_des_cbc_encrypt ();
20432 return 0;
20434 _ACEOF
20435 rm -f conftest.$ac_objext conftest$ac_exeext
20436 if { (ac_try="$ac_link"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_link") 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && {
20449 test -z "$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 } && test -s conftest$ac_exeext &&
20452 $as_test_x conftest$ac_exeext; then
20453 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20454 else
20455 echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20458 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20462 conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20465 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20466 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20467 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20468 cat >>confdefs.h <<_ACEOF
20469 #define HAVE_LIBCRYPTO 1
20470 _ACEOF
20472 LIBS="-lcrypto $LIBS"
20477 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20478 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20479 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482 ac_check_lib_save_LIBS=$LIBS
20483 LIBS="-lkrb5 $LIBS"
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h. */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20491 /* Override any GCC internal prototype to avoid an error.
20492 Use char because int might match the return type of a GCC
20493 builtin and then its argument prototype would still apply. */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 char krb5_init_context ();
20499 main ()
20501 return krb5_init_context ();
20503 return 0;
20505 _ACEOF
20506 rm -f conftest.$ac_objext conftest$ac_exeext
20507 if { (ac_try="$ac_link"
20508 case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_link") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } && {
20520 test -z "$ac_c_werror_flag" ||
20521 test ! -s conftest.err
20522 } && test -s conftest$ac_exeext &&
20523 $as_test_x conftest$ac_exeext; then
20524 ac_cv_lib_krb5_krb5_init_context=yes
20525 else
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 ac_cv_lib_krb5_krb5_init_context=no
20532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20533 conftest$ac_exeext conftest.$ac_ext
20534 LIBS=$ac_check_lib_save_LIBS
20536 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20537 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20538 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20539 cat >>confdefs.h <<_ACEOF
20540 #define HAVE_LIBKRB5 1
20541 _ACEOF
20543 LIBS="-lkrb5 $LIBS"
20547 if test "${with_kerberos5+set}" != set; then
20549 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20550 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20551 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-ldes425 $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 char des_cbc_encrypt ();
20571 main ()
20573 return des_cbc_encrypt ();
20575 return 0;
20577 _ACEOF
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest$ac_exeext &&
20595 $as_test_x conftest$ac_exeext; then
20596 ac_cv_lib_des425_des_cbc_encrypt=yes
20597 else
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_lib_des425_des_cbc_encrypt=no
20604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20605 conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20608 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20609 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20610 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_LIBDES425 1
20613 _ACEOF
20615 LIBS="-ldes425 $LIBS"
20617 else
20619 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20620 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20621 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624 ac_check_lib_save_LIBS=$LIBS
20625 LIBS="-ldes $LIBS"
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h. */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20633 /* Override any GCC internal prototype to avoid an error.
20634 Use char because int might match the return type of a GCC
20635 builtin and then its argument prototype would still apply. */
20636 #ifdef __cplusplus
20637 extern "C"
20638 #endif
20639 char des_cbc_encrypt ();
20641 main ()
20643 return des_cbc_encrypt ();
20645 return 0;
20647 _ACEOF
20648 rm -f conftest.$ac_objext conftest$ac_exeext
20649 if { (ac_try="$ac_link"
20650 case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_link") 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && {
20662 test -z "$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20664 } && test -s conftest$ac_exeext &&
20665 $as_test_x conftest$ac_exeext; then
20666 ac_cv_lib_des_des_cbc_encrypt=yes
20667 else
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 ac_cv_lib_des_des_cbc_encrypt=no
20674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20675 conftest$ac_exeext conftest.$ac_ext
20676 LIBS=$ac_check_lib_save_LIBS
20678 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20679 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20680 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20681 cat >>confdefs.h <<_ACEOF
20682 #define HAVE_LIBDES 1
20683 _ACEOF
20685 LIBS="-ldes $LIBS"
20692 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20693 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20694 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 ac_check_lib_save_LIBS=$LIBS
20698 LIBS="-lkrb4 $LIBS"
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 char krb_get_cred ();
20714 main ()
20716 return krb_get_cred ();
20718 return 0;
20720 _ACEOF
20721 rm -f conftest.$ac_objext conftest$ac_exeext
20722 if { (ac_try="$ac_link"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_link") 2>conftest.er1
20729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest$ac_exeext &&
20738 $as_test_x conftest$ac_exeext; then
20739 ac_cv_lib_krb4_krb_get_cred=yes
20740 else
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_cv_lib_krb4_krb_get_cred=no
20747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20748 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_check_lib_save_LIBS
20751 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20752 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20753 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define HAVE_LIBKRB4 1
20756 _ACEOF
20758 LIBS="-lkrb4 $LIBS"
20760 else
20762 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20763 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20764 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767 ac_check_lib_save_LIBS=$LIBS
20768 LIBS="-lkrb $LIBS"
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20776 /* Override any GCC internal prototype to avoid an error.
20777 Use char because int might match the return type of a GCC
20778 builtin and then its argument prototype would still apply. */
20779 #ifdef __cplusplus
20780 extern "C"
20781 #endif
20782 char krb_get_cred ();
20784 main ()
20786 return krb_get_cred ();
20788 return 0;
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest$ac_exeext &&
20808 $as_test_x conftest$ac_exeext; then
20809 ac_cv_lib_krb_krb_get_cred=yes
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 ac_cv_lib_krb_krb_get_cred=no
20817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20821 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20822 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20823 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20824 cat >>confdefs.h <<_ACEOF
20825 #define HAVE_LIBKRB 1
20826 _ACEOF
20828 LIBS="-lkrb $LIBS"
20836 if test "${with_kerberos5+set}" = set; then
20838 for ac_header in krb5.h
20840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_res=`eval echo '${'$as_ac_Header'}'`
20848 { echo "$as_me:$LINENO: result: $ac_res" >&5
20849 echo "${ECHO_T}$ac_res" >&6; }
20850 else
20851 # Is the header compilable?
20852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20860 $ac_includes_default
20861 #include <$ac_header>
20862 _ACEOF
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870 (eval "$ac_compile") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest.$ac_objext; then
20880 ac_header_compiler=yes
20881 else
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_header_compiler=no
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20890 echo "${ECHO_T}$ac_header_compiler" >&6; }
20892 # Is the header present?
20893 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20895 cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h. */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20901 #include <$ac_header>
20902 _ACEOF
20903 if { (ac_try="$ac_cpp conftest.$ac_ext"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20907 esac
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20910 ac_status=$?
20911 grep -v '^ *+' conftest.er1 >conftest.err
20912 rm -f conftest.er1
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } >/dev/null && {
20916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20917 test ! -s conftest.err
20918 }; then
20919 ac_header_preproc=yes
20920 else
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_header_preproc=no
20927 rm -f conftest.err conftest.$ac_ext
20928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20929 echo "${ECHO_T}$ac_header_preproc" >&6; }
20931 # So? What about this header?
20932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20933 yes:no: )
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20938 ac_header_preproc=yes
20940 no:yes:* )
20941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20955 esac
20956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 else
20961 eval "$as_ac_Header=\$ac_header_preproc"
20963 ac_res=`eval echo '${'$as_ac_Header'}'`
20964 { echo "$as_me:$LINENO: result: $ac_res" >&5
20965 echo "${ECHO_T}$ac_res" >&6; }
20968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20971 _ACEOF
20975 done
20977 else
20979 for ac_header in des.h
20981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 ac_res=`eval echo '${'$as_ac_Header'}'`
20989 { echo "$as_me:$LINENO: result: $ac_res" >&5
20990 echo "${ECHO_T}$ac_res" >&6; }
20991 else
20992 # Is the header compilable?
20993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20995 cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h. */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h. */
21001 $ac_includes_default
21002 #include <$ac_header>
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_compile") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest.$ac_objext; then
21021 ac_header_compiler=yes
21022 else
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_header_compiler=no
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21031 echo "${ECHO_T}$ac_header_compiler" >&6; }
21033 # Is the header present?
21034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #include <$ac_header>
21043 _ACEOF
21044 if { (ac_try="$ac_cpp conftest.$ac_ext"
21045 case "(($ac_try" in
21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047 *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } >/dev/null && {
21057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21058 test ! -s conftest.err
21059 }; then
21060 ac_header_preproc=yes
21061 else
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_header_preproc=no
21068 rm -f conftest.err conftest.$ac_ext
21069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21070 echo "${ECHO_T}$ac_header_preproc" >&6; }
21072 # So? What about this header?
21073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21074 yes:no: )
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21079 ac_header_preproc=yes
21081 no:yes:* )
21082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21096 esac
21097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21100 echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102 eval "$as_ac_Header=\$ac_header_preproc"
21104 ac_res=`eval echo '${'$as_ac_Header'}'`
21105 { echo "$as_me:$LINENO: result: $ac_res" >&5
21106 echo "${ECHO_T}$ac_res" >&6; }
21109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21110 cat >>confdefs.h <<_ACEOF
21111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21112 _ACEOF
21114 else
21116 for ac_header in kerberosIV/des.h
21118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21125 ac_res=`eval echo '${'$as_ac_Header'}'`
21126 { echo "$as_me:$LINENO: result: $ac_res" >&5
21127 echo "${ECHO_T}$ac_res" >&6; }
21128 else
21129 # Is the header compilable?
21130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21132 cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h. */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 $ac_includes_default
21139 #include <$ac_header>
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21146 esac
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest.$ac_objext; then
21158 ac_header_compiler=yes
21159 else
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21163 ac_header_compiler=no
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21168 echo "${ECHO_T}$ac_header_compiler" >&6; }
21170 # Is the header present?
21171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21173 cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h. */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h. */
21179 #include <$ac_header>
21180 _ACEOF
21181 if { (ac_try="$ac_cpp conftest.$ac_ext"
21182 case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21188 ac_status=$?
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } >/dev/null && {
21194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21195 test ! -s conftest.err
21196 }; then
21197 ac_header_preproc=yes
21198 else
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21202 ac_header_preproc=no
21205 rm -f conftest.err conftest.$ac_ext
21206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21207 echo "${ECHO_T}$ac_header_preproc" >&6; }
21209 # So? What about this header?
21210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21211 yes:no: )
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21216 ac_header_preproc=yes
21218 no:yes:* )
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21233 esac
21234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21237 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 else
21239 eval "$as_ac_Header=\$ac_header_preproc"
21241 ac_res=`eval echo '${'$as_ac_Header'}'`
21242 { echo "$as_me:$LINENO: result: $ac_res" >&5
21243 echo "${ECHO_T}$ac_res" >&6; }
21246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21247 cat >>confdefs.h <<_ACEOF
21248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21249 _ACEOF
21251 else
21253 for ac_header in kerberos/des.h
21255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 ac_res=`eval echo '${'$as_ac_Header'}'`
21263 { echo "$as_me:$LINENO: result: $ac_res" >&5
21264 echo "${ECHO_T}$ac_res" >&6; }
21265 else
21266 # Is the header compilable?
21267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 $ac_includes_default
21276 #include <$ac_header>
21277 _ACEOF
21278 rm -f conftest.$ac_objext
21279 if { (ac_try="$ac_compile"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_compile") 2>conftest.er1
21286 ac_status=$?
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } && {
21292 test -z "$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21294 } && test -s conftest.$ac_objext; then
21295 ac_header_compiler=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_header_compiler=no
21303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21305 echo "${ECHO_T}$ac_header_compiler" >&6; }
21307 # Is the header present?
21308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h. */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <$ac_header>
21317 _ACEOF
21318 if { (ac_try="$ac_cpp conftest.$ac_ext"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } >/dev/null && {
21331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 }; then
21334 ac_header_preproc=yes
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_header_preproc=no
21342 rm -f conftest.err conftest.$ac_ext
21343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21344 echo "${ECHO_T}$ac_header_preproc" >&6; }
21346 # So? What about this header?
21347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21348 yes:no: )
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21353 ac_header_preproc=yes
21355 no:yes:* )
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21370 esac
21371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 else
21376 eval "$as_ac_Header=\$ac_header_preproc"
21378 ac_res=`eval echo '${'$as_ac_Header'}'`
21379 { echo "$as_me:$LINENO: result: $ac_res" >&5
21380 echo "${ECHO_T}$ac_res" >&6; }
21383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21384 cat >>confdefs.h <<_ACEOF
21385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21386 _ACEOF
21390 done
21394 done
21398 done
21401 for ac_header in krb.h
21403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21410 ac_res=`eval echo '${'$as_ac_Header'}'`
21411 { echo "$as_me:$LINENO: result: $ac_res" >&5
21412 echo "${ECHO_T}$ac_res" >&6; }
21413 else
21414 # Is the header compilable?
21415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h. */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21424 #include <$ac_header>
21425 _ACEOF
21426 rm -f conftest.$ac_objext
21427 if { (ac_try="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21431 esac
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_header_compiler=yes
21444 else
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_header_compiler=no
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21453 echo "${ECHO_T}$ac_header_compiler" >&6; }
21455 # Is the header present?
21456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21458 cat >conftest.$ac_ext <<_ACEOF
21459 /* confdefs.h. */
21460 _ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21464 #include <$ac_header>
21465 _ACEOF
21466 if { (ac_try="$ac_cpp conftest.$ac_ext"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21473 ac_status=$?
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } >/dev/null && {
21479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21480 test ! -s conftest.err
21481 }; then
21482 ac_header_preproc=yes
21483 else
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21487 ac_header_preproc=no
21490 rm -f conftest.err conftest.$ac_ext
21491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21492 echo "${ECHO_T}$ac_header_preproc" >&6; }
21494 # So? What about this header?
21495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21496 yes:no: )
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21501 ac_header_preproc=yes
21503 no:yes:* )
21504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21518 esac
21519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21522 echo $ECHO_N "(cached) $ECHO_C" >&6
21523 else
21524 eval "$as_ac_Header=\$ac_header_preproc"
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21532 cat >>confdefs.h <<_ACEOF
21533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21534 _ACEOF
21536 else
21538 for ac_header in kerberosIV/krb.h
21540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21547 ac_res=`eval echo '${'$as_ac_Header'}'`
21548 { echo "$as_me:$LINENO: result: $ac_res" >&5
21549 echo "${ECHO_T}$ac_res" >&6; }
21550 else
21551 # Is the header compilable?
21552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h. */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 $ac_includes_default
21561 #include <$ac_header>
21562 _ACEOF
21563 rm -f conftest.$ac_objext
21564 if { (ac_try="$ac_compile"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570 (eval "$ac_compile") 2>conftest.er1
21571 ac_status=$?
21572 grep -v '^ *+' conftest.er1 >conftest.err
21573 rm -f conftest.er1
21574 cat conftest.err >&5
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest.$ac_objext; then
21580 ac_header_compiler=yes
21581 else
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_header_compiler=no
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21590 echo "${ECHO_T}$ac_header_compiler" >&6; }
21592 # Is the header present?
21593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h. */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21601 #include <$ac_header>
21602 _ACEOF
21603 if { (ac_try="$ac_cpp conftest.$ac_ext"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21610 ac_status=$?
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } >/dev/null && {
21616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21617 test ! -s conftest.err
21618 }; then
21619 ac_header_preproc=yes
21620 else
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21624 ac_header_preproc=no
21627 rm -f conftest.err conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21629 echo "${ECHO_T}$ac_header_preproc" >&6; }
21631 # So? What about this header?
21632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21633 yes:no: )
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21638 ac_header_preproc=yes
21640 no:yes:* )
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21644 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21648 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21655 esac
21656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661 eval "$as_ac_Header=\$ac_header_preproc"
21663 ac_res=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21669 cat >>confdefs.h <<_ACEOF
21670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21671 _ACEOF
21673 else
21675 for ac_header in kerberos/krb.h
21677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 ac_res=`eval echo '${'$as_ac_Header'}'`
21685 { echo "$as_me:$LINENO: result: $ac_res" >&5
21686 echo "${ECHO_T}$ac_res" >&6; }
21687 else
21688 # Is the header compilable?
21689 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21691 cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h. */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 $ac_includes_default
21698 #include <$ac_header>
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_compile") 2>conftest.er1
21708 ac_status=$?
21709 grep -v '^ *+' conftest.er1 >conftest.err
21710 rm -f conftest.er1
21711 cat conftest.err >&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); } && {
21714 test -z "$ac_c_werror_flag" ||
21715 test ! -s conftest.err
21716 } && test -s conftest.$ac_objext; then
21717 ac_header_compiler=yes
21718 else
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ac_header_compiler=no
21725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21727 echo "${ECHO_T}$ac_header_compiler" >&6; }
21729 # Is the header present?
21730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21732 cat >conftest.$ac_ext <<_ACEOF
21733 /* confdefs.h. */
21734 _ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21738 #include <$ac_header>
21739 _ACEOF
21740 if { (ac_try="$ac_cpp conftest.$ac_ext"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21747 ac_status=$?
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } >/dev/null && {
21753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21754 test ! -s conftest.err
21755 }; then
21756 ac_header_preproc=yes
21757 else
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21761 ac_header_preproc=no
21764 rm -f conftest.err conftest.$ac_ext
21765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21766 echo "${ECHO_T}$ac_header_preproc" >&6; }
21768 # So? What about this header?
21769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21770 yes:no: )
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21775 ac_header_preproc=yes
21777 no:yes:* )
21778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21792 esac
21793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 else
21798 eval "$as_ac_Header=\$ac_header_preproc"
21800 ac_res=`eval echo '${'$as_ac_Header'}'`
21801 { echo "$as_me:$LINENO: result: $ac_res" >&5
21802 echo "${ECHO_T}$ac_res" >&6; }
21805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21806 cat >>confdefs.h <<_ACEOF
21807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21808 _ACEOF
21812 done
21816 done
21820 done
21824 for ac_header in com_err.h
21826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 ac_res=`eval echo '${'$as_ac_Header'}'`
21834 { echo "$as_me:$LINENO: result: $ac_res" >&5
21835 echo "${ECHO_T}$ac_res" >&6; }
21836 else
21837 # Is the header compilable?
21838 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21840 cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h. */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 $ac_includes_default
21847 #include <$ac_header>
21848 _ACEOF
21849 rm -f conftest.$ac_objext
21850 if { (ac_try="$ac_compile"
21851 case "(($ac_try" in
21852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21853 *) ac_try_echo=$ac_try;;
21854 esac
21855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21856 (eval "$ac_compile") 2>conftest.er1
21857 ac_status=$?
21858 grep -v '^ *+' conftest.er1 >conftest.err
21859 rm -f conftest.er1
21860 cat conftest.err >&5
21861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21862 (exit $ac_status); } && {
21863 test -z "$ac_c_werror_flag" ||
21864 test ! -s conftest.err
21865 } && test -s conftest.$ac_objext; then
21866 ac_header_compiler=yes
21867 else
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 ac_header_compiler=no
21874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21876 echo "${ECHO_T}$ac_header_compiler" >&6; }
21878 # Is the header present?
21879 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 #include <$ac_header>
21888 _ACEOF
21889 if { (ac_try="$ac_cpp conftest.$ac_ext"
21890 case "(($ac_try" in
21891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892 *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21896 ac_status=$?
21897 grep -v '^ *+' conftest.er1 >conftest.err
21898 rm -f conftest.er1
21899 cat conftest.err >&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } >/dev/null && {
21902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21903 test ! -s conftest.err
21904 }; then
21905 ac_header_preproc=yes
21906 else
21907 echo "$as_me: failed program was:" >&5
21908 sed 's/^/| /' conftest.$ac_ext >&5
21910 ac_header_preproc=no
21913 rm -f conftest.err conftest.$ac_ext
21914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21915 echo "${ECHO_T}$ac_header_preproc" >&6; }
21917 # So? What about this header?
21918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21919 yes:no: )
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21924 ac_header_preproc=yes
21926 no:yes:* )
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21941 esac
21942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21945 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 else
21947 eval "$as_ac_Header=\$ac_header_preproc"
21949 ac_res=`eval echo '${'$as_ac_Header'}'`
21950 { echo "$as_me:$LINENO: result: $ac_res" >&5
21951 echo "${ECHO_T}$ac_res" >&6; }
21954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21955 cat >>confdefs.h <<_ACEOF
21956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21957 _ACEOF
21961 done
21965 # Solaris requires -lintl if you want strerror (which calls dgettext)
21966 # to return localized messages.
21968 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21969 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21970 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21971 echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973 ac_check_lib_save_LIBS=$LIBS
21974 LIBS="-lintl $LIBS"
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21982 /* Override any GCC internal prototype to avoid an error.
21983 Use char because int might match the return type of a GCC
21984 builtin and then its argument prototype would still apply. */
21985 #ifdef __cplusplus
21986 extern "C"
21987 #endif
21988 char dgettext ();
21990 main ()
21992 return dgettext ();
21994 return 0;
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest$ac_exeext &&
22014 $as_test_x conftest$ac_exeext; then
22015 ac_cv_lib_intl_dgettext=yes
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 ac_cv_lib_intl_dgettext=no
22023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22024 conftest$ac_exeext conftest.$ac_ext
22025 LIBS=$ac_check_lib_save_LIBS
22027 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22028 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22029 if test $ac_cv_lib_intl_dgettext = yes; then
22030 cat >>confdefs.h <<_ACEOF
22031 #define HAVE_LIBINTL 1
22032 _ACEOF
22034 LIBS="-lintl $LIBS"
22039 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22040 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22041 if test "${emacs_cv_localtime_cache+set}" = set; then
22042 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044 if test x$ac_cv_func_tzset = xyes; then
22045 if test "$cross_compiling" = yes; then
22046 # If we have tzset, assume the worst when cross-compiling.
22047 emacs_cv_localtime_cache=yes
22048 else
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #include <time.h>
22056 extern char **environ;
22057 unset_TZ ()
22059 char **from, **to;
22060 for (to = from = environ; (*to = *from); from++)
22061 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22062 to++;
22064 char TZ_GMT0[] = "TZ=GMT0";
22065 char TZ_PST8[] = "TZ=PST8";
22066 main()
22068 time_t now = time ((time_t *) 0);
22069 int hour_GMT0, hour_unset;
22070 if (putenv (TZ_GMT0) != 0)
22071 exit (1);
22072 hour_GMT0 = localtime (&now)->tm_hour;
22073 unset_TZ ();
22074 hour_unset = localtime (&now)->tm_hour;
22075 if (putenv (TZ_PST8) != 0)
22076 exit (1);
22077 if (localtime (&now)->tm_hour == hour_GMT0)
22078 exit (1);
22079 unset_TZ ();
22080 if (localtime (&now)->tm_hour != hour_unset)
22081 exit (1);
22082 exit (0);
22084 _ACEOF
22085 rm -f conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22096 { (case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_try") 2>&5
22102 ac_status=$?
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 emacs_cv_localtime_cache=no
22106 else
22107 echo "$as_me: program exited with status $ac_status" >&5
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 ( exit $ac_status )
22112 emacs_cv_localtime_cache=yes
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22118 else
22119 # If we lack tzset, report that localtime does not cache TZ,
22120 # since we can't invalidate the cache if we don't have tzset.
22121 emacs_cv_localtime_cache=no
22124 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22125 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22126 if test $emacs_cv_localtime_cache = yes; then
22128 cat >>confdefs.h <<\_ACEOF
22129 #define LOCALTIME_CACHE 1
22130 _ACEOF
22134 if test "x$HAVE_TIMEVAL" = xyes; then
22136 for ac_func in gettimeofday
22138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22142 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 else
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22152 #define $ac_func innocuous_$ac_func
22154 /* System header to define __stub macros and hopefully few prototypes,
22155 which can conflict with char $ac_func (); below.
22156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22157 <limits.h> exists even on freestanding compilers. */
22159 #ifdef __STDC__
22160 # include <limits.h>
22161 #else
22162 # include <assert.h>
22163 #endif
22165 #undef $ac_func
22167 /* Override any GCC internal prototype to avoid an error.
22168 Use char because int might match the return type of a GCC
22169 builtin and then its argument prototype would still apply. */
22170 #ifdef __cplusplus
22171 extern "C"
22172 #endif
22173 char $ac_func ();
22174 /* The GNU C library defines this for functions which it implements
22175 to always fail with ENOSYS. Some functions are actually named
22176 something starting with __ and the normal name is an alias. */
22177 #if defined __stub_$ac_func || defined __stub___$ac_func
22178 choke me
22179 #endif
22182 main ()
22184 return $ac_func ();
22186 return 0;
22188 _ACEOF
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_link") 2>conftest.er1
22197 ac_status=$?
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest$ac_exeext &&
22206 $as_test_x conftest$ac_exeext; then
22207 eval "$as_ac_var=yes"
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 eval "$as_ac_var=no"
22215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22216 conftest$ac_exeext conftest.$ac_ext
22218 ac_res=`eval echo '${'$as_ac_var'}'`
22219 { echo "$as_me:$LINENO: result: $ac_res" >&5
22220 echo "${ECHO_T}$ac_res" >&6; }
22221 if test `eval echo '${'$as_ac_var'}'` = yes; then
22222 cat >>confdefs.h <<_ACEOF
22223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22224 _ACEOF
22227 done
22229 if test $ac_cv_func_gettimeofday = yes; then
22230 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22231 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22232 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22242 #ifdef TIME_WITH_SYS_TIME
22243 #include <sys/time.h>
22244 #include <time.h>
22245 #else
22246 #ifdef HAVE_SYS_TIME_H
22247 #include <sys/time.h>
22248 #else
22249 #include <time.h>
22250 #endif
22251 #endif
22253 main ()
22255 struct timeval time;
22256 gettimeofday (&time, 0);
22258 return 0;
22260 _ACEOF
22261 rm -f conftest.$ac_objext
22262 if { (ac_try="$ac_compile"
22263 case "(($ac_try" in
22264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265 *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268 (eval "$ac_compile") 2>conftest.er1
22269 ac_status=$?
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest.$ac_objext; then
22278 emacs_cv_gettimeofday_two_arguments=yes
22279 else
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.$ac_ext >&5
22283 emacs_cv_gettimeofday_two_arguments=no
22286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22289 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22290 if test $emacs_cv_gettimeofday_two_arguments = no; then
22292 cat >>confdefs.h <<\_ACEOF
22293 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22294 _ACEOF
22300 ok_so_far=yes
22301 { echo "$as_me:$LINENO: checking for socket" >&5
22302 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22303 if test "${ac_cv_func_socket+set}" = set; then
22304 echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306 cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h. */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22314 #define socket innocuous_socket
22316 /* System header to define __stub macros and hopefully few prototypes,
22317 which can conflict with char socket (); below.
22318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22319 <limits.h> exists even on freestanding compilers. */
22321 #ifdef __STDC__
22322 # include <limits.h>
22323 #else
22324 # include <assert.h>
22325 #endif
22327 #undef socket
22329 /* Override any GCC internal prototype to avoid an error.
22330 Use char because int might match the return type of a GCC
22331 builtin and then its argument prototype would still apply. */
22332 #ifdef __cplusplus
22333 extern "C"
22334 #endif
22335 char socket ();
22336 /* The GNU C library defines this for functions which it implements
22337 to always fail with ENOSYS. Some functions are actually named
22338 something starting with __ and the normal name is an alias. */
22339 #if defined __stub_socket || defined __stub___socket
22340 choke me
22341 #endif
22344 main ()
22346 return socket ();
22348 return 0;
22350 _ACEOF
22351 rm -f conftest.$ac_objext conftest$ac_exeext
22352 if { (ac_try="$ac_link"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_link") 2>conftest.er1
22359 ac_status=$?
22360 grep -v '^ *+' conftest.er1 >conftest.err
22361 rm -f conftest.er1
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest$ac_exeext &&
22368 $as_test_x conftest$ac_exeext; then
22369 ac_cv_func_socket=yes
22370 else
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_cv_func_socket=no
22377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22378 conftest$ac_exeext conftest.$ac_ext
22380 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22381 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22382 if test $ac_cv_func_socket = yes; then
22384 else
22385 ok_so_far=no
22388 if test $ok_so_far = yes; then
22389 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22390 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22391 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22392 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22395 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22396 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22397 else
22398 # Is the header compilable?
22399 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22400 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 $ac_includes_default
22408 #include <netinet/in.h>
22409 _ACEOF
22410 rm -f conftest.$ac_objext
22411 if { (ac_try="$ac_compile"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_compile") 2>conftest.er1
22418 ac_status=$?
22419 grep -v '^ *+' conftest.er1 >conftest.err
22420 rm -f conftest.er1
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest.$ac_objext; then
22427 ac_header_compiler=yes
22428 else
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_header_compiler=no
22435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22437 echo "${ECHO_T}$ac_header_compiler" >&6; }
22439 # Is the header present?
22440 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22441 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22442 cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h. */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22448 #include <netinet/in.h>
22449 _ACEOF
22450 if { (ac_try="$ac_cpp conftest.$ac_ext"
22451 case "(($ac_try" in
22452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453 *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22457 ac_status=$?
22458 grep -v '^ *+' conftest.er1 >conftest.err
22459 rm -f conftest.er1
22460 cat conftest.err >&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } >/dev/null && {
22463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22464 test ! -s conftest.err
22465 }; then
22466 ac_header_preproc=yes
22467 else
22468 echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_header_preproc=no
22474 rm -f conftest.err conftest.$ac_ext
22475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22476 echo "${ECHO_T}$ac_header_preproc" >&6; }
22478 # So? What about this header?
22479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22480 yes:no: )
22481 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22482 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22484 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22485 ac_header_preproc=yes
22487 no:yes:* )
22488 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22489 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22491 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22493 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22495 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22497 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22499 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22502 esac
22503 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22504 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22505 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508 ac_cv_header_netinet_in_h=$ac_header_preproc
22510 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22511 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22514 if test $ac_cv_header_netinet_in_h = yes; then
22516 else
22517 ok_so_far=no
22522 if test $ok_so_far = yes; then
22523 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22524 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22525 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22526 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22530 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22531 else
22532 # Is the header compilable?
22533 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22534 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22535 cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h. */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 $ac_includes_default
22542 #include <arpa/inet.h>
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (ac_try="$ac_compile"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_compile") 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest.$ac_objext; then
22561 ac_header_compiler=yes
22562 else
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_header_compiler=no
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22571 echo "${ECHO_T}$ac_header_compiler" >&6; }
22573 # Is the header present?
22574 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22575 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h. */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 #include <arpa/inet.h>
22583 _ACEOF
22584 if { (ac_try="$ac_cpp conftest.$ac_ext"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22588 esac
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22591 ac_status=$?
22592 grep -v '^ *+' conftest.er1 >conftest.err
22593 rm -f conftest.er1
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } >/dev/null && {
22597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 }; then
22600 ac_header_preproc=yes
22601 else
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_header_preproc=no
22608 rm -f conftest.err conftest.$ac_ext
22609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22610 echo "${ECHO_T}$ac_header_preproc" >&6; }
22612 # So? What about this header?
22613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22614 yes:no: )
22615 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22616 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22618 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22619 ac_header_preproc=yes
22621 no:yes:* )
22622 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22623 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22624 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22625 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22627 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22628 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22629 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22631 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22633 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22636 esac
22637 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22638 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22639 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22642 ac_cv_header_arpa_inet_h=$ac_header_preproc
22644 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22645 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22648 if test $ac_cv_header_arpa_inet_h = yes; then
22650 else
22651 ok_so_far=no
22656 if test $ok_so_far = yes; then
22658 cat >>confdefs.h <<\_ACEOF
22659 #define HAVE_INET_SOCKETS 1
22660 _ACEOF
22665 for ac_header in sys/ioctl.h
22667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 ac_res=`eval echo '${'$as_ac_Header'}'`
22675 { echo "$as_me:$LINENO: result: $ac_res" >&5
22676 echo "${ECHO_T}$ac_res" >&6; }
22677 else
22678 # Is the header compilable?
22679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h. */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22688 #include <$ac_header>
22689 _ACEOF
22690 rm -f conftest.$ac_objext
22691 if { (ac_try="$ac_compile"
22692 case "(($ac_try" in
22693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694 *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697 (eval "$ac_compile") 2>conftest.er1
22698 ac_status=$?
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && {
22704 test -z "$ac_c_werror_flag" ||
22705 test ! -s conftest.err
22706 } && test -s conftest.$ac_objext; then
22707 ac_header_compiler=yes
22708 else
22709 echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22712 ac_header_compiler=no
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22717 echo "${ECHO_T}$ac_header_compiler" >&6; }
22719 # Is the header present?
22720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h. */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h. */
22728 #include <$ac_header>
22729 _ACEOF
22730 if { (ac_try="$ac_cpp conftest.$ac_ext"
22731 case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22734 esac
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22737 ac_status=$?
22738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } >/dev/null && {
22743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22744 test ! -s conftest.err
22745 }; then
22746 ac_header_preproc=yes
22747 else
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22751 ac_header_preproc=no
22754 rm -f conftest.err conftest.$ac_ext
22755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22756 echo "${ECHO_T}$ac_header_preproc" >&6; }
22758 # So? What about this header?
22759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22760 yes:no: )
22761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22765 ac_header_preproc=yes
22767 no:yes:* )
22768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22782 esac
22783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22786 echo $ECHO_N "(cached) $ECHO_C" >&6
22787 else
22788 eval "$as_ac_Header=\$ac_header_preproc"
22790 ac_res=`eval echo '${'$as_ac_Header'}'`
22791 { echo "$as_me:$LINENO: result: $ac_res" >&5
22792 echo "${ECHO_T}$ac_res" >&6; }
22795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22796 cat >>confdefs.h <<_ACEOF
22797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22798 _ACEOF
22802 done
22805 if test -f /usr/lpp/X11/bin/smt.exp; then
22807 cat >>confdefs.h <<\_ACEOF
22808 #define HAVE_AIX_SMT_EXP 1
22809 _ACEOF
22813 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22814 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22815 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22816 { echo "$as_me:$LINENO: result: yes" >&5
22817 echo "${ECHO_T}yes" >&6; }
22819 cat >>confdefs.h <<\_ACEOF
22820 #define HAVE_DEV_PTMX 1
22821 _ACEOF
22823 else
22824 { echo "$as_me:$LINENO: result: no" >&5
22825 echo "${ECHO_T}no" >&6; }
22828 { echo "$as_me:$LINENO: checking for pid_t" >&5
22829 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22830 if test "${ac_cv_type_pid_t+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h. */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 $ac_includes_default
22840 typedef pid_t ac__type_new_;
22842 main ()
22844 if ((ac__type_new_ *) 0)
22845 return 0;
22846 if (sizeof (ac__type_new_))
22847 return 0;
22849 return 0;
22851 _ACEOF
22852 rm -f conftest.$ac_objext
22853 if { (ac_try="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest.$ac_objext; then
22869 ac_cv_type_pid_t=yes
22870 else
22871 echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22874 ac_cv_type_pid_t=no
22877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22880 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22881 if test $ac_cv_type_pid_t = yes; then
22883 else
22885 cat >>confdefs.h <<_ACEOF
22886 #define pid_t int
22887 _ACEOF
22892 for ac_header in vfork.h
22894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22899 echo $ECHO_N "(cached) $ECHO_C" >&6
22901 ac_res=`eval echo '${'$as_ac_Header'}'`
22902 { echo "$as_me:$LINENO: result: $ac_res" >&5
22903 echo "${ECHO_T}$ac_res" >&6; }
22904 else
22905 # Is the header compilable?
22906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h. */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 $ac_includes_default
22915 #include <$ac_header>
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_compile") 2>conftest.er1
22925 ac_status=$?
22926 grep -v '^ *+' conftest.er1 >conftest.err
22927 rm -f conftest.er1
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest.$ac_objext; then
22934 ac_header_compiler=yes
22935 else
22936 echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22939 ac_header_compiler=no
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22944 echo "${ECHO_T}$ac_header_compiler" >&6; }
22946 # Is the header present?
22947 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22949 cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h. */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h. */
22955 #include <$ac_header>
22956 _ACEOF
22957 if { (ac_try="$ac_cpp conftest.$ac_ext"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22961 esac
22962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22964 ac_status=$?
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } >/dev/null && {
22970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22971 test ! -s conftest.err
22972 }; then
22973 ac_header_preproc=yes
22974 else
22975 echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ac_header_preproc=no
22981 rm -f conftest.err conftest.$ac_ext
22982 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22983 echo "${ECHO_T}$ac_header_preproc" >&6; }
22985 # So? What about this header?
22986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22987 yes:no: )
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22992 ac_header_preproc=yes
22994 no:yes:* )
22995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23009 esac
23010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 eval "$as_ac_Header=\$ac_header_preproc"
23017 ac_res=`eval echo '${'$as_ac_Header'}'`
23018 { echo "$as_me:$LINENO: result: $ac_res" >&5
23019 echo "${ECHO_T}$ac_res" >&6; }
23022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23023 cat >>confdefs.h <<_ACEOF
23024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23025 _ACEOF
23029 done
23033 for ac_func in fork vfork
23035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23049 #define $ac_func innocuous_$ac_func
23051 /* System header to define __stub macros and hopefully few prototypes,
23052 which can conflict with char $ac_func (); below.
23053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23054 <limits.h> exists even on freestanding compilers. */
23056 #ifdef __STDC__
23057 # include <limits.h>
23058 #else
23059 # include <assert.h>
23060 #endif
23062 #undef $ac_func
23064 /* Override any GCC internal prototype to avoid an error.
23065 Use char because int might match the return type of a GCC
23066 builtin and then its argument prototype would still apply. */
23067 #ifdef __cplusplus
23068 extern "C"
23069 #endif
23070 char $ac_func ();
23071 /* The GNU C library defines this for functions which it implements
23072 to always fail with ENOSYS. Some functions are actually named
23073 something starting with __ and the normal name is an alias. */
23074 #if defined __stub_$ac_func || defined __stub___$ac_func
23075 choke me
23076 #endif
23079 main ()
23081 return $ac_func ();
23083 return 0;
23085 _ACEOF
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (ac_try="$ac_link"
23088 case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23091 esac
23092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23093 (eval "$ac_link") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } && {
23100 test -z "$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 } && test -s conftest$ac_exeext &&
23103 $as_test_x conftest$ac_exeext; then
23104 eval "$as_ac_var=yes"
23105 else
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 eval "$as_ac_var=no"
23112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23113 conftest$ac_exeext conftest.$ac_ext
23115 ac_res=`eval echo '${'$as_ac_var'}'`
23116 { echo "$as_me:$LINENO: result: $ac_res" >&5
23117 echo "${ECHO_T}$ac_res" >&6; }
23118 if test `eval echo '${'$as_ac_var'}'` = yes; then
23119 cat >>confdefs.h <<_ACEOF
23120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23121 _ACEOF
23124 done
23126 if test "x$ac_cv_func_fork" = xyes; then
23127 { echo "$as_me:$LINENO: checking for working fork" >&5
23128 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23129 if test "${ac_cv_func_fork_works+set}" = set; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 else
23132 if test "$cross_compiling" = yes; then
23133 ac_cv_func_fork_works=cross
23134 else
23135 cat >conftest.$ac_ext <<_ACEOF
23136 /* confdefs.h. */
23137 _ACEOF
23138 cat confdefs.h >>conftest.$ac_ext
23139 cat >>conftest.$ac_ext <<_ACEOF
23140 /* end confdefs.h. */
23141 $ac_includes_default
23143 main ()
23146 /* By Ruediger Kuhlmann. */
23147 return fork () < 0;
23150 return 0;
23152 _ACEOF
23153 rm -f conftest$ac_exeext
23154 if { (ac_try="$ac_link"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_link") 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23164 { (case "(($ac_try" in
23165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23166 *) ac_try_echo=$ac_try;;
23167 esac
23168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23169 (eval "$ac_try") 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; }; then
23173 ac_cv_func_fork_works=yes
23174 else
23175 echo "$as_me: program exited with status $ac_status" >&5
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ( exit $ac_status )
23180 ac_cv_func_fork_works=no
23182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23187 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23188 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23190 else
23191 ac_cv_func_fork_works=$ac_cv_func_fork
23193 if test "x$ac_cv_func_fork_works" = xcross; then
23194 case $host in
23195 *-*-amigaos* | *-*-msdosdjgpp*)
23196 # Override, as these systems have only a dummy fork() stub
23197 ac_cv_func_fork_works=no
23200 ac_cv_func_fork_works=yes
23202 esac
23203 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23204 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23206 ac_cv_func_vfork_works=$ac_cv_func_vfork
23207 if test "x$ac_cv_func_vfork" = xyes; then
23208 { echo "$as_me:$LINENO: checking for working vfork" >&5
23209 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23210 if test "${ac_cv_func_vfork_works+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213 if test "$cross_compiling" = yes; then
23214 ac_cv_func_vfork_works=cross
23215 else
23216 cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h. */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h. */
23222 /* Thanks to Paul Eggert for this test. */
23223 $ac_includes_default
23224 #include <sys/wait.h>
23225 #ifdef HAVE_VFORK_H
23226 # include <vfork.h>
23227 #endif
23228 /* On some sparc systems, changes by the child to local and incoming
23229 argument registers are propagated back to the parent. The compiler
23230 is told about this with #include <vfork.h>, but some compilers
23231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23232 static variable whose address is put into a register that is
23233 clobbered by the vfork. */
23234 static void
23235 #ifdef __cplusplus
23236 sparc_address_test (int arg)
23237 # else
23238 sparc_address_test (arg) int arg;
23239 #endif
23241 static pid_t child;
23242 if (!child) {
23243 child = vfork ();
23244 if (child < 0) {
23245 perror ("vfork");
23246 _exit(2);
23248 if (!child) {
23249 arg = getpid();
23250 write(-1, "", 0);
23251 _exit (arg);
23257 main ()
23259 pid_t parent = getpid ();
23260 pid_t child;
23262 sparc_address_test (0);
23264 child = vfork ();
23266 if (child == 0) {
23267 /* Here is another test for sparc vfork register problems. This
23268 test uses lots of local variables, at least as many local
23269 variables as main has allocated so far including compiler
23270 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23271 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23272 reuse the register of parent for one of the local variables,
23273 since it will think that parent can't possibly be used any more
23274 in this routine. Assigning to the local variable will thus
23275 munge parent in the parent process. */
23276 pid_t
23277 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23278 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23279 /* Convince the compiler that p..p7 are live; otherwise, it might
23280 use the same hardware register for all 8 local variables. */
23281 if (p != p1 || p != p2 || p != p3 || p != p4
23282 || p != p5 || p != p6 || p != p7)
23283 _exit(1);
23285 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23286 from child file descriptors. If the child closes a descriptor
23287 before it execs or exits, this munges the parent's descriptor
23288 as well. Test for this by closing stdout in the child. */
23289 _exit(close(fileno(stdout)) != 0);
23290 } else {
23291 int status;
23292 struct stat st;
23294 while (wait(&status) != child)
23296 return (
23297 /* Was there some problem with vforking? */
23298 child < 0
23300 /* Did the child fail? (This shouldn't happen.) */
23301 || status
23303 /* Did the vfork/compiler bug occur? */
23304 || parent != getpid()
23306 /* Did the file descriptor bug occur? */
23307 || fstat(fileno(stdout), &st) != 0
23311 _ACEOF
23312 rm -f conftest$ac_exeext
23313 if { (ac_try="$ac_link"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_link") 2>&5
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23323 { (case "(($ac_try" in
23324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23325 *) ac_try_echo=$ac_try;;
23326 esac
23327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23328 (eval "$ac_try") 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 ac_cv_func_vfork_works=yes
23333 else
23334 echo "$as_me: program exited with status $ac_status" >&5
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 ( exit $ac_status )
23339 ac_cv_func_vfork_works=no
23341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23346 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23347 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23350 if test "x$ac_cv_func_fork_works" = xcross; then
23351 ac_cv_func_vfork_works=$ac_cv_func_vfork
23352 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23353 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23356 if test "x$ac_cv_func_vfork_works" = xyes; then
23358 cat >>confdefs.h <<\_ACEOF
23359 #define HAVE_WORKING_VFORK 1
23360 _ACEOF
23362 else
23364 cat >>confdefs.h <<\_ACEOF
23365 #define vfork fork
23366 _ACEOF
23369 if test "x$ac_cv_func_fork_works" = xyes; then
23371 cat >>confdefs.h <<\_ACEOF
23372 #define HAVE_WORKING_FORK 1
23373 _ACEOF
23378 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23379 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23380 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23381 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 else
23383 cat >conftest.$ac_ext <<_ACEOF
23384 /* confdefs.h. */
23385 _ACEOF
23386 cat confdefs.h >>conftest.$ac_ext
23387 cat >>conftest.$ac_ext <<_ACEOF
23388 /* end confdefs.h. */
23389 #include <langinfo.h>
23391 main ()
23393 char* cs = nl_langinfo(CODESET);
23395 return 0;
23397 _ACEOF
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (ac_try="$ac_link"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23403 esac
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_link") 2>conftest.er1
23406 ac_status=$?
23407 grep -v '^ *+' conftest.er1 >conftest.err
23408 rm -f conftest.er1
23409 cat conftest.err >&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest$ac_exeext &&
23415 $as_test_x conftest$ac_exeext; then
23416 emacs_cv_langinfo_codeset=yes
23417 else
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.$ac_ext >&5
23421 emacs_cv_langinfo_codeset=no
23424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23425 conftest$ac_exeext conftest.$ac_ext
23428 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23429 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23430 if test $emacs_cv_langinfo_codeset = yes; then
23432 cat >>confdefs.h <<\_ACEOF
23433 #define HAVE_LANGINFO_CODESET 1
23434 _ACEOF
23438 { echo "$as_me:$LINENO: checking for size_t" >&5
23439 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23440 if test "${ac_cv_type_size_t+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443 cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h. */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 $ac_includes_default
23450 typedef size_t ac__type_new_;
23452 main ()
23454 if ((ac__type_new_ *) 0)
23455 return 0;
23456 if (sizeof (ac__type_new_))
23457 return 0;
23459 return 0;
23461 _ACEOF
23462 rm -f conftest.$ac_objext
23463 if { (ac_try="$ac_compile"
23464 case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23467 esac
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_compile") 2>conftest.er1
23470 ac_status=$?
23471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && {
23476 test -z "$ac_c_werror_flag" ||
23477 test ! -s conftest.err
23478 } && test -s conftest.$ac_objext; then
23479 ac_cv_type_size_t=yes
23480 else
23481 echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23484 ac_cv_type_size_t=no
23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23489 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23490 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23491 if test $ac_cv_type_size_t = yes; then
23493 cat >>confdefs.h <<_ACEOF
23494 #define HAVE_SIZE_T 1
23495 _ACEOF
23501 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23502 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23503 if test "${ac_cv_type_mbstate_t+set}" = set; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506 cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h. */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 $ac_includes_default
23513 # include <wchar.h>
23515 main ()
23517 mbstate_t x; return sizeof x;
23519 return 0;
23521 _ACEOF
23522 rm -f conftest.$ac_objext
23523 if { (ac_try="$ac_compile"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527 esac
23528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23529 (eval "$ac_compile") 2>conftest.er1
23530 ac_status=$?
23531 grep -v '^ *+' conftest.er1 >conftest.err
23532 rm -f conftest.er1
23533 cat conftest.err >&5
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); } && {
23536 test -z "$ac_c_werror_flag" ||
23537 test ! -s conftest.err
23538 } && test -s conftest.$ac_objext; then
23539 ac_cv_type_mbstate_t=yes
23540 else
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23544 ac_cv_type_mbstate_t=no
23547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23550 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23551 if test $ac_cv_type_mbstate_t = yes; then
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_MBSTATE_T 1
23555 _ACEOF
23557 else
23559 cat >>confdefs.h <<\_ACEOF
23560 #define mbstate_t int
23561 _ACEOF
23565 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23566 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23567 if test "${emacs_cv_c_restrict+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570 cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h. */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23576 void fred (int *restrict x);
23578 main ()
23582 return 0;
23584 _ACEOF
23585 rm -f conftest.$ac_objext
23586 if { (ac_try="$ac_compile"
23587 case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_compile") 2>conftest.er1
23593 ac_status=$?
23594 grep -v '^ *+' conftest.er1 >conftest.err
23595 rm -f conftest.er1
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } && {
23599 test -z "$ac_c_werror_flag" ||
23600 test ! -s conftest.err
23601 } && test -s conftest.$ac_objext; then
23602 emacs_cv_c_restrict=yes
23603 else
23604 echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23607 cat >conftest.$ac_ext <<_ACEOF
23608 /* confdefs.h. */
23609 _ACEOF
23610 cat confdefs.h >>conftest.$ac_ext
23611 cat >>conftest.$ac_ext <<_ACEOF
23612 /* end confdefs.h. */
23613 void fred (int *__restrict x);
23615 main ()
23619 return 0;
23621 _ACEOF
23622 rm -f conftest.$ac_objext
23623 if { (ac_try="$ac_compile"
23624 case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629 (eval "$ac_compile") 2>conftest.er1
23630 ac_status=$?
23631 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1
23633 cat conftest.err >&5
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && {
23636 test -z "$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 } && test -s conftest.$ac_objext; then
23639 emacs_cv_c_restrict=__restrict
23640 else
23641 echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23644 emacs_cv_c_restrict=no
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23652 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23653 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23654 case "$emacs_cv_c_restrict" in
23655 yes) emacs_restrict=restrict;;
23656 no) emacs_restrict="";;
23657 *) emacs_restrict="$emacs_cv_c_restrict";;
23658 esac
23659 if test "$emacs_restrict" != __restrict; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define __restrict $emacs_restrict
23663 _ACEOF
23667 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23668 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23669 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23670 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 else
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h. */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23678 void fred (int x[__restrict]);
23680 main ()
23684 return 0;
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691 *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694 (eval "$ac_compile") 2>conftest.er1
23695 ac_status=$?
23696 grep -v '^ *+' conftest.er1 >conftest.err
23697 rm -f conftest.er1
23698 cat conftest.err >&5
23699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700 (exit $ac_status); } && {
23701 test -z "$ac_c_werror_flag" ||
23702 test ! -s conftest.err
23703 } && test -s conftest.$ac_objext; then
23704 emacs_cv_c_restrict_arr=yes
23705 else
23706 echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 emacs_cv_c_restrict_arr=no
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23714 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23715 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23716 if test "$emacs_cv_c_restrict_arr" = yes; then
23718 cat >>confdefs.h <<\_ACEOF
23719 #define __restrict_arr __restrict
23720 _ACEOF
23726 # Set up the CFLAGS for real compilation, so we can substitute it.
23727 CFLAGS="$REAL_CFLAGS"
23728 CPPFLAGS="$REAL_CPPFLAGS"
23730 #### Find out which version of Emacs this is.
23731 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23732 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23733 if test x"${version}" = x; then
23734 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23735 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23736 { (exit 1); exit 1; }; }
23739 ### Specify what sort of things we'll be editing into Makefile and config.h.
23740 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23776 cat >>confdefs.h <<_ACEOF
23777 #define EMACS_CONFIGURATION "${canonical}"
23778 _ACEOF
23781 cat >>confdefs.h <<_ACEOF
23782 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23783 _ACEOF
23786 cat >>confdefs.h <<_ACEOF
23787 #define config_machfile "${machfile}"
23788 _ACEOF
23791 cat >>confdefs.h <<_ACEOF
23792 #define config_opsysfile "${opsysfile}"
23793 _ACEOF
23796 cat >>confdefs.h <<_ACEOF
23797 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23798 _ACEOF
23801 cat >>confdefs.h <<_ACEOF
23802 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23803 _ACEOF
23806 cat >>confdefs.h <<_ACEOF
23807 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23808 _ACEOF
23811 cat >>confdefs.h <<_ACEOF
23812 #define UNEXEC_SRC ${UNEXEC_SRC}
23813 _ACEOF
23816 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define HAVE_X_WINDOWS 1
23820 _ACEOF
23823 if test "${USE_X_TOOLKIT}" != "none" ; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define USE_X_TOOLKIT 1
23827 _ACEOF
23830 if test "${HAVE_X11}" = "yes" ; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_X11 1
23834 _ACEOF
23837 if test "${HAVE_MENUS}" = "yes" ; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define HAVE_MENUS 1
23841 _ACEOF
23844 if test "${GNU_MALLOC}" = "yes" ; then
23846 cat >>confdefs.h <<\_ACEOF
23847 #define GNU_MALLOC 1
23848 _ACEOF
23851 if test "${REL_ALLOC}" = "yes" ; then
23853 cat >>confdefs.h <<\_ACEOF
23854 #define REL_ALLOC 1
23855 _ACEOF
23864 #### Report on what we decided to do.
23865 #### Report GTK as a toolkit, even if it doesn't use Xt.
23866 #### It makes printing result more understandable as using GTK sets
23867 #### toolkit_scroll_bars to yes by default.
23868 if test "${HAVE_GTK}" = "yes"; then
23869 USE_X_TOOLKIT=GTK
23872 echo "
23873 Configured for \`${canonical}'.
23875 Where should the build process find the source code? ${srcdir}
23876 What operating system and machine description files should Emacs use?
23877 \`${opsysfile}' and \`${machfile}'
23878 What compiler should emacs be built with? ${CC} ${CFLAGS}
23879 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23880 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23881 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23882 What window system should Emacs use? ${window_system}
23883 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23885 if test -n "${x_includes}"; then
23886 echo " Where do we find X Windows header files? ${x_includes}"
23887 else
23888 echo " Where do we find X Windows header files? Standard dirs"
23890 if test -n "${x_libraries}"; then
23891 echo " Where do we find X Windows libraries? ${x_libraries}"
23892 else
23893 echo " Where do we find X Windows libraries? Standard dirs"
23896 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23897 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23898 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23899 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23900 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23901 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23902 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23903 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23904 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23905 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23907 if test "${USE_FONT_BACKEND}" = "yes"; then
23908 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23909 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23910 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23911 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23913 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23914 echo
23916 if test $USE_XASSERTS = yes; then
23917 echo " Compiling with asserts turned on."
23918 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23921 if test $USE_SYNC_INPUT = yes; then
23922 echo " Compiling with sync input."
23923 CPPFLAGS="$CPPFLAGS -DSYNC_INPUT=1"
23926 echo
23928 if test "$USE_X_TOOLKIT" = GTK; then
23929 case "$canonical" in
23930 *cygwin*)
23931 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23932 will probably get a crash on startup. If this happens, please use another
23933 toolkit for Emacs. See etc/PROBLEMS for more information."
23935 esac
23939 if test "$HAVE_CARBON" = "yes"; then
23940 echo
23941 echo "Warning: The Mac Carbon port is currently unsupported and has
23942 known problems. It is not recommended for use by non-developers.
23943 Read the emacs-devel archives for more information."
23944 echo
23947 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23948 echo "D-Bus integration has been tested for GNU/Linux only."
23949 echo
23953 # Remove any trailing slashes in these variables.
23954 test "${prefix}" != NONE &&
23955 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23956 test "${exec_prefix}" != NONE &&
23957 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23959 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23960 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23961 ## from Makefile.c can correctly provide the arg `-traditional' to the
23962 ## C preprocessor.
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h. */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 yes..yes
23971 _ACEOF
23972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23973 $EGREP "yes..yes" >/dev/null 2>&1; then
23974 CPP_NEED_TRADITIONAL=no
23975 else
23976 CPP_NEED_TRADITIONAL=yes
23978 rm -f conftest*
23981 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"
23983 ac_config_commands="$ac_config_commands default"
23985 cat >confcache <<\_ACEOF
23986 # This file is a shell script that caches the results of configure
23987 # tests run on this system so they can be shared between configure
23988 # scripts and configure runs, see configure's option --config-cache.
23989 # It is not useful on other systems. If it contains results you don't
23990 # want to keep, you may remove or edit it.
23992 # config.status only pays attention to the cache file if you give it
23993 # the --recheck option to rerun configure.
23995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23997 # following values.
23999 _ACEOF
24001 # The following way of writing the cache mishandles newlines in values,
24002 # but we know of no workaround that is simple, portable, and efficient.
24003 # So, we kill variables containing newlines.
24004 # Ultrix sh set writes to stderr and can't be redirected directly,
24005 # and sets the high bit in the cache file unless we assign to the vars.
24007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24008 eval ac_val=\$$ac_var
24009 case $ac_val in #(
24010 *${as_nl}*)
24011 case $ac_var in #(
24012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24014 esac
24015 case $ac_var in #(
24016 _ | IFS | as_nl) ;; #(
24017 *) $as_unset $ac_var ;;
24018 esac ;;
24019 esac
24020 done
24022 (set) 2>&1 |
24023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24024 *${as_nl}ac_space=\ *)
24025 # `set' does not quote correctly, so add quotes (double-quote
24026 # substitution turns \\\\ into \\, and sed turns \\ into \).
24027 sed -n \
24028 "s/'/'\\\\''/g;
24029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24030 ;; #(
24032 # `set' quotes correctly as required by POSIX, so do not add quotes.
24033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24035 esac |
24036 sort
24038 sed '
24039 /^ac_cv_env_/b end
24040 t clear
24041 :clear
24042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24043 t end
24044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24045 :end' >>confcache
24046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24047 if test -w "$cache_file"; then
24048 test "x$cache_file" != "x/dev/null" &&
24049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24050 echo "$as_me: updating cache $cache_file" >&6;}
24051 cat confcache >$cache_file
24052 else
24053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24057 rm -f confcache
24059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24060 # Let make expand exec_prefix.
24061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24063 DEFS=-DHAVE_CONFIG_H
24065 ac_libobjs=
24066 ac_ltlibobjs=
24067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24068 # 1. Remove the extension, and $U if already installed.
24069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24070 ac_i=`echo "$ac_i" | sed "$ac_script"`
24071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24072 # will be set to the directory where LIBOBJS objects are built.
24073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24075 done
24076 LIBOBJS=$ac_libobjs
24078 LTLIBOBJS=$ac_ltlibobjs
24082 : ${CONFIG_STATUS=./config.status}
24083 ac_clean_files_save=$ac_clean_files
24084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24085 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24086 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24087 cat >$CONFIG_STATUS <<_ACEOF
24088 #! $SHELL
24089 # Generated by $as_me.
24090 # Run this file to recreate the current configuration.
24091 # Compiler output produced by configure, useful for debugging
24092 # configure, is in config.log if it exists.
24094 debug=false
24095 ac_cs_recheck=false
24096 ac_cs_silent=false
24097 SHELL=\${CONFIG_SHELL-$SHELL}
24098 _ACEOF
24100 cat >>$CONFIG_STATUS <<\_ACEOF
24101 ## --------------------- ##
24102 ## M4sh Initialization. ##
24103 ## --------------------- ##
24105 # Be more Bourne compatible
24106 DUALCASE=1; export DUALCASE # for MKS sh
24107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24108 emulate sh
24109 NULLCMD=:
24110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24111 # is contrary to our usage. Disable this feature.
24112 alias -g '${1+"$@"}'='"$@"'
24113 setopt NO_GLOB_SUBST
24114 else
24115 case `(set -o) 2>/dev/null` in
24116 *posix*) set -o posix ;;
24117 esac
24124 # PATH needs CR
24125 # Avoid depending upon Character Ranges.
24126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24129 as_cr_digits='0123456789'
24130 as_cr_alnum=$as_cr_Letters$as_cr_digits
24132 # The user is always right.
24133 if test "${PATH_SEPARATOR+set}" != set; then
24134 echo "#! /bin/sh" >conf$$.sh
24135 echo "exit 0" >>conf$$.sh
24136 chmod +x conf$$.sh
24137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24138 PATH_SEPARATOR=';'
24139 else
24140 PATH_SEPARATOR=:
24142 rm -f conf$$.sh
24145 # Support unset when possible.
24146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24147 as_unset=unset
24148 else
24149 as_unset=false
24153 # IFS
24154 # We need space, tab and new line, in precisely that order. Quoting is
24155 # there to prevent editors from complaining about space-tab.
24156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24157 # splitting by setting IFS to empty value.)
24158 as_nl='
24160 IFS=" "" $as_nl"
24162 # Find who we are. Look in the path if we contain no directory separator.
24163 case $0 in
24164 *[\\/]* ) as_myself=$0 ;;
24165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24166 for as_dir in $PATH
24168 IFS=$as_save_IFS
24169 test -z "$as_dir" && as_dir=.
24170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24171 done
24172 IFS=$as_save_IFS
24175 esac
24176 # We did not find ourselves, most probably we were run as `sh COMMAND'
24177 # in which case we are not to be found in the path.
24178 if test "x$as_myself" = x; then
24179 as_myself=$0
24181 if test ! -f "$as_myself"; then
24182 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24183 { (exit 1); exit 1; }
24186 # Work around bugs in pre-3.0 UWIN ksh.
24187 for as_var in ENV MAIL MAILPATH
24188 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24189 done
24190 PS1='$ '
24191 PS2='> '
24192 PS4='+ '
24194 # NLS nuisances.
24195 for as_var in \
24196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24198 LC_TELEPHONE LC_TIME
24200 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24201 eval $as_var=C; export $as_var
24202 else
24203 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24205 done
24207 # Required to use basename.
24208 if expr a : '\(a\)' >/dev/null 2>&1 &&
24209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24210 as_expr=expr
24211 else
24212 as_expr=false
24215 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24216 as_basename=basename
24217 else
24218 as_basename=false
24222 # Name of the executable.
24223 as_me=`$as_basename -- "$0" ||
24224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24225 X"$0" : 'X\(//\)$' \| \
24226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24227 echo X/"$0" |
24228 sed '/^.*\/\([^/][^/]*\)\/*$/{
24229 s//\1/
24232 /^X\/\(\/\/\)$/{
24233 s//\1/
24236 /^X\/\(\/\).*/{
24237 s//\1/
24240 s/.*/./; q'`
24242 # CDPATH.
24243 $as_unset CDPATH
24247 as_lineno_1=$LINENO
24248 as_lineno_2=$LINENO
24249 test "x$as_lineno_1" != "x$as_lineno_2" &&
24250 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24253 # uniformly replaced by the line number. The first 'sed' inserts a
24254 # line-number line after each line using $LINENO; the second 'sed'
24255 # does the real work. The second script uses 'N' to pair each
24256 # line-number line with the line containing $LINENO, and appends
24257 # trailing '-' during substitution so that $LINENO is not a special
24258 # case at line end.
24259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24260 # scripts with optimization help from Paolo Bonzini. Blame Lee
24261 # E. McMahon (1931-1989) for sed's syntax. :-)
24262 sed -n '
24264 /[$]LINENO/=
24265 ' <$as_myself |
24266 sed '
24267 s/[$]LINENO.*/&-/
24268 t lineno
24270 :lineno
24272 :loop
24273 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24274 t loop
24275 s/-\n.*//
24276 ' >$as_me.lineno &&
24277 chmod +x "$as_me.lineno" ||
24278 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24279 { (exit 1); exit 1; }; }
24281 # Don't try to exec as it changes $[0], causing all sort of problems
24282 # (the dirname of $[0] is not the place where we might find the
24283 # original and so on. Autoconf is especially sensitive to this).
24284 . "./$as_me.lineno"
24285 # Exit status is that of the last command.
24286 exit
24290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24291 as_dirname=dirname
24292 else
24293 as_dirname=false
24296 ECHO_C= ECHO_N= ECHO_T=
24297 case `echo -n x` in
24298 -n*)
24299 case `echo 'x\c'` in
24300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24301 *) ECHO_C='\c';;
24302 esac;;
24304 ECHO_N='-n';;
24305 esac
24307 if expr a : '\(a\)' >/dev/null 2>&1 &&
24308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24309 as_expr=expr
24310 else
24311 as_expr=false
24314 rm -f conf$$ conf$$.exe conf$$.file
24315 if test -d conf$$.dir; then
24316 rm -f conf$$.dir/conf$$.file
24317 else
24318 rm -f conf$$.dir
24319 mkdir conf$$.dir
24321 echo >conf$$.file
24322 if ln -s conf$$.file conf$$ 2>/dev/null; then
24323 as_ln_s='ln -s'
24324 # ... but there are two gotchas:
24325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24327 # In both cases, we have to default to `cp -p'.
24328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24329 as_ln_s='cp -p'
24330 elif ln conf$$.file conf$$ 2>/dev/null; then
24331 as_ln_s=ln
24332 else
24333 as_ln_s='cp -p'
24335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24336 rmdir conf$$.dir 2>/dev/null
24338 if mkdir -p . 2>/dev/null; then
24339 as_mkdir_p=:
24340 else
24341 test -d ./-p && rmdir ./-p
24342 as_mkdir_p=false
24345 if test -x / >/dev/null 2>&1; then
24346 as_test_x='test -x'
24347 else
24348 if ls -dL / >/dev/null 2>&1; then
24349 as_ls_L_option=L
24350 else
24351 as_ls_L_option=
24353 as_test_x='
24354 eval sh -c '\''
24355 if test -d "$1"; then
24356 test -d "$1/.";
24357 else
24358 case $1 in
24359 -*)set "./$1";;
24360 esac;
24361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24362 ???[sx]*):;;*)false;;esac;fi
24363 '\'' sh
24366 as_executable_p=$as_test_x
24368 # Sed expression to map a string onto a valid CPP name.
24369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24371 # Sed expression to map a string onto a valid variable name.
24372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24375 exec 6>&1
24377 # Save the log message, to keep $[0] and so on meaningful, and to
24378 # report actual input values of CONFIG_FILES etc. instead of their
24379 # values after options handling.
24380 ac_log="
24381 This file was extended by emacs $as_me 23.0.60, which was
24382 generated by GNU Autoconf 2.61. Invocation command line was
24384 CONFIG_FILES = $CONFIG_FILES
24385 CONFIG_HEADERS = $CONFIG_HEADERS
24386 CONFIG_LINKS = $CONFIG_LINKS
24387 CONFIG_COMMANDS = $CONFIG_COMMANDS
24388 $ $0 $@
24390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24393 _ACEOF
24395 cat >>$CONFIG_STATUS <<_ACEOF
24396 # Files that config.status was made for.
24397 config_files="$ac_config_files"
24398 config_headers="$ac_config_headers"
24399 config_commands="$ac_config_commands"
24401 _ACEOF
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24404 ac_cs_usage="\
24405 \`$as_me' instantiates files from templates according to the
24406 current configuration.
24408 Usage: $0 [OPTIONS] [FILE]...
24410 -h, --help print this help, then exit
24411 -V, --version print version number and configuration settings, then exit
24412 -q, --quiet do not print progress messages
24413 -d, --debug don't remove temporary files
24414 --recheck update $as_me by reconfiguring in the same conditions
24415 --file=FILE[:TEMPLATE]
24416 instantiate the configuration file FILE
24417 --header=FILE[:TEMPLATE]
24418 instantiate the configuration header FILE
24420 Configuration files:
24421 $config_files
24423 Configuration headers:
24424 $config_headers
24426 Configuration commands:
24427 $config_commands
24429 Report bugs to <bug-autoconf@gnu.org>."
24431 _ACEOF
24432 cat >>$CONFIG_STATUS <<_ACEOF
24433 ac_cs_version="\\
24434 emacs config.status 23.0.60
24435 configured by $0, generated by GNU Autoconf 2.61,
24436 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24438 Copyright (C) 2006 Free Software Foundation, Inc.
24439 This config.status script is free software; the Free Software Foundation
24440 gives unlimited permission to copy, distribute and modify it."
24442 ac_pwd='$ac_pwd'
24443 srcdir='$srcdir'
24444 INSTALL='$INSTALL'
24445 _ACEOF
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 # If no file are specified by the user, then we need to provide default
24449 # value. By we need to know if files were specified by the user.
24450 ac_need_defaults=:
24451 while test $# != 0
24453 case $1 in
24454 --*=*)
24455 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24456 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24457 ac_shift=:
24460 ac_option=$1
24461 ac_optarg=$2
24462 ac_shift=shift
24464 esac
24466 case $ac_option in
24467 # Handling of the options.
24468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24469 ac_cs_recheck=: ;;
24470 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24471 echo "$ac_cs_version"; exit ;;
24472 --debug | --debu | --deb | --de | --d | -d )
24473 debug=: ;;
24474 --file | --fil | --fi | --f )
24475 $ac_shift
24476 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24477 ac_need_defaults=false;;
24478 --header | --heade | --head | --hea )
24479 $ac_shift
24480 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24481 ac_need_defaults=false;;
24482 --he | --h)
24483 # Conflict between --help and --header
24484 { echo "$as_me: error: ambiguous option: $1
24485 Try \`$0 --help' for more information." >&2
24486 { (exit 1); exit 1; }; };;
24487 --help | --hel | -h )
24488 echo "$ac_cs_usage"; exit ;;
24489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24491 ac_cs_silent=: ;;
24493 # This is an error.
24494 -*) { echo "$as_me: error: unrecognized option: $1
24495 Try \`$0 --help' for more information." >&2
24496 { (exit 1); exit 1; }; } ;;
24498 *) ac_config_targets="$ac_config_targets $1"
24499 ac_need_defaults=false ;;
24501 esac
24502 shift
24503 done
24505 ac_configure_extra_args=
24507 if $ac_cs_silent; then
24508 exec 6>/dev/null
24509 ac_configure_extra_args="$ac_configure_extra_args --silent"
24512 _ACEOF
24513 cat >>$CONFIG_STATUS <<_ACEOF
24514 if \$ac_cs_recheck; then
24515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24516 CONFIG_SHELL=$SHELL
24517 export CONFIG_SHELL
24518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24521 _ACEOF
24522 cat >>$CONFIG_STATUS <<\_ACEOF
24523 exec 5>>config.log
24525 echo
24526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24527 ## Running $as_me. ##
24528 _ASBOX
24529 echo "$ac_log"
24530 } >&5
24532 _ACEOF
24533 cat >>$CONFIG_STATUS <<_ACEOF
24535 # INIT-COMMANDS
24537 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24539 _ACEOF
24541 cat >>$CONFIG_STATUS <<\_ACEOF
24543 # Handling of arguments.
24544 for ac_config_target in $ac_config_targets
24546 case $ac_config_target in
24547 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24549 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24550 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24551 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24552 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24553 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24554 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24555 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24556 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24557 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24558 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24559 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24563 { (exit 1); exit 1; }; };;
24564 esac
24565 done
24568 # If the user did not use the arguments to specify the items to instantiate,
24569 # then the envvar interface is used. Set only those that are not.
24570 # We use the long form for the default assignment because of an extremely
24571 # bizarre bug on SunOS 4.1.3.
24572 if $ac_need_defaults; then
24573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24578 # Have a temporary directory for convenience. Make it in the build tree
24579 # simply because there is no reason against having it here, and in addition,
24580 # creating and moving files from /tmp can sometimes cause problems.
24581 # Hook for its removal unless debugging.
24582 # Note that there is a small window in which the directory will not be cleaned:
24583 # after its creation but before its name has been assigned to `$tmp'.
24584 $debug ||
24586 tmp=
24587 trap 'exit_status=$?
24588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24590 trap '{ (exit 1); exit 1; }' 1 2 13 15
24592 # Create a (secure) tmp directory for tmp files.
24595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24596 test -n "$tmp" && test -d "$tmp"
24597 } ||
24599 tmp=./conf$$-$RANDOM
24600 (umask 077 && mkdir "$tmp")
24601 } ||
24603 echo "$me: cannot create a temporary directory in ." >&2
24604 { (exit 1); exit 1; }
24608 # Set up the sed scripts for CONFIG_FILES section.
24611 # No need to generate the scripts if there are no CONFIG_FILES.
24612 # This happens for instance when ./config.status config.h
24613 if test -n "$CONFIG_FILES"; then
24615 _ACEOF
24619 ac_delim='%!_!# '
24620 for ac_last_try in false false false false false :; do
24621 cat >conf$$subs.sed <<_ACEOF
24622 SHELL!$SHELL$ac_delim
24623 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24624 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24625 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24626 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24627 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24628 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24629 exec_prefix!$exec_prefix$ac_delim
24630 prefix!$prefix$ac_delim
24631 program_transform_name!$program_transform_name$ac_delim
24632 bindir!$bindir$ac_delim
24633 sbindir!$sbindir$ac_delim
24634 libexecdir!$libexecdir$ac_delim
24635 datarootdir!$datarootdir$ac_delim
24636 datadir!$datadir$ac_delim
24637 sysconfdir!$sysconfdir$ac_delim
24638 sharedstatedir!$sharedstatedir$ac_delim
24639 localstatedir!$localstatedir$ac_delim
24640 includedir!$includedir$ac_delim
24641 oldincludedir!$oldincludedir$ac_delim
24642 docdir!$docdir$ac_delim
24643 infodir!$infodir$ac_delim
24644 htmldir!$htmldir$ac_delim
24645 dvidir!$dvidir$ac_delim
24646 pdfdir!$pdfdir$ac_delim
24647 psdir!$psdir$ac_delim
24648 libdir!$libdir$ac_delim
24649 localedir!$localedir$ac_delim
24650 mandir!$mandir$ac_delim
24651 DEFS!$DEFS$ac_delim
24652 ECHO_C!$ECHO_C$ac_delim
24653 ECHO_N!$ECHO_N$ac_delim
24654 ECHO_T!$ECHO_T$ac_delim
24655 LIBS!$LIBS$ac_delim
24656 build_alias!$build_alias$ac_delim
24657 host_alias!$host_alias$ac_delim
24658 target_alias!$target_alias$ac_delim
24659 MAINT!$MAINT$ac_delim
24660 build!$build$ac_delim
24661 build_cpu!$build_cpu$ac_delim
24662 build_vendor!$build_vendor$ac_delim
24663 build_os!$build_os$ac_delim
24664 host!$host$ac_delim
24665 host_cpu!$host_cpu$ac_delim
24666 host_vendor!$host_vendor$ac_delim
24667 host_os!$host_os$ac_delim
24668 CC!$CC$ac_delim
24669 CFLAGS!$CFLAGS$ac_delim
24670 LDFLAGS!$LDFLAGS$ac_delim
24671 CPPFLAGS!$CPPFLAGS$ac_delim
24672 ac_ct_CC!$ac_ct_CC$ac_delim
24673 EXEEXT!$EXEEXT$ac_delim
24674 OBJEXT!$OBJEXT$ac_delim
24675 CPP!$CPP$ac_delim
24676 GREP!$GREP$ac_delim
24677 EGREP!$EGREP$ac_delim
24678 LN_S!$LN_S$ac_delim
24679 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24680 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24681 INSTALL_DATA!$INSTALL_DATA$ac_delim
24682 RANLIB!$RANLIB$ac_delim
24683 INSTALL_INFO!$INSTALL_INFO$ac_delim
24684 GZIP_PROG!$GZIP_PROG$ac_delim
24685 MAKEINFO!$MAKEINFO$ac_delim
24686 LIBSOUND!$LIBSOUND$ac_delim
24687 PKG_CONFIG!$PKG_CONFIG$ac_delim
24688 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24689 ALSA_LIBS!$ALSA_LIBS$ac_delim
24690 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24691 SET_MAKE!$SET_MAKE$ac_delim
24692 XMKMF!$XMKMF$ac_delim
24693 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24694 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24695 RSVG_LIBS!$RSVG_LIBS$ac_delim
24696 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24697 GTK_LIBS!$GTK_LIBS$ac_delim
24698 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24699 DBUS_LIBS!$DBUS_LIBS$ac_delim
24700 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24701 XFT_LIBS!$XFT_LIBS$ac_delim
24702 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24703 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24704 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24705 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24706 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24707 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24708 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24709 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24710 ALLOCA!$ALLOCA$ac_delim
24711 liblockfile!$liblockfile$ac_delim
24712 LIBOBJS!$LIBOBJS$ac_delim
24713 NEED_SETGID!$NEED_SETGID$ac_delim
24714 KMEM_GROUP!$KMEM_GROUP$ac_delim
24715 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24716 GETOPT_H!$GETOPT_H$ac_delim
24717 GETOPTOBJS!$GETOPTOBJS$ac_delim
24718 version!$version$ac_delim
24719 _ACEOF
24721 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24722 break
24723 elif $ac_last_try; then
24724 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24725 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24726 { (exit 1); exit 1; }; }
24727 else
24728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24730 done
24732 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24733 if test -n "$ac_eof"; then
24734 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24735 ac_eof=`expr $ac_eof + 1`
24738 cat >>$CONFIG_STATUS <<_ACEOF
24739 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24741 _ACEOF
24742 sed '
24743 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24744 s/^/s,@/; s/!/@,|#_!!_#|/
24747 s/'"$ac_delim"'$/,g/; t
24748 s/$/\\/; p
24749 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24750 ' >>$CONFIG_STATUS <conf$$subs.sed
24751 rm -f conf$$subs.sed
24752 cat >>$CONFIG_STATUS <<_ACEOF
24753 CEOF$ac_eof
24754 _ACEOF
24757 ac_delim='%!_!# '
24758 for ac_last_try in false false false false false :; do
24759 cat >conf$$subs.sed <<_ACEOF
24760 configuration!$configuration$ac_delim
24761 canonical!$canonical$ac_delim
24762 srcdir!$srcdir$ac_delim
24763 lispdir!$lispdir$ac_delim
24764 locallisppath!$locallisppath$ac_delim
24765 lisppath!$lisppath$ac_delim
24766 x_default_search_path!$x_default_search_path$ac_delim
24767 etcdir!$etcdir$ac_delim
24768 archlibdir!$archlibdir$ac_delim
24769 bitmapdir!$bitmapdir$ac_delim
24770 gamedir!$gamedir$ac_delim
24771 gameuser!$gameuser$ac_delim
24772 c_switch_system!$c_switch_system$ac_delim
24773 c_switch_machine!$c_switch_machine$ac_delim
24774 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24775 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24776 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24777 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24778 machfile!$machfile$ac_delim
24779 opsysfile!$opsysfile$ac_delim
24780 carbon_appdir!$carbon_appdir$ac_delim
24781 LTLIBOBJS!$LTLIBOBJS$ac_delim
24782 _ACEOF
24784 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24785 break
24786 elif $ac_last_try; then
24787 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24788 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24789 { (exit 1); exit 1; }; }
24790 else
24791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24793 done
24795 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24796 if test -n "$ac_eof"; then
24797 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24798 ac_eof=`expr $ac_eof + 1`
24801 cat >>$CONFIG_STATUS <<_ACEOF
24802 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24804 _ACEOF
24805 sed '
24806 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24807 s/^/s,@/; s/!/@,|#_!!_#|/
24810 s/'"$ac_delim"'$/,g/; t
24811 s/$/\\/; p
24812 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24813 ' >>$CONFIG_STATUS <conf$$subs.sed
24814 rm -f conf$$subs.sed
24815 cat >>$CONFIG_STATUS <<_ACEOF
24816 :end
24817 s/|#_!!_#|//g
24818 CEOF$ac_eof
24819 _ACEOF
24822 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24823 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24824 # trailing colons and then remove the whole line if VPATH becomes empty
24825 # (actually we leave an empty line to preserve line numbers).
24826 if test "x$srcdir" = x.; then
24827 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24828 s/:*\$(srcdir):*/:/
24829 s/:*\${srcdir}:*/:/
24830 s/:*@srcdir@:*/:/
24831 s/^\([^=]*=[ ]*\):*/\1/
24832 s/:*$//
24833 s/^[^=]*=[ ]*$//
24837 cat >>$CONFIG_STATUS <<\_ACEOF
24838 fi # test -n "$CONFIG_FILES"
24841 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24843 case $ac_tag in
24844 :[FHLC]) ac_mode=$ac_tag; continue;;
24845 esac
24846 case $ac_mode$ac_tag in
24847 :[FHL]*:*);;
24848 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24849 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24850 { (exit 1); exit 1; }; };;
24851 :[FH]-) ac_tag=-:-;;
24852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24853 esac
24854 ac_save_IFS=$IFS
24855 IFS=:
24856 set x $ac_tag
24857 IFS=$ac_save_IFS
24858 shift
24859 ac_file=$1
24860 shift
24862 case $ac_mode in
24863 :L) ac_source=$1;;
24864 :[FH])
24865 ac_file_inputs=
24866 for ac_f
24868 case $ac_f in
24869 -) ac_f="$tmp/stdin";;
24870 *) # Look for the file first in the build tree, then in the source tree
24871 # (if the path is not absolute). The absolute path cannot be DOS-style,
24872 # because $ac_f cannot contain `:'.
24873 test -f "$ac_f" ||
24874 case $ac_f in
24875 [\\/$]*) false;;
24876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24877 esac ||
24878 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24879 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24880 { (exit 1); exit 1; }; };;
24881 esac
24882 ac_file_inputs="$ac_file_inputs $ac_f"
24883 done
24885 # Let's still pretend it is `configure' which instantiates (i.e., don't
24886 # use $as_me), people would be surprised to read:
24887 # /* config.h. Generated by config.status. */
24888 configure_input="Generated from "`IFS=:
24889 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24890 if test x"$ac_file" != x-; then
24891 configure_input="$ac_file. $configure_input"
24892 { echo "$as_me:$LINENO: creating $ac_file" >&5
24893 echo "$as_me: creating $ac_file" >&6;}
24896 case $ac_tag in
24897 *:-:* | *:-) cat >"$tmp/stdin";;
24898 esac
24900 esac
24902 ac_dir=`$as_dirname -- "$ac_file" ||
24903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24904 X"$ac_file" : 'X\(//\)[^/]' \| \
24905 X"$ac_file" : 'X\(//\)$' \| \
24906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24907 echo X"$ac_file" |
24908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24909 s//\1/
24912 /^X\(\/\/\)[^/].*/{
24913 s//\1/
24916 /^X\(\/\/\)$/{
24917 s//\1/
24920 /^X\(\/\).*/{
24921 s//\1/
24924 s/.*/./; q'`
24925 { as_dir="$ac_dir"
24926 case $as_dir in #(
24927 -*) as_dir=./$as_dir;;
24928 esac
24929 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24930 as_dirs=
24931 while :; do
24932 case $as_dir in #(
24933 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24934 *) as_qdir=$as_dir;;
24935 esac
24936 as_dirs="'$as_qdir' $as_dirs"
24937 as_dir=`$as_dirname -- "$as_dir" ||
24938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24939 X"$as_dir" : 'X\(//\)[^/]' \| \
24940 X"$as_dir" : 'X\(//\)$' \| \
24941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24942 echo X"$as_dir" |
24943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24944 s//\1/
24947 /^X\(\/\/\)[^/].*/{
24948 s//\1/
24951 /^X\(\/\/\)$/{
24952 s//\1/
24955 /^X\(\/\).*/{
24956 s//\1/
24959 s/.*/./; q'`
24960 test -d "$as_dir" && break
24961 done
24962 test -z "$as_dirs" || eval "mkdir $as_dirs"
24963 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24964 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24965 { (exit 1); exit 1; }; }; }
24966 ac_builddir=.
24968 case "$ac_dir" in
24969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24972 # A ".." for each directory in $ac_dir_suffix.
24973 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24974 case $ac_top_builddir_sub in
24975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24977 esac ;;
24978 esac
24979 ac_abs_top_builddir=$ac_pwd
24980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24981 # for backward compatibility:
24982 ac_top_builddir=$ac_top_build_prefix
24984 case $srcdir in
24985 .) # We are building in place.
24986 ac_srcdir=.
24987 ac_top_srcdir=$ac_top_builddir_sub
24988 ac_abs_top_srcdir=$ac_pwd ;;
24989 [\\/]* | ?:[\\/]* ) # Absolute name.
24990 ac_srcdir=$srcdir$ac_dir_suffix;
24991 ac_top_srcdir=$srcdir
24992 ac_abs_top_srcdir=$srcdir ;;
24993 *) # Relative name.
24994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24995 ac_top_srcdir=$ac_top_build_prefix$srcdir
24996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24997 esac
24998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25001 case $ac_mode in
25004 # CONFIG_FILE
25007 case $INSTALL in
25008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25010 esac
25011 _ACEOF
25013 cat >>$CONFIG_STATUS <<\_ACEOF
25014 # If the template does not know about datarootdir, expand it.
25015 # FIXME: This hack should be removed a few years after 2.60.
25016 ac_datarootdir_hack=; ac_datarootdir_seen=
25018 case `sed -n '/datarootdir/ {
25022 /@datadir@/p
25023 /@docdir@/p
25024 /@infodir@/p
25025 /@localedir@/p
25026 /@mandir@/p
25027 ' $ac_file_inputs` in
25028 *datarootdir*) ac_datarootdir_seen=yes;;
25029 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25030 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25031 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25032 _ACEOF
25033 cat >>$CONFIG_STATUS <<_ACEOF
25034 ac_datarootdir_hack='
25035 s&@datadir@&$datadir&g
25036 s&@docdir@&$docdir&g
25037 s&@infodir@&$infodir&g
25038 s&@localedir@&$localedir&g
25039 s&@mandir@&$mandir&g
25040 s&\\\${datarootdir}&$datarootdir&g' ;;
25041 esac
25042 _ACEOF
25044 # Neutralize VPATH when `$srcdir' = `.'.
25045 # Shell code in configure.ac might set extrasub.
25046 # FIXME: do we really want to maintain this feature?
25047 cat >>$CONFIG_STATUS <<_ACEOF
25048 sed "$ac_vpsub
25049 $extrasub
25050 _ACEOF
25051 cat >>$CONFIG_STATUS <<\_ACEOF
25053 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25054 s&@configure_input@&$configure_input&;t t
25055 s&@top_builddir@&$ac_top_builddir_sub&;t t
25056 s&@srcdir@&$ac_srcdir&;t t
25057 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25058 s&@top_srcdir@&$ac_top_srcdir&;t t
25059 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25060 s&@builddir@&$ac_builddir&;t t
25061 s&@abs_builddir@&$ac_abs_builddir&;t t
25062 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25063 s&@INSTALL@&$ac_INSTALL&;t t
25064 $ac_datarootdir_hack
25065 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25067 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25068 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25069 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25070 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25071 which seems to be undefined. Please make sure it is defined." >&5
25072 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25073 which seems to be undefined. Please make sure it is defined." >&2;}
25075 rm -f "$tmp/stdin"
25076 case $ac_file in
25077 -) cat "$tmp/out"; rm -f "$tmp/out";;
25078 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25079 esac
25083 # CONFIG_HEADER
25085 _ACEOF
25087 # Transform confdefs.h into a sed script `conftest.defines', that
25088 # substitutes the proper values into config.h.in to produce config.h.
25089 rm -f conftest.defines conftest.tail
25090 # First, append a space to every undef/define line, to ease matching.
25091 echo 's/$/ /' >conftest.defines
25092 # Then, protect against being on the right side of a sed subst, or in
25093 # an unquoted here document, in config.status. If some macros were
25094 # called several times there might be several #defines for the same
25095 # symbol, which is useless. But do not sort them, since the last
25096 # AC_DEFINE must be honored.
25097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25098 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25099 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25100 # PARAMS is the parameter list in the macro definition--in most cases, it's
25101 # just an empty string.
25102 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25103 ac_dB='\\)[ (].*,\\1define\\2'
25104 ac_dC=' '
25105 ac_dD=' ,'
25107 uniq confdefs.h |
25108 sed -n '
25109 t rset
25110 :rset
25111 s/^[ ]*#[ ]*define[ ][ ]*//
25112 t ok
25115 s/[\\&,]/\\&/g
25116 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25117 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25118 ' >>conftest.defines
25120 # Remove the space that was appended to ease matching.
25121 # Then replace #undef with comments. This is necessary, for
25122 # example, in the case of _POSIX_SOURCE, which is predefined and required
25123 # on some systems where configure will not decide to define it.
25124 # (The regexp can be short, since the line contains either #define or #undef.)
25125 echo 's/ $//
25126 s,^[ #]*u.*,/* & */,' >>conftest.defines
25128 # Break up conftest.defines:
25129 ac_max_sed_lines=50
25131 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25132 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25133 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25134 # et cetera.
25135 ac_in='$ac_file_inputs'
25136 ac_out='"$tmp/out1"'
25137 ac_nxt='"$tmp/out2"'
25139 while :
25141 # Write a here document:
25142 cat >>$CONFIG_STATUS <<_ACEOF
25143 # First, check the format of the line:
25144 cat >"\$tmp/defines.sed" <<\\CEOF
25145 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25146 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25148 :def
25149 _ACEOF
25150 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25151 echo 'CEOF
25152 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25153 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25154 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25155 grep . conftest.tail >/dev/null || break
25156 rm -f conftest.defines
25157 mv conftest.tail conftest.defines
25158 done
25159 rm -f conftest.defines conftest.tail
25161 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25162 cat >>$CONFIG_STATUS <<\_ACEOF
25163 if test x"$ac_file" != x-; then
25164 echo "/* $configure_input */" >"$tmp/config.h"
25165 cat "$ac_result" >>"$tmp/config.h"
25166 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25167 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25168 echo "$as_me: $ac_file is unchanged" >&6;}
25169 else
25170 rm -f $ac_file
25171 mv "$tmp/config.h" $ac_file
25173 else
25174 echo "/* $configure_input */"
25175 cat "$ac_result"
25177 rm -f "$tmp/out12"
25180 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25181 echo "$as_me: executing $ac_file commands" >&6;}
25183 esac
25186 case $ac_file$ac_mode in
25187 "default":C)
25189 ### Make the necessary directories, if they don't exist.
25190 for dir in etc lisp ; do
25191 test -d ${dir} || mkdir ${dir}
25192 done
25194 # Build src/Makefile from ${srcdir}/src/Makefile.c
25195 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25196 # This must be done after src/config.h is built, since we rely on that file.
25198 # Now get this: Some word that is part of the ${srcdir} directory name
25199 # or the ${configuration} value might, just might, happen to be an
25200 # identifier like `sun4' or `i386' or something, and be predefined by
25201 # the C preprocessor to some helpful value like 1, or maybe the empty
25202 # string. Needless to say consequent macro substitutions are less
25203 # than conducive to the makefile finding the correct directory.
25204 undefs="`echo $top_srcdir $configuration $canonical |
25205 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25206 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25209 echo creating src/epaths.h
25210 ${MAKE-make} epaths-force
25212 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25213 # `..' to `. .' unless invoked with -traditional
25215 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25216 CPPFLAGS="$CPPFLAGS -traditional"
25219 echo creating lib-src/Makefile
25220 ( cd lib-src
25221 rm -f junk.c junk1.c junk2.c
25222 sed -e '/start of cpp stuff/q' \
25223 < Makefile.c > junk1.c
25224 sed -e '1,/start of cpp stuff/d'\
25225 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25226 < Makefile.c > junk.c
25227 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25228 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25229 cat junk1.c junk2.c > Makefile.new
25230 rm -f junk.c junk1.c junk2.c
25231 chmod 444 Makefile.new
25232 mv -f Makefile.new Makefile
25235 echo creating src/Makefile
25236 ( cd src
25237 rm -f junk.c junk1.c junk2.c
25238 sed -e '/start of cpp stuff/q' \
25239 < Makefile.c > junk1.c
25240 sed -e '1,/start of cpp stuff/d'\
25241 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25242 < Makefile.c > junk.c
25243 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25244 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25245 cat junk1.c junk2.c > Makefile.new
25246 rm -f junk.c junk1.c junk2.c
25247 chmod 444 Makefile.new
25248 mv -f Makefile.new Makefile
25251 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25252 echo creating src/.gdbinit
25253 echo source $srcdir/src/.gdbinit > src/.gdbinit
25256 # This is how we know whether to re-run configure in certain cases.
25257 touch src/config.stamp
25261 esac
25262 done # for ac_tag
25265 { (exit 0); exit 0; }
25266 _ACEOF
25267 chmod +x $CONFIG_STATUS
25268 ac_clean_files=$ac_clean_files_save
25271 # configure is writing to config.log, and then calls config.status.
25272 # config.status does its own redirection, appending to config.log.
25273 # Unfortunately, on DOS this fails, as config.log is still kept open
25274 # by configure, so config.status won't be able to write to it; its
25275 # output is simply discarded. So we exec the FD to /dev/null,
25276 # effectively closing config.log, so it can be properly (re)opened and
25277 # appended to by config.status. When coming back to configure, we
25278 # need to make the FD available again.
25279 if test "$no_create" != yes; then
25280 ac_cs_success=:
25281 ac_config_status_args=
25282 test "$silent" = yes &&
25283 ac_config_status_args="$ac_config_status_args --quiet"
25284 exec 5>/dev/null
25285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25286 exec 5>>config.log
25287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25288 # would make configure fail if this is the last instruction.
25289 $ac_cs_success || { (exit 1); exit 1; }