configure.in: Use freetype/xft by default
[emacs.git] / configure
blob5811e9c331292b978b64b74d811a71f3b765dfbc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 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.50 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.50:";;
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 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs even if GCC is found
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 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1372 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1373 console
1374 --with-dbus 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.50
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.50, 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-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1857 withval=$with_gcc;
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1864 withval=$with_pop;
1865 else
1866 with_pop=yes
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1872 _ACEOF
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1881 else
1882 with_kerberos=no
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define KERBEROS 1
1888 _ACEOF
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1897 else
1898 with_kerberos5=no
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1903 with_kerberos=yes
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS 1
1906 _ACEOF
1910 cat >>confdefs.h <<\_ACEOF
1911 #define KERBEROS5 1
1912 _ACEOF
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1920 else
1921 with_hesiod=no
1924 if test "$with_hesiod" = yes; then
1926 cat >>confdefs.h <<\_ACEOF
1927 #define HESIOD 1
1928 _ACEOF
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1936 else
1937 with_sound=yes
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval=$with_x_toolkit; case "${withval}" in
1945 y | ye | yes ) val=gtk ;;
1946 n | no ) val=no ;;
1947 l | lu | luc | luci | lucid ) val=lucid ;;
1948 a | at | ath | athe | athen | athena ) val=athena ;;
1949 m | mo | mot | moti | motif ) val=motif ;;
1950 g | gt | gtk ) val=gtk ;;
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1954 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1955 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1957 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1960 esac
1961 with_x_toolkit=$val
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1969 withval=$with_xpm;
1970 else
1971 with_xpm=yes
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1977 withval=$with_jpeg;
1978 else
1979 with_jpeg=yes
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1985 withval=$with_tiff;
1986 else
1987 with_tiff=yes
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1993 withval=$with_gif;
1994 else
1995 with_gif=yes
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2001 withval=$with_png;
2002 else
2003 with_png=yes
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2009 withval=$with_rsvg;
2010 else
2011 with_rsvg=yes
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval=$with_freetype;
2019 else
2020 with_freetype=yes
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2026 withval=$with_xft;
2027 else
2028 with_xft=yes
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval=$with_libotf;
2035 else
2036 with_libotf=yes
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval=$with_m17n_flt;
2043 else
2044 with_m17n_flt=yes
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2051 withval=$with_gtk;
2052 else
2053 with_gtk=no
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval=$with_toolkit_scroll_bars;
2060 else
2061 with_toolkit_scroll_bars=yes
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval=$with_xaw3d;
2068 else
2069 with_xaw3d=yes
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2075 withval=$with_xim;
2076 else
2077 with_xim=yes
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval=$with_carbon;
2084 else
2085 with_carbon=no
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2092 withval=$with_gpm;
2093 else
2094 with_gpm=yes
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2100 withval=$with_dbus;
2101 else
2102 with_dbus=no
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval=$with_pkg_config_prog;
2112 if test "X${with_pkg_config_prog}" != X; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG="${with_pkg_config_prog}"
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2127 else
2128 USE_FONT_BACKEND=no
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval=$enable_asserts; USE_XASSERTS=$enableval
2135 else
2136 USE_XASSERTS=no
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2143 else
2144 USE_MAINTAINER_MODE=no
2147 if test $USE_MAINTAINER_MODE = yes; then
2148 MAINT=
2149 else
2150 MAINT=#
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2157 locallisppath=
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath=${enableval}
2164 #### Make srcdir absolute, if it isn't already. It's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2169 unset CDPATH
2170 case "${srcdir}" in
2171 /* ) ;;
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2179 then
2180 srcdir="$PWD"
2181 else
2182 srcdir="`(cd ${srcdir}; pwd)`"
2185 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2186 esac
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2208 ### Canonicalize the configuration name.
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install-sh -c"
2215 break
2216 elif test -f "$ac_dir/install.sh"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/install.sh -c"
2219 break
2220 elif test -f "$ac_dir/shtool"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 break
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2268 *-*-*) ;;
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2324 canonical=$host
2325 configuration=${host_alias-${build_alias-$host}}
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2352 machine='' opsys='' unported=no
2353 case "${canonical}" in
2355 ## FreeBSD ports
2356 *-*-freebsd* )
2357 opsys=freebsd
2358 case "${canonical}" in
2359 alpha*-*-freebsd*) machine=alpha ;;
2360 ia64-*-freebsd*) machine=ia64 ;;
2361 sparc64-*-freebsd*) machine=sparc ;;
2362 powerpc-*-freebsd*) machine=macppc ;;
2363 i[3456]86-*-freebsd*) machine=intel386 ;;
2364 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2365 esac
2368 ## FreeBSD kernel + glibc based userland
2369 *-*-kfreebsd*gnu* )
2370 opsys=gnu-kfreebsd
2371 case "${canonical}" in
2372 alpha*-*-kfreebsd*) machine=alpha ;;
2373 ia64-*-kfreebsd*) machine=ia64 ;;
2374 sparc64-*-kfreebsd*) machine=sparc ;;
2375 powerpc-*-kfreebsd*) machine=macppc ;;
2376 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2377 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2378 esac
2381 ## NetBSD ports
2382 *-*-netbsd* )
2383 opsys=netbsd
2384 if test -f /usr/lib/crti.o; then
2386 cat >>confdefs.h <<\_ACEOF
2387 #define HAVE_CRTIN
2388 _ACEOF
2392 case "${canonical}" in
2393 alpha*-*-netbsd*) machine=alpha ;;
2394 i[3456]86-*-netbsd*) machine=intel386 ;;
2395 m68k-*-netbsd*)
2396 # This is somewhat bogus.
2397 machine=hp9000s300 ;;
2398 mips-*-netbsd*) machine=pmax ;;
2399 mipsel-*-netbsd*) machine=pmax ;;
2400 mipseb-*-netbsd*) machine=pmax ;;
2401 powerpc-*-netbsd*) machine=macppc ;;
2402 sparc*-*-netbsd*) machine=sparc ;;
2403 vax-*-netbsd*) machine=vax ;;
2404 arm-*-netbsd*) machine=arm ;;
2405 x86_64-*-netbsd*) machine=amdx86-64 ;;
2406 hppa-*-netbsd*) machine=hp800 ;;
2407 esac
2410 ## OpenBSD ports
2411 *-*-openbsd* )
2412 opsys=openbsd
2413 case "${canonical}" in
2414 alpha*-*-openbsd*) machine=alpha ;;
2415 arm-*-openbsd*) machine=arm ;;
2416 hppa-*-openbsd*) machine=hp9000s300 ;;
2417 i386-*-openbsd*) machine=intel386 ;;
2418 m68k-*-openbsd*) machine=hp9000s300 ;;
2419 mips64-*-openbsd*) machine=mips64 ;;
2420 powerpc-*-openbsd*) machine=macppc ;;
2421 sparc*-*-openbsd*) machine=sparc ;;
2422 vax-*-openbsd*) machine=vax ;;
2423 x86_64-*-openbsd*) machine=amdx86-64 ;;
2424 esac
2427 ## LynxOS ports
2428 *-*-lynxos* )
2429 opsys=lynxos
2430 case "${canonical}" in
2431 i[3456]86-*-lynxos*) machine=intel386 ;;
2432 powerpc-*-lynxos*) machine=powerpc ;;
2433 esac
2436 ## BSDI ports
2437 *-*-bsdi* )
2438 opsys=bsdi
2439 case "${canonical}" in
2440 i[345]86-*-bsdi*) machine=intel386 ;;
2441 sparc-*-bsdi*) machine=sparc ;;
2442 powerpc-*-bsdi*) machine=macppc ;;
2443 esac
2444 case "${canonical}" in
2445 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2446 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2447 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2448 *-*-bsdi3* ) opsys=bsdos3 ;;
2449 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2450 esac
2453 ## Alpha (DEC) machines.
2454 alpha*-dec-osf* )
2455 machine=alpha opsys=osf1
2456 # This is needed to find X11R6.1 libraries for certain tests.
2457 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2458 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2459 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2460 # due to non-traditional preprocessing with the current compiler
2461 # defaults. OSF 4 can also have that compiler version, and there
2462 # seems always to have been a usable /usr/bin/cpp.
2463 NON_GNU_CPP=/usr/bin/cpp
2464 case "${canonical}" in
2465 alpha*-dec-osf[5-9]*)
2466 opsys=osf5-0 ;;
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 ## Compaq Nonstop
2497 mips-compaq-nonstopux* )
2498 machine=nonstopux opsys=nonstopux
2501 ## Cubix QBx/386
2502 i[3456]86-cubix-sysv* )
2503 machine=intel386 opsys=usg5-3
2506 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2507 machine=pmax opsys=bsd4-2
2509 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2510 machine=pmax opsys=bsd4-3
2512 mips-dec-ultrix* )
2513 machine=pmax opsys=ultrix4-3
2515 mips-dec-osf* )
2516 machine=pmax opsys=osf1
2518 mips-dec-mach_bsd4.3* )
2519 machine=pmax opsys=mach-bsd4-3
2522 ## HP 9000 series 200 or 300
2523 m68*-hp-bsd* )
2524 machine=hp9000s300 opsys=bsd4-3
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2527 m68*-hp-hpux* )
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2532 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2533 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2534 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2535 *) machine=hp9000s300 opsys=hpux ;;
2536 esac
2539 ## HP 9000 series 700 and 800, running HP/UX
2540 hppa*-hp-hpux7* )
2541 machine=hp800 opsys=hpux
2543 hppa*-hp-hpux8* )
2544 machine=hp800 opsys=hpux8
2546 hppa*-hp-hpux9shr* )
2547 machine=hp800 opsys=hpux9shr
2549 hppa*-hp-hpux9* )
2550 machine=hp800 opsys=hpux9
2552 hppa*-hp-hpux10.2* )
2553 machine=hp800 opsys=hpux10-20
2555 hppa*-hp-hpux10* )
2556 machine=hp800 opsys=hpux10
2558 hppa*-hp-hpux1[1-9]* )
2559 machine=hp800 opsys=hpux11
2560 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2563 hppa*-*-linux-gnu* )
2564 machine=hp800 opsys=gnu-linux
2567 ## HP 9000 series 700 and 800, running HP/UX
2568 hppa*-hp-hpux* )
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2574 *.08.* ) machine=hp800 opsys=hpux8 ;;
2575 *.09.* ) machine=hp800 opsys=hpux9 ;;
2576 *) machine=hp800 opsys=hpux10 ;;
2577 esac
2579 hppa*-*-nextstep* )
2580 machine=hp800 opsys=nextstep
2583 ## IBM machines
2584 i370-ibm-aix*)
2585 machine=ibm370aix opsys=usg5-3
2587 s390-*-linux-gnu* )
2588 machine=ibms390 opsys=gnu-linux
2590 s390x-*-linux-gnu* )
2591 machine=ibms390x opsys=gnu-linux
2593 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2594 machine=ibmrs6000 opsys=aix3-1
2596 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2597 machine=ibmrs6000 opsys=aix3-2-5
2599 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2600 machine=ibmrs6000 opsys=aix4-1
2602 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2603 machine=ibmrs6000 opsys=aix4-2
2605 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2606 machine=ibmrs6000 opsys=aix4-2
2608 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2609 machine=ibmrs6000 opsys=aix4-2
2611 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2612 machine=ibmrs6000 opsys=aix4
2614 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2615 machine=ibmrs6000 opsys=aix4-1
2617 rs6000-ibm-aix* | powerpc-ibm-aix* )
2618 machine=ibmrs6000 opsys=aix3-2
2621 ## Prime EXL
2622 i[3456]86-prime-sysv* )
2623 machine=i386 opsys=usg5-3
2626 ## ncr machine running svr4.3.
2627 i[3456]86-ncr-sysv4.3 )
2628 machine=ncr386 opsys=usg5-4-3
2631 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2632 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2633 i[3456]86-ncr-sysv* )
2634 machine=ncr386 opsys=usg5-4-2
2637 ## Macintosh PowerPC
2638 powerpc*-*-linux-gnu* )
2639 machine=macppc opsys=gnu-linux
2642 ## Workstations sold by MIPS
2643 ## This is not necessarily all workstations using the MIPS processor -
2644 ## Irises are produced by SGI, and DECstations by DEC.
2646 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2647 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2648 ## it gives for choosing between the alternatives seems to be "Use
2649 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2650 ## the BSD world." I'll assume that these are instructions for
2651 ## handling two odd situations, and that every other situation
2652 ## should use mips.h and usg5-2-2, they being listed first.
2653 mips-mips-usg* )
2654 machine=mips4
2655 ## Fall through to the general code at the bottom to decide on the OS.
2657 mips-mips-riscos4* )
2658 machine=mips4 opsys=bsd4-3
2659 NON_GNU_CC="cc -systype bsd43"
2660 NON_GNU_CPP="cc -systype bsd43 -E"
2662 mips-mips-riscos5* )
2663 machine=mips4 opsys=riscos5
2664 NON_GNU_CC="cc -systype bsd43"
2665 NON_GNU_CPP="cc -systype bsd43 -E"
2667 mips-mips-bsd* )
2668 machine=mips opsys=bsd4-3
2670 mips-mips-* )
2671 machine=mips opsys=usg5-2-2
2674 ## NeXT
2675 m68*-next-* | m68k-*-nextstep* )
2676 machine=m68k opsys=nextstep
2679 ## NEC EWS4800
2680 mips-nec-sysv4*)
2681 machine=ews4800 opsys=ux4800
2684 ## Siemens Nixdorf
2685 mips-siemens-sysv* | mips-sni-sysv*)
2686 machine=mips-siemens opsys=usg5-4
2687 NON_GNU_CC=/usr/ccs/bin/cc
2688 NON_GNU_CPP=/usr/ccs/lib/cpp
2691 ## Silicon Graphics machines
2692 ## Iris 4D
2693 mips-sgi-irix6.5 )
2694 machine=iris4d opsys=irix6-5
2695 # Without defining _LANGUAGE_C, things get masked out in the headers
2696 # so that, for instance, grepping for `free' in stdlib.h fails and
2697 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2698 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2699 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2701 mips-sgi-irix6* )
2702 machine=iris4d opsys=irix6-0
2703 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2704 # but presumably it does no harm.
2705 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2706 # -32 probably isn't necessary in later v.6s -- anyone know which?
2707 NON_GCC_TEST_OPTIONS=-32
2709 mips-sgi-irix5.[01]* )
2710 machine=iris4d opsys=irix5-0
2712 mips-sgi-irix5* | mips-sgi-irix* )
2713 machine=iris4d opsys=irix5-2
2716 ## Suns
2717 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2718 machine=sparc opsys=gnu-linux
2721 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2722 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2723 | rs6000-*-solaris2*)
2724 case "${canonical}" in
2725 i[3456]86-*-* ) machine=intel386 ;;
2726 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2727 powerpcle* ) machine=powerpcle ;;
2728 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2729 sparc* ) machine=sparc ;;
2730 * ) unported=yes ;;
2731 esac
2732 case "${canonical}" in
2733 *-sunos5.3* | *-solaris2.3* )
2734 opsys=sol2-3
2735 NON_GNU_CPP=/usr/ccs/lib/cpp
2737 *-sunos5.4* | *-solaris2.4* )
2738 opsys=sol2-4
2739 NON_GNU_CPP=/usr/ccs/lib/cpp
2740 RANLIB="ar -ts"
2742 *-sunos5.5* | *-solaris2.5* )
2743 opsys=sol2-5
2744 NON_GNU_CPP=/usr/ccs/lib/cpp
2745 RANLIB="ar -ts"
2747 *-sunos5.6* | *-solaris2.6* )
2748 opsys=sol2-6
2749 NON_GNU_CPP=/usr/ccs/lib/cpp
2750 RANLIB="ar -ts"
2752 *-sunos5* | *-solaris* )
2753 opsys=sol2-6
2754 emacs_check_sunpro_c=yes
2755 NON_GNU_CPP=/usr/ccs/lib/cpp
2757 * ) opsys=bsd4-2 ;;
2758 esac
2759 ## Watch out for a compiler that we know will not work.
2760 case "${canonical}" in
2761 *-solaris* | *-sunos5* )
2762 if [ "x$CC" = x/usr/ucb/cc ]; then
2763 ## /usr/ucb/cc doesn't work;
2764 ## we should find some other compiler that does work.
2765 unset CC
2768 *) ;;
2769 esac
2771 sparc-*-nextstep* )
2772 machine=sparc opsys=nextstep
2775 ## Tandem Integrity S2
2776 mips-tandem-sysv* )
2777 machine=tandem-s2 opsys=usg5-3
2780 ## Vaxen.
2781 vax-dec-* )
2782 machine=vax
2783 case "${canonical}" in
2784 *-bsd4.1* ) opsys=bsd4-1 ;;
2785 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2786 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2787 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2788 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2789 *-vms* ) opsys=vms ;;
2790 * ) unported=yes
2791 esac
2794 ## IA-64
2795 ia64*-*-linux* )
2796 machine=ia64 opsys=gnu-linux
2799 ## Intel 386 machines where we don't care about the manufacturer
2800 i[3456]86-*-* )
2801 machine=intel386
2802 case "${canonical}" in
2803 *-cygwin ) opsys=cygwin ;;
2804 *-darwin* ) opsys=darwin
2805 CPP="${CC-cc} -E -no-cpp-precomp"
2807 *-xenix* ) opsys=xenix ;;
2808 *-linux-gnu* ) opsys=gnu-linux ;;
2809 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2810 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2811 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2812 *-386bsd* ) opsys=386bsd ;;
2813 *-nextstep* ) opsys=nextstep ;;
2814 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2815 esac
2818 ## m68k Linux-based GNU system
2819 m68k-*-linux-gnu* )
2820 machine=m68k opsys=gnu-linux
2823 ## Mips Linux-based GNU system
2824 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2825 machine=mips opsys=gnu-linux
2828 ## UXP/DS
2829 sparc-fujitsu-sysv4* )
2830 machine=sparc opsys=uxpds
2831 NON_GNU_CPP=/usr/ccs/lib/cpp
2832 RANLIB="ar -ts"
2835 ## AMD x86-64 Linux-based GNU system
2836 x86_64-*-linux-gnu* )
2837 machine=amdx86-64 opsys=gnu-linux
2840 ## Tensilica Xtensa Linux-based GNU system
2841 xtensa*-*-linux-gnu* )
2842 machine=xtensa opsys=gnu-linux
2846 unported=yes
2848 esac
2850 ### If the code above didn't choose an operating system, just choose
2851 ### an operating system based on the configuration name. You really
2852 ### only want to use this when you have no idea what the right
2853 ### operating system is; if you know what operating systems a machine
2854 ### runs, it's cleaner to make it explicit in the case statement
2855 ### above.
2856 if test x"${opsys}" = x; then
2857 case "${canonical}" in
2858 *-gnu* ) opsys=gnu ;;
2859 *-bsd4.[01] ) opsys=bsd4-1 ;;
2860 *-bsd4.2 ) opsys=bsd4-2 ;;
2861 *-bsd4.3 ) opsys=bsd4-3 ;;
2862 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2863 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2864 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2865 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2866 *-sysv4.2uw* ) opsys=unixware ;;
2867 *-sysv5uw* ) opsys=unixware ;;
2868 *-sysv5OpenUNIX* ) opsys=unixware ;;
2869 *-sysv4.1* | *-sysvr4.1* )
2870 NON_GNU_CPP=/usr/lib/cpp
2871 opsys=usg5-4 ;;
2872 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2873 if [ x$NON_GNU_CPP = x ]; then
2874 if [ -f /usr/ccs/lib/cpp ]; then
2875 NON_GNU_CPP=/usr/ccs/lib/cpp
2876 else
2877 NON_GNU_CPP=/lib/cpp
2880 opsys=usg5-4-2 ;;
2881 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2883 unported=yes
2885 esac
2890 if test $unported = yes; then
2891 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&5
2893 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2894 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2895 { (exit 1); exit 1; }; }
2898 machfile="m/${machine}.h"
2899 opsysfile="s/${opsys}.h"
2902 #### Choose a compiler.
2903 test -n "$CC" && cc_specified=yes
2905 # Save the value of CFLAGS that the user specified.
2906 SPECIFIED_CFLAGS="$CFLAGS"
2908 case ${with_gcc} in
2909 "yes" ) CC="gcc" GCC=yes ;;
2910 "no" ) : ${CC=cc} ;;
2912 esac
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3010 else
3011 CC="$ac_cv_prog_CC"
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3047 else
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3076 continue
3078 ac_cv_prog_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3084 IFS=$as_save_IFS
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3089 shift
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3094 shift
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6; }
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3136 done
3137 done
3138 IFS=$as_save_IFS
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { echo "$as_me:$LINENO: result: $CC" >&5
3145 echo "${ECHO_T}$CC" >&6; }
3146 else
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3152 test -n "$CC" && break
3153 done
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189 echo "${ECHO_T}$ac_ct_CC" >&6; }
3190 else
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3196 test -n "$ac_ct_CC" && break
3197 done
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205 whose name does not start with the host triplet. If you think this
3206 configuration is useful to you, please write to autoconf@gnu.org." >&5
3207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3225 # Provide some information about the compiler.
3226 echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 ac_compiler=`set X $ac_compile; echo $2`
3228 { (ac_try="$ac_compiler --version >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler --version >&5") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -v >&5"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -v >&5") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try="$ac_compiler -V >&5"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -V >&5") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3267 main ()
3271 return 0;
3273 _ACEOF
3274 ac_clean_files_save=$ac_clean_files
3275 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3276 # Try to create an executable without -o first, disregard a.out.
3277 # It will help us diagnose broken compilers, and finding out an intuition
3278 # of exeext.
3279 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3280 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3281 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3283 # List of possible output files, starting from the most likely.
3284 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3285 # only as a last resort. b.out is created by i960 compilers.
3286 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3288 # The IRIX 6 linker writes into existing files which may not be
3289 # executable, retaining their permissions. Remove them first so a
3290 # subsequent execution test works.
3291 ac_rmfiles=
3292 for ac_file in $ac_files
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297 esac
3298 done
3299 rm -f $ac_rmfiles
3301 if { (ac_try="$ac_link_default"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3343 else
3344 ac_file=''
3347 { echo "$as_me:$LINENO: result: $ac_file" >&5
3348 echo "${ECHO_T}$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&2;}
3357 { (exit 77); exit 77; }; }
3360 ac_exeext=$ac_cv_exeext
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3367 # If not cross compiling, check that we can run a simple program.
3368 if test "$cross_compiling" != yes; then
3369 if { ac_try='./$ac_file'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot run C compiled programs.
3388 If you meant to cross compile, use \`--host'.
3389 See \`config.log' for more details." >&2;}
3390 { (exit 1); exit 1; }; }
3394 { echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6; }
3397 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3402 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3403 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3404 echo "${ECHO_T}$cross_compiling" >&6; }
3406 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3407 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3408 if { (ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 break;;
3428 * ) break;;
3429 esac
3430 done
3431 else
3432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3439 rm -f conftest$ac_cv_exeext
3440 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3441 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3448 if test "${ac_cv_objext+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3459 main ()
3463 return 0;
3465 _ACEOF
3466 rm -f conftest.o conftest.obj
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; then
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482 break;;
3483 esac
3484 done
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499 echo "${ECHO_T}$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3515 main ()
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3522 return 0;
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3542 ac_compiler_gnu=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_compiler_gnu=no
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3555 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3556 GCC=`test $ac_compiler_gnu = yes && echo yes`
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3566 ac_cv_prog_cc_g=no
3567 CFLAGS="-g"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_g=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 CFLAGS=""
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3614 main ()
3618 return 0;
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3644 CFLAGS="-g"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 ac_cv_prog_cc_g=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3696 if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698 elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3704 else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_cc_c89+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 ac_cv_prog_cc_c89=no
3717 ac_save_CC=$CC
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <stdarg.h>
3725 #include <stdio.h>
3726 #include <sys/types.h>
3727 #include <sys/stat.h>
3728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729 struct buf { int x; };
3730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731 static char *e (p, i)
3732 char **p;
3733 int i;
3735 return p[i];
3737 static char *f (char * (*g) (char **, int), char **p, ...)
3739 char *s;
3740 va_list v;
3741 va_start (v,p);
3742 s = g (p, va_arg (v,int));
3743 va_end (v);
3744 return s;
3747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748 function prototypes and stuff, but not '\xHH' hex character constants.
3749 These don't provoke an error unfortunately, instead are silently treated
3750 as 'x'. The following induces an error, until -std is added to get
3751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752 array size at least. It's necessary to write '\x00'==0 to get something
3753 that's true only with -std. */
3754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757 inside strings and character constants. */
3758 #define FOO(x) 'x'
3759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761 int test (int i, double x);
3762 struct s1 {int (*f) (int a);};
3763 struct s2 {int (*f) (double a);};
3764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3765 int argc;
3766 char **argv;
3768 main ()
3770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 return 0;
3774 _ACEOF
3775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778 CC="$ac_save_CC $ac_arg"
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_c89=$ac_arg
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3814 { echo "$as_me:$LINENO: result: none needed" >&5
3815 echo "${ECHO_T}none needed" >&6; } ;;
3816 xno)
3817 { echo "$as_me:$LINENO: result: unsupported" >&5
3818 echo "${ECHO_T}unsupported" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3822 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3835 CPP=
3838 ## If not using gcc, and on Solaris, and no CPP specified, see if
3839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3840 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3841 test x"$CPP" = x; then
3842 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3843 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3845 if test "${emacs_cv_sunpro_c+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3856 main ()
3858 #ifndef __SUNPRO_C
3859 fail;
3860 #endif
3863 return 0;
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest$ac_exeext &&
3883 $as_test_x conftest$ac_exeext; then
3884 emacs_cv_sunpro_c=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 emacs_cv_sunpro_c=no
3892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3893 conftest$ac_exeext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3897 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3899 if test x"$emacs_cv_sunpro_c" = xyes; then
3900 NON_GNU_CPP="$CC -E -Xs"
3904 #### Some systems specify a CPP to use unless we are using GCC.
3905 #### Now that we know whether we are using GCC, we can decide whether
3906 #### to use that one.
3907 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3908 then
3909 CPP="$NON_GNU_CPP"
3912 #### Some systems specify a CC to use unless we are using GCC.
3913 #### Now that we know whether we are using GCC, we can decide whether
3914 #### to use that one.
3915 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3916 test x$cc_specified != xyes
3917 then
3918 CC="$NON_GNU_CC"
3921 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3922 then
3923 CC="$CC $GCC_TEST_OPTIONS"
3926 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3927 then
3928 CC="$CC $NON_GCC_TEST_OPTIONS"
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3940 CPP=
3942 if test -z "$CPP"; then
3943 if test "${ac_cv_prog_CPP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3949 ac_preproc_ok=false
3950 for ac_c_preproc_warn_flag in '' yes
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3993 continue
3996 rm -f conftest.err conftest.$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 }; then
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 # Passes both tests.
4031 ac_preproc_ok=:
4032 break
4035 rm -f conftest.err conftest.$ac_ext
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4041 break
4044 done
4045 ac_cv_prog_CPP=$CPP
4048 CPP=$ac_cv_prog_CPP
4049 else
4050 ac_cv_prog_CPP=$CPP
4052 { echo "$as_me:$LINENO: result: $CPP" >&5
4053 echo "${ECHO_T}$CPP" >&6; }
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #ifdef __STDC__
4070 # include <limits.h>
4071 #else
4072 # include <assert.h>
4073 #endif
4074 Syntax error
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 }; then
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 # Broken: fails on valid input.
4098 continue
4101 rm -f conftest.err conftest.$ac_ext
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4112 _ACEOF
4113 if { (ac_try="$ac_cpp conftest.$ac_ext"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null && {
4126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 }; then
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4140 rm -f conftest.err conftest.$ac_ext
4142 done
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then
4147 else
4148 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4149 See \`config.log' for more details." >&5
4150 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4151 See \`config.log' for more details." >&2;}
4152 { (exit 1); exit 1; }; }
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4163 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_GREP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 # Extract the first word of "grep ggrep" to use in msg output
4168 if test -z "$GREP"; then
4169 set dummy grep ggrep; ac_prog_name=$2
4170 if test "${ac_cv_path_GREP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4190 ac_count=0
4191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4192 while :
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 ac_count=`expr $ac_count + 1`
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4213 $ac_path_GREP_found && break 3
4214 done
4215 done
4217 done
4218 IFS=$as_save_IFS
4223 GREP="$ac_cv_path_GREP"
4224 if test -z "$GREP"; then
4225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4226 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4227 { (exit 1); exit 1; }; }
4230 else
4231 ac_cv_path_GREP=$GREP
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4241 { echo "$as_me:$LINENO: checking for egrep" >&5
4242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247 then ac_cv_path_EGREP="$GREP -E"
4248 else
4249 # Extract the first word of "egrep" to use in msg output
4250 if test -z "$EGREP"; then
4251 set dummy egrep; ac_prog_name=$2
4252 if test "${ac_cv_path_EGREP+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 ac_path_EGREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in egrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4265 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4266 # Check for GNU ac_path_EGREP and select it if it is found.
4267 # Check for GNU $ac_path_EGREP
4268 case `"$ac_path_EGREP" --version 2>&1` in
4269 *GNU*)
4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4272 ac_count=0
4273 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4274 while :
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 echo 'EGREP' >> "conftest.nl"
4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 ac_count=`expr $ac_count + 1`
4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_EGREP="$ac_path_EGREP"
4286 ac_path_EGREP_max=$ac_count
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4290 done
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4295 $ac_path_EGREP_found && break 3
4296 done
4297 done
4299 done
4300 IFS=$as_save_IFS
4305 EGREP="$ac_cv_path_EGREP"
4306 if test -z "$EGREP"; then
4307 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4308 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4309 { (exit 1); exit 1; }; }
4312 else
4313 ac_cv_path_EGREP=$EGREP
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4321 EGREP="$ac_cv_path_EGREP"
4325 { echo "$as_me:$LINENO: checking for AIX" >&5
4326 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #ifdef _AIX
4335 #endif
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "yes" >/dev/null 2>&1; then
4340 { echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6; }
4342 cat >>confdefs.h <<\_ACEOF
4343 #define _ALL_SOURCE 1
4344 _ACEOF
4346 else
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4350 rm -f conftest*
4354 cat >>confdefs.h <<\_ACEOF
4355 #define _GNU_SOURCE 1
4356 _ACEOF
4360 ### Use -Wno-pointer-sign if the compiler supports it
4361 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4362 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4363 SAVE_CFLAGS="$CFLAGS"
4364 CFLAGS="$CFLAGS -Wno-pointer-sign"
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4373 main ()
4377 return 0;
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 has_option=yes
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 has_option=no
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 if test $has_option = yes; then
4407 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4409 { echo "$as_me:$LINENO: result: $has_option" >&5
4410 echo "${ECHO_T}$has_option" >&6; }
4411 CFLAGS="$SAVE_CFLAGS"
4412 unset has_option
4413 unset SAVE_CFLAGS
4415 #### Some other nice autoconf tests.
4417 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4419 LN_S=$as_ln_s
4420 if test "$LN_S" = "ln -s"; then
4421 { echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4425 echo "${ECHO_T}no, using $LN_S" >&6; }
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4437 CPP=
4439 if test -z "$CPP"; then
4440 if test "${ac_cv_prog_CPP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 # Double quotes because CPP needs to be expanded
4444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4446 ac_preproc_ok=false
4447 for ac_c_preproc_warn_flag in '' yes
4449 # Use a header file that comes with gcc, so configuring glibc
4450 # with a fresh cross-compiler works.
4451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 # <limits.h> exists even on freestanding compilers.
4453 # On the NeXT, cc -E runs the code through the compiler's parser,
4454 # not just through cpp. "Syntax error" is here to catch this case.
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #ifdef __STDC__
4462 # include <limits.h>
4463 #else
4464 # include <assert.h>
4465 #endif
4466 Syntax error
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 # Broken: fails on valid input.
4490 continue
4493 rm -f conftest.err conftest.$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 # Passes both tests.
4528 ac_preproc_ok=:
4529 break
4532 rm -f conftest.err conftest.$ac_ext
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then
4538 break
4541 done
4542 ac_cv_prog_CPP=$CPP
4545 CPP=$ac_cv_prog_CPP
4546 else
4547 ac_cv_prog_CPP=$CPP
4549 { echo "$as_me:$LINENO: result: $CPP" >&5
4550 echo "${ECHO_T}$CPP" >&6; }
4551 ac_preproc_ok=false
4552 for ac_c_preproc_warn_flag in '' yes
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 # Broken: fails on valid input.
4595 continue
4598 rm -f conftest.err conftest.$ac_ext
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4609 _ACEOF
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev/null && {
4623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 }; then
4626 # Broken: success on invalid input.
4627 continue
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4637 rm -f conftest.err conftest.$ac_ext
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then
4644 else
4645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }
4652 ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 # Find a good install program. We prefer a C program (faster),
4659 # so one script is as good as another. But avoid the broken or
4660 # incompatible versions:
4661 # SysV /etc/install, /usr/sbin/install
4662 # SunOS /usr/etc/install
4663 # IRIX /sbin/install
4664 # AIX /bin/install
4665 # AmigaOS /C/install, which installs bootblocks on floppy discs
4666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669 # OS/2's system install, which has a completely different semantic
4670 # ./install, which can be erroneously created by make from ./install.sh.
4671 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4673 if test -z "$INSTALL"; then
4674 if test "${ac_cv_path_install+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 # Account for people who put trailing slashes in PATH elements.
4683 case $as_dir/ in
4684 ./ | .// | /cC/* | \
4685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4686 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4687 /usr/ucb/* ) ;;
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4691 # by default.
4692 for ac_prog in ginstall scoinst install; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4695 if test $ac_prog = install &&
4696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4699 elif test $ac_prog = install &&
4700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4703 else
4704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4705 break 3
4708 done
4709 done
4711 esac
4712 done
4713 IFS=$as_save_IFS
4717 if test "${ac_cv_path_install+set}" = set; then
4718 INSTALL=$ac_cv_path_install
4719 else
4720 # As a last resort, use the slow shell script. Don't cache a
4721 # value for INSTALL within a source directory, because that will
4722 # break other packages using the cache if that directory is
4723 # removed, or if the value is a relative name.
4724 INSTALL=$ac_install_sh
4727 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4728 echo "${ECHO_T}$INSTALL" >&6; }
4730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4731 # It thinks the first close brace ends the variable substitution.
4732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4738 if test "x$RANLIB" = x; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 RANLIB=$ac_cv_prog_RANLIB
4768 if test -n "$RANLIB"; then
4769 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4770 echo "${ECHO_T}$RANLIB" >&6; }
4771 else
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_RANLIB="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4801 done
4802 done
4803 IFS=$as_save_IFS
4807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4816 if test "x$ac_ct_RANLIB" = x; then
4817 RANLIB=":"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4822 whose name does not start with the host triplet. If you think this
4823 configuration is useful to you, please write to autoconf@gnu.org." >&5
4824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4825 whose name does not start with the host triplet. If you think this
4826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 RANLIB=$ac_ct_RANLIB
4831 else
4832 RANLIB="$ac_cv_prog_RANLIB"
4836 # Extract the first word of "install-info", so it can be a program name with args.
4837 set dummy install-info; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 case $INSTALL_INFO in
4844 [\\/]* | ?:[\\/]*)
4845 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4859 done
4860 done
4861 IFS=$as_save_IFS
4864 esac
4866 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4867 if test -n "$INSTALL_INFO"; then
4868 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4869 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4870 else
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4876 # Extract the first word of "install-info", so it can be a program name with args.
4877 set dummy install-info; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 case $INSTALL_INFO in
4884 [\\/]* | ?:[\\/]*)
4885 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in /usr/sbin
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4904 esac
4906 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4907 if test -n "$INSTALL_INFO"; then
4908 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4909 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4910 else
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4916 # Extract the first word of "install-info", so it can be a program name with args.
4917 set dummy install-info; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 case $INSTALL_INFO in
4924 [\\/]* | ?:[\\/]*)
4925 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in /sbin
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4939 done
4940 done
4941 IFS=$as_save_IFS
4943 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4945 esac
4947 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4948 if test -n "$INSTALL_INFO"; then
4949 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4950 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4951 else
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4957 # Extract the first word of "gzip", so it can be a program name with args.
4958 set dummy gzip; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 case $GZIP_PROG in
4965 [\\/]* | ?:[\\/]*)
4966 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4980 done
4981 done
4982 IFS=$as_save_IFS
4985 esac
4987 GZIP_PROG=$ac_cv_path_GZIP_PROG
4988 if test -n "$GZIP_PROG"; then
4989 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4990 echo "${ECHO_T}$GZIP_PROG" >&6; }
4991 else
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4999 ## Need makeinfo >= 4.6 (?) to build the manuals.
5000 # Extract the first word of "makeinfo", so it can be a program name with args.
5001 set dummy makeinfo; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 case $MAKEINFO in
5008 [\\/]* | ?:[\\/]*)
5009 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5027 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5029 esac
5031 MAKEINFO=$ac_cv_path_MAKEINFO
5032 if test -n "$MAKEINFO"; then
5033 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5034 echo "${ECHO_T}$MAKEINFO" >&6; }
5035 else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5041 if test "$MAKEINFO" != "no" && \
5042 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
5043 MAKEINFO=no
5046 if test "$MAKEINFO" = "no"; then
5047 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5048 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5049 { (exit 1); exit 1; }; }
5054 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5055 then
5056 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5059 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5060 then
5061 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5065 late_LDFLAGS=$LDFLAGS
5066 if test "$GCC" = yes; then
5067 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5068 else
5069 LDFLAGS="$LDFLAGS -znocombreloc"
5072 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5073 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5075 main(){return 0;}
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 { echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6; }
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 LDFLAGS=$late_LDFLAGS
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5107 conftest$ac_exeext conftest.$ac_ext
5109 #### Extract some information from the operating system and machine files.
5111 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5112 - which libraries the lib-src programs will want, and
5113 - whether the GNU malloc routines are usable..." >&5
5114 echo "$as_me: checking the machine- and system-dependent files to find out
5115 - which libraries the lib-src programs will want, and
5116 - whether the GNU malloc routines are usable..." >&6;}
5118 ### First figure out CFLAGS (which we use for running the compiler here)
5119 ### and REAL_CFLAGS (which we use for real compilation).
5120 ### The two are the same except on a few systems, where they are made
5121 ### different to work around various lossages. For example,
5122 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5123 ### as implying static linking.
5125 ### If the CFLAGS env var is specified, we use that value
5126 ### instead of the default.
5128 ### It's not important that this name contain the PID; you can't run
5129 ### two configures in the same directory and have anything work
5130 ### anyway.
5131 tempcname="conftest.c"
5133 echo '
5134 #include "'${srcdir}'/src/'${opsysfile}'"
5135 #include "'${srcdir}'/src/'${machfile}'"
5136 #ifndef LIBS_MACHINE
5137 #define LIBS_MACHINE
5138 #endif
5139 #ifndef LIBS_SYSTEM
5140 #define LIBS_SYSTEM
5141 #endif
5142 #ifndef C_SWITCH_SYSTEM
5143 #define C_SWITCH_SYSTEM
5144 #endif
5145 #ifndef C_SWITCH_MACHINE
5146 #define C_SWITCH_MACHINE
5147 #endif
5148 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5149 configure___ c_switch_system=C_SWITCH_SYSTEM
5150 configure___ c_switch_machine=C_SWITCH_MACHINE
5152 #ifndef LIB_X11_LIB
5153 #define LIB_X11_LIB -lX11
5154 #endif
5156 #ifndef LIBX11_MACHINE
5157 #define LIBX11_MACHINE
5158 #endif
5160 #ifndef LIBX11_SYSTEM
5161 #define LIBX11_SYSTEM
5162 #endif
5163 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5165 #ifdef UNEXEC
5166 configure___ unexec=UNEXEC
5167 #else
5168 configure___ unexec=unexec.o
5169 #endif
5171 #ifdef SYSTEM_MALLOC
5172 configure___ system_malloc=yes
5173 #else
5174 configure___ system_malloc=no
5175 #endif
5177 #ifdef USE_MMAP_FOR_BUFFERS
5178 configure___ use_mmap_for_buffers=yes
5179 #else
5180 configure___ use_mmap_for_buffers=no
5181 #endif
5183 #ifndef C_DEBUG_SWITCH
5184 #define C_DEBUG_SWITCH -g
5185 #endif
5187 #ifndef C_OPTIMIZE_SWITCH
5188 #ifdef __GNUC__
5189 #define C_OPTIMIZE_SWITCH -O2
5190 #else
5191 #define C_OPTIMIZE_SWITCH -O
5192 #endif
5193 #endif
5195 #ifndef C_WARNINGS_SWITCH
5196 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5197 #endif
5199 #ifndef LD_SWITCH_MACHINE
5200 #define LD_SWITCH_MACHINE
5201 #endif
5203 #ifndef LD_SWITCH_SYSTEM
5204 #define LD_SWITCH_SYSTEM
5205 #endif
5207 #ifndef LD_SWITCH_X_SITE_AUX
5208 #define LD_SWITCH_X_SITE_AUX
5209 #endif
5211 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5212 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5214 #ifdef THIS_IS_CONFIGURE
5216 /* Get the CFLAGS for tests in configure. */
5217 #ifdef __GNUC__
5218 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5219 #else
5220 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5221 #endif
5223 #else /* not THIS_IS_CONFIGURE */
5225 /* Get the CFLAGS for real compilation. */
5226 #ifdef __GNUC__
5227 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5228 #else
5229 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5230 #endif
5232 #endif /* not THIS_IS_CONFIGURE */
5233 ' > ${tempcname}
5235 # The value of CPP is a quoted variable reference, so we need to do this
5236 # to get its actual value...
5237 CPP=`eval "echo $CPP"`
5238 eval `${CPP} -Isrc ${tempcname} \
5239 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5240 if test "x$SPECIFIED_CFLAGS" = x; then
5241 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5243 else
5244 REAL_CFLAGS="$CFLAGS"
5246 rm ${tempcname}
5248 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5250 ### Make sure subsequent tests use flags consistent with the build flags.
5252 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5253 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5254 else
5255 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5260 # Check whether --enable-largefile was given.
5261 if test "${enable_largefile+set}" = set; then
5262 enableval=$enable_largefile;
5265 if test "$enable_largefile" != no; then
5267 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5268 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5269 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 ac_cv_sys_largefile_CC=no
5273 if test "$GCC" != yes; then
5274 ac_save_CC=$CC
5275 while :; do
5276 # IRIX 6.2 and later do not support large files by default,
5277 # so use the C compiler's -n32 option if that helps.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285 /* Check that off_t can represent 2**63 - 1 correctly.
5286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287 since some C++ compilers masquerading as C compilers
5288 incorrectly reject 9223372036854775807. */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291 && LARGE_OFF_T % 2147483647 == 1)
5292 ? 1 : -1];
5294 main ()
5298 return 0;
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (ac_try="$ac_compile"
5303 case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compile") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest.$ac_objext; then
5318 break
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f core conftest.err conftest.$ac_objext
5327 CC="$CC -n32"
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 ac_cv_sys_largefile_CC=' -n32'; break
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f core conftest.err conftest.$ac_objext
5354 break
5355 done
5356 CC=$ac_save_CC
5357 rm -f conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5361 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5362 if test "$ac_cv_sys_largefile_CC" != no; then
5363 CC=$CC$ac_cv_sys_largefile_CC
5366 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5367 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 while :; do
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381 since some C++ compilers masquerading as C compilers
5382 incorrectly reject 9223372036854775807. */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385 && LARGE_OFF_T % 2147483647 == 1)
5386 ? 1 : -1];
5388 main ()
5392 return 0;
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_sys_file_offset_bits=no; break
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #define _FILE_OFFSET_BITS 64
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5436 ? 1 : -1];
5438 main ()
5442 return 0;
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_sys_file_offset_bits=64; break
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
5472 break
5473 done
5475 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5477 case $ac_cv_sys_file_offset_bits in #(
5478 no | unknown) ;;
5480 cat >>confdefs.h <<_ACEOF
5481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5482 _ACEOF
5484 esac
5485 rm -f conftest*
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5488 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5489 if test "${ac_cv_sys_large_files+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 while :; do
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5507 ? 1 : -1];
5509 main ()
5513 return 0;
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5533 ac_cv_sys_large_files=no; break
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #define _LARGE_FILES 1
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5559 main ()
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_sys_large_files=1; break
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_sys_large_files=unknown
5593 break
5594 done
5596 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5597 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5598 case $ac_cv_sys_large_files in #(
5599 no | unknown) ;;
5601 cat >>confdefs.h <<_ACEOF
5602 #define _LARGE_FILES $ac_cv_sys_large_files
5603 _ACEOF
5605 esac
5606 rm -f conftest*
5612 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5613 ### be located in either /usr/lib64 or /usr/lib.
5614 case "${canonical}" in
5615 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5616 if test -d /usr/lib64; then
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_LIB64_DIR 1
5620 _ACEOF
5623 esac
5628 if test "${with_sound}" != "no"; then
5629 # Sound support for GNU/Linux and the free BSDs.
5630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <stdlib.h>
5642 #include <stdarg.h>
5643 #include <string.h>
5644 #include <float.h>
5647 main ()
5651 return 0;
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_header_stdc=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_header_stdc=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <string.h>
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "memchr" >/dev/null 2>&1; then
5695 else
5696 ac_cv_header_stdc=no
5698 rm -f conftest*
5702 if test $ac_cv_header_stdc = yes; then
5703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <stdlib.h>
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "free" >/dev/null 2>&1; then
5716 else
5717 ac_cv_header_stdc=no
5719 rm -f conftest*
5723 if test $ac_cv_header_stdc = yes; then
5724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5725 if test "$cross_compiling" = yes; then
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <ctype.h>
5735 #include <stdlib.h>
5736 #if ((' ' & 0x0FF) == 0x020)
5737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5739 #else
5740 # define ISLOWER(c) \
5741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
5744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5745 #endif
5747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5749 main ()
5751 int i;
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
5754 || toupper (i) != TOUPPER (i))
5755 return 2;
5756 return 0;
5758 _ACEOF
5759 rm -f conftest$ac_exeext
5760 if { (ac_try="$ac_link"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_link") 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5780 else
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ( exit $ac_status )
5786 ac_cv_header_stdc=no
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5796 if test $ac_cv_header_stdc = yes; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define STDC_HEADERS 1
5800 _ACEOF
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5815 inttypes.h stdint.h unistd.h
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 #include <$ac_header>
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 eval "$as_ac_Header=yes"
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 eval "$as_ac_Header=no"
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_res=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5866 _ACEOF
5870 done
5876 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_res=`eval echo '${'$as_ac_Header'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5888 else
5889 # Is the header compilable?
5890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <$ac_header>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_header_compiler=yes
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 ac_header_compiler=no
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5928 echo "${ECHO_T}$ac_header_compiler" >&6; }
5930 # Is the header present?
5931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <$ac_header>
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 }; then
5957 ac_header_preproc=yes
5958 else
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_header_preproc=no
5965 rm -f conftest.err conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967 echo "${ECHO_T}$ac_header_preproc" >&6; }
5969 # So? What about this header?
5970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971 yes:no: )
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5978 no:yes:* )
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5993 esac
5994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 eval "$as_ac_Header=\$ac_header_preproc"
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6013 done
6015 # Emulation library used on NetBSD.
6016 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6017 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6018 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 ac_check_lib_save_LIBS=$LIBS
6022 LIBS="-lossaudio $LIBS"
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char _oss_ioctl ();
6038 main ()
6040 return _oss_ioctl ();
6042 return 0;
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext &&
6062 $as_test_x conftest$ac_exeext; then
6063 ac_cv_lib_ossaudio__oss_ioctl=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_cv_lib_ossaudio__oss_ioctl=no
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6076 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6077 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6078 LIBSOUND=-lossaudio
6079 else
6080 LIBSOUND=
6085 ALSA_REQUIRED=1.0.0
6086 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6088 succeeded=no
6090 # Extract the first word of "pkg-config", so it can be a program name with args.
6091 set dummy pkg-config; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 case $PKG_CONFIG in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6115 IFS=$as_save_IFS
6117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6119 esac
6121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6124 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6125 else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test "$PKG_CONFIG" = "no" ; then
6133 HAVE_ALSA=no
6134 else
6135 PKG_CONFIG_MIN_VERSION=0.9.0
6136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6137 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6138 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6140 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6141 { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6143 succeeded=yes
6145 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6146 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6147 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6148 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6149 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6151 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6152 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6153 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6154 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6155 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 ALSA_CFLAGS=""
6160 ALSA_LIBS=""
6161 ## If we have a custom action on failure, don't print errors, but
6162 ## do set a variable so people can do so.
6163 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6169 else
6170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6175 if test $succeeded = yes; then
6176 HAVE_ALSA=yes
6177 else
6178 HAVE_ALSA=no
6181 if test $HAVE_ALSA = yes; then
6182 SAVE_CFLAGS="$CFLAGS"
6183 SAVE_LDFLAGS="$LDFLAGS"
6184 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6185 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <asoundlib.h>
6194 main ()
6196 snd_lib_error_set_handler (0);
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 emacs_alsa_normal=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 emacs_alsa_normal=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 if test "$emacs_alsa_normal" != yes; then
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <alsa/asoundlib.h>
6236 main ()
6238 snd_lib_error_set_handler (0);
6240 return 0;
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 emacs_alsa_subdir=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 emacs_alsa_subdir=no
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 if test "$emacs_alsa_subdir" != yes; then
6270 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6271 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6272 { (exit 1); exit 1; }; }
6274 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6277 CFLAGS="$SAVE_CFLAGS"
6278 LDFLAGS="$SAVE_LDFLAGS"
6279 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6280 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6282 cat >>confdefs.h <<\_ACEOF
6283 #define HAVE_ALSA 1
6284 _ACEOF
6315 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6316 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6317 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6318 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6319 sys/utsname.h pwd.h
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_res=`eval echo '${'$as_ac_Header'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330 echo "${ECHO_T}$ac_res" >&6; }
6331 else
6332 # Is the header compilable?
6333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 #include <$ac_header>
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 ac_header_compiler=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_header_compiler=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
6373 # Is the header present?
6374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <$ac_header>
6383 _ACEOF
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 }; then
6400 ac_header_preproc=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_header_preproc=no
6408 rm -f conftest.err conftest.$ac_ext
6409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 echo "${ECHO_T}$ac_header_preproc" >&6; }
6412 # So? What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6414 yes:no: )
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419 ac_header_preproc=yes
6421 no:yes:* )
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6436 esac
6437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 eval "$as_ac_Header=\$ac_header_preproc"
6444 ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 _ACEOF
6456 done
6459 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6460 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/personality.h>
6469 main ()
6471 personality (PER_LINUX32)
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_cv_personality_linux32=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 emacs_cv_personality_linux32=no
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6505 if test $emacs_cv_personality_linux32 = yes; then
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_PERSONALITY_LINUX32 1
6509 _ACEOF
6514 for ac_header in term.h
6516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <$ac_header>
6529 _ACEOF
6530 if { (ac_try="$ac_cpp conftest.$ac_ext"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null && {
6543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 }; then
6546 eval "$as_ac_Header=yes"
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 eval "$as_ac_Header=no"
6554 rm -f conftest.err conftest.$ac_ext
6556 ac_res=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560 cat >>confdefs.h <<_ACEOF
6561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 _ACEOF
6566 done
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580 #include <stdarg.h>
6581 #include <string.h>
6582 #include <float.h>
6585 main ()
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_header_stdc=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <string.h>
6629 _ACEOF
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6633 else
6634 ac_cv_header_stdc=no
6636 rm -f conftest*
6640 if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 #include <stdlib.h>
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6654 else
6655 ac_cv_header_stdc=no
6657 rm -f conftest*
6661 if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <ctype.h>
6673 #include <stdlib.h>
6674 #if ((' ' & 0x0FF) == 0x020)
6675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677 #else
6678 # define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683 #endif
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6687 main ()
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6696 _ACEOF
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6718 else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ( exit $ac_status )
6724 ac_cv_header_stdc=no
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6738 _ACEOF
6742 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_time+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <sys/time.h>
6755 #include <time.h>
6758 main ()
6760 if ((struct tm *) 0)
6761 return 0;
6763 return 0;
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_header_time=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 ac_cv_header_time=no
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6795 if test $ac_cv_header_time = yes; then
6797 cat >>confdefs.h <<\_ACEOF
6798 #define TIME_WITH_SYS_TIME 1
6799 _ACEOF
6803 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6804 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6816 main ()
6818 #ifndef sys_siglist
6819 (void) sys_siglist;
6820 #endif
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_have_decl_sys_siglist=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_have_decl_sys_siglist=no
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6855 if test $ac_cv_have_decl_sys_siglist = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_DECL_SYS_SIGLIST 1
6859 _ACEOF
6862 else
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DECL_SYS_SIGLIST 0
6865 _ACEOF
6871 if test $ac_cv_have_decl_sys_siglist != yes; then
6872 # For Tru64, at least:
6873 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6886 main ()
6888 #ifndef __sys_siglist
6889 (void) __sys_siglist;
6890 #endif
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_cv_have_decl___sys_siglist=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 ac_cv_have_decl___sys_siglist=no
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6924 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6925 if test $ac_cv_have_decl___sys_siglist = yes; then
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_DECL___SYS_SIGLIST 1
6929 _ACEOF
6932 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_DECL___SYS_SIGLIST 0
6935 _ACEOF
6941 if test $ac_cv_have_decl___sys_siglist = yes; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define sys_siglist __sys_siglist
6945 _ACEOF
6949 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6961 #include <sys/wait.h>
6962 #ifndef WEXITSTATUS
6963 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6964 #endif
6965 #ifndef WIFEXITED
6966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6967 #endif
6970 main ()
6972 int s;
6973 wait (&s);
6974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_sys_wait_h=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_header_sys_wait_h=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7007 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7008 if test $ac_cv_header_sys_wait_h = yes; then
7010 cat >>confdefs.h <<\_ACEOF
7011 #define HAVE_SYS_WAIT_H 1
7012 _ACEOF
7017 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7018 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7019 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #ifdef TIME_WITH_SYS_TIME
7029 #include <sys/time.h>
7030 #include <time.h>
7031 #else
7032 #ifdef HAVE_SYS_TIME_H
7033 #include <sys/time.h>
7034 #else
7035 #include <time.h>
7036 #endif
7037 #endif
7038 #ifdef HAVE_UTIME_H
7039 #include <utime.h>
7040 #endif
7042 main ()
7044 static struct utimbuf x; x.actime = x.modtime;
7046 return 0;
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 emacs_cv_struct_utimbuf=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 emacs_cv_struct_utimbuf=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7078 if test $emacs_cv_struct_utimbuf = yes; then
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_STRUCT_UTIMBUF 1
7082 _ACEOF
7086 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7088 if test "${ac_cv_type_signal+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 #include <signal.h>
7101 main ()
7103 return *(signal (0, 0)) (0) == 1;
7105 return 0;
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_signal=int
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_type_signal=void
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7136 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7138 cat >>confdefs.h <<_ACEOF
7139 #define RETSIGTYPE $ac_cv_type_signal
7140 _ACEOF
7144 { echo "$as_me:$LINENO: checking for speed_t" >&5
7145 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7146 if test "${emacs_cv_speed_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <termios.h>
7157 main ()
7159 speed_t x = 1;
7161 return 0;
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 emacs_cv_speed_t=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7186 emacs_cv_speed_t=no
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7192 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7193 if test $emacs_cv_speed_t = yes; then
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_SPEED_T 1
7197 _ACEOF
7201 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7202 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7203 if test "${emacs_cv_struct_timeval+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #ifdef TIME_WITH_SYS_TIME
7213 #include <sys/time.h>
7214 #include <time.h>
7215 #else
7216 #ifdef HAVE_SYS_TIME_H
7217 #include <sys/time.h>
7218 #else
7219 #include <time.h>
7220 #endif
7221 #endif
7223 main ()
7225 static struct timeval x; x.tv_sec = x.tv_usec;
7227 return 0;
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 emacs_cv_struct_timeval=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 emacs_cv_struct_timeval=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7258 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7259 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7260 if test $emacs_cv_struct_timeval = yes; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_TIMEVAL 1
7264 _ACEOF
7268 { echo "$as_me:$LINENO: checking for struct exception" >&5
7269 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7270 if test "${emacs_cv_struct_exception+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 #include <math.h>
7281 main ()
7283 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 emacs_cv_struct_exception=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 emacs_cv_struct_exception=no
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7316 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7317 HAVE_EXCEPTION=$emacs_cv_struct_exception
7318 if test $emacs_cv_struct_exception != yes; then
7320 cat >>confdefs.h <<\_ACEOF
7321 #define NO_MATHERR 1
7322 _ACEOF
7327 for ac_header in sys/socket.h
7329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 ac_res=`eval echo '${'$as_ac_Header'}'`
7337 { echo "$as_me:$LINENO: result: $ac_res" >&5
7338 echo "${ECHO_T}$ac_res" >&6; }
7339 else
7340 # Is the header compilable?
7341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_header_compiler=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_header_compiler=no
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6; }
7381 # Is the header present?
7382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7391 _ACEOF
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } >/dev/null && {
7405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 }; then
7408 ac_header_preproc=yes
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_header_preproc=no
7416 rm -f conftest.err conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6; }
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7422 yes:no: )
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc=yes
7429 no:yes:* )
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7444 esac
7445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 eval "$as_ac_Header=\$ac_header_preproc"
7452 ac_res=`eval echo '${'$as_ac_Header'}'`
7453 { echo "$as_me:$LINENO: result: $ac_res" >&5
7454 echo "${ECHO_T}$ac_res" >&6; }
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 _ACEOF
7464 done
7467 for ac_header in net/if.h
7469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 $ac_includes_default
7482 #if HAVE_SYS_SOCKET_H
7483 #include <sys/socket.h>
7484 #endif
7486 #include <$ac_header>
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 eval "$as_ac_Header=yes"
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 eval "$as_ac_Header=no"
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7525 done
7528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7530 if test "${ac_cv_struct_tm+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <sys/types.h>
7540 #include <time.h>
7543 main ()
7545 struct tm tm;
7546 int *p = &tm.tm_sec;
7547 return !p;
7549 return 0;
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_struct_tm=time.h
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 ac_cv_struct_tm=sys/time.h
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7581 if test $ac_cv_struct_tm = sys/time.h; then
7583 cat >>confdefs.h <<\_ACEOF
7584 #define TM_IN_SYS_TIME 1
7585 _ACEOF
7589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <$ac_cv_struct_tm>
7605 main ()
7607 static struct tm ac_aggr;
7608 if (ac_aggr.tm_zone)
7609 return 0;
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_cv_member_struct_tm_tm_zone=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <$ac_cv_struct_tm>
7647 main ()
7649 static struct tm ac_aggr;
7650 if (sizeof ac_aggr.tm_zone)
7651 return 0;
7653 return 0;
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_cv_member_struct_tm_tm_zone=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_member_struct_tm_tm_zone=no
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_STRUCT_TM_TM_ZONE 1
7692 _ACEOF
7697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_TM_ZONE 1
7701 _ACEOF
7703 else
7704 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7705 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7706 if test "${ac_cv_have_decl_tzname+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <time.h>
7718 main ()
7720 #ifndef tzname
7721 (void) tzname;
7722 #endif
7725 return 0;
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_cv_have_decl_tzname=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_cv_have_decl_tzname=no
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7756 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7757 if test $ac_cv_have_decl_tzname = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_TZNAME 1
7761 _ACEOF
7764 else
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_TZNAME 0
7767 _ACEOF
7773 { echo "$as_me:$LINENO: checking for tzname" >&5
7774 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7775 if test "${ac_cv_var_tzname+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <time.h>
7785 #if !HAVE_DECL_TZNAME
7786 extern char *tzname[];
7787 #endif
7790 main ()
7792 return tzname[0][0];
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
7815 ac_cv_var_tzname=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 ac_cv_var_tzname=no
7823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824 conftest$ac_exeext conftest.$ac_ext
7826 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7827 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7828 if test $ac_cv_var_tzname = yes; then
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_TZNAME 1
7832 _ACEOF
7837 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7838 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7839 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 #include <time.h>
7851 main ()
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_gmtoff)
7855 return 0;
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <time.h>
7891 main ()
7893 static struct tm ac_aggr;
7894 if (sizeof ac_aggr.tm_gmtoff)
7895 return 0;
7897 return 0;
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_cv_member_struct_tm_tm_gmtoff=no
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7934 cat >>confdefs.h <<\_ACEOF
7935 #define HAVE_TM_GMTOFF 1
7936 _ACEOF
7940 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 $ac_includes_default
7952 #if HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7954 #endif
7955 #if HAVE_NET_IF_H
7956 #include <net/if.h>
7957 #endif
7960 main ()
7962 static struct ifreq ac_aggr;
7963 if (ac_aggr.ifr_flags)
7964 return 0;
7966 return 0;
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_ifreq_ifr_flags=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 #if HAVE_SYS_SOCKET_H
7999 #include <sys/socket.h>
8000 #endif
8001 #if HAVE_NET_IF_H
8002 #include <net/if.h>
8003 #endif
8006 main ()
8008 static struct ifreq ac_aggr;
8009 if (sizeof ac_aggr.ifr_flags)
8010 return 0;
8012 return 0;
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_cv_member_struct_ifreq_ifr_flags=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8037 ac_cv_member_struct_ifreq_ifr_flags=no
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8046 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8047 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8051 _ACEOF
8055 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8056 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8057 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 #if HAVE_SYS_SOCKET_H
8068 #include <sys/socket.h>
8069 #endif
8070 #if HAVE_NET_IF_H
8071 #include <net/if.h>
8072 #endif
8075 main ()
8077 static struct ifreq ac_aggr;
8078 if (ac_aggr.ifr_hwaddr)
8079 return 0;
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #if HAVE_SYS_SOCKET_H
8114 #include <sys/socket.h>
8115 #endif
8116 #if HAVE_NET_IF_H
8117 #include <net/if.h>
8118 #endif
8121 main ()
8123 static struct ifreq ac_aggr;
8124 if (sizeof ac_aggr.ifr_hwaddr)
8125 return 0;
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8161 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8162 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8164 cat >>confdefs.h <<_ACEOF
8165 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8166 _ACEOF
8170 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8171 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8172 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8184 #endif
8185 #if HAVE_NET_IF_H
8186 #include <net/if.h>
8187 #endif
8190 main ()
8192 static struct ifreq ac_aggr;
8193 if (ac_aggr.ifr_netmask)
8194 return 0;
8196 return 0;
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest.$ac_objext; then
8216 ac_cv_member_struct_ifreq_ifr_netmask=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #if HAVE_SYS_SOCKET_H
8229 #include <sys/socket.h>
8230 #endif
8231 #if HAVE_NET_IF_H
8232 #include <net/if.h>
8233 #endif
8236 main ()
8238 static struct ifreq ac_aggr;
8239 if (sizeof ac_aggr.ifr_netmask)
8240 return 0;
8242 return 0;
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_cv_member_struct_ifreq_ifr_netmask=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 ac_cv_member_struct_ifreq_ifr_netmask=no
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8276 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8277 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8279 cat >>confdefs.h <<_ACEOF
8280 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8281 _ACEOF
8285 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8286 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8287 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8297 #if HAVE_SYS_SOCKET_H
8298 #include <sys/socket.h>
8299 #endif
8300 #if HAVE_NET_IF_H
8301 #include <net/if.h>
8302 #endif
8305 main ()
8307 static struct ifreq ac_aggr;
8308 if (ac_aggr.ifr_broadaddr)
8309 return 0;
8311 return 0;
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8331 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8343 #if HAVE_SYS_SOCKET_H
8344 #include <sys/socket.h>
8345 #endif
8346 #if HAVE_NET_IF_H
8347 #include <net/if.h>
8348 #endif
8351 main ()
8353 static struct ifreq ac_aggr;
8354 if (sizeof ac_aggr.ifr_broadaddr)
8355 return 0;
8357 return 0;
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8391 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8392 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8396 _ACEOF
8400 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8401 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8402 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #if HAVE_SYS_SOCKET_H
8413 #include <sys/socket.h>
8414 #endif
8415 #if HAVE_NET_IF_H
8416 #include <net/if.h>
8417 #endif
8420 main ()
8422 static struct ifreq ac_aggr;
8423 if (ac_aggr.ifr_addr)
8424 return 0;
8426 return 0;
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_cv_member_struct_ifreq_ifr_addr=yes
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 #if HAVE_SYS_SOCKET_H
8459 #include <sys/socket.h>
8460 #endif
8461 #if HAVE_NET_IF_H
8462 #include <net/if.h>
8463 #endif
8466 main ()
8468 static struct ifreq ac_aggr;
8469 if (sizeof ac_aggr.ifr_addr)
8470 return 0;
8472 return 0;
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_addr=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8497 ac_cv_member_struct_ifreq_ifr_addr=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8506 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8511 _ACEOF
8518 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8519 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8520 if test "$ac_cv_prog_cc_c89" != no; then
8521 { echo "$as_me:$LINENO: result: yes" >&5
8522 echo "${ECHO_T}yes" >&6; }
8524 cat >>confdefs.h <<\_ACEOF
8525 #define PROTOTYPES 1
8526 _ACEOF
8529 cat >>confdefs.h <<\_ACEOF
8530 #define __PROTOTYPES 1
8531 _ACEOF
8533 else
8534 { echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6; }
8538 { echo "$as_me:$LINENO: checking for working volatile" >&5
8539 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_volatile+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8551 main ()
8554 volatile int x;
8555 int * volatile y = (int *) 0;
8556 return !x && !y;
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_c_volatile=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_c_volatile=no
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8589 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8590 if test $ac_cv_c_volatile = no; then
8592 cat >>confdefs.h <<\_ACEOF
8593 #define volatile
8594 _ACEOF
8598 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8600 if test "${ac_cv_c_const+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8611 main ()
8613 /* FIXME: Include the comments suggested by Paul. */
8614 #ifndef __cplusplus
8615 /* Ultrix mips cc rejects this. */
8616 typedef int charset[2];
8617 const charset cs;
8618 /* SunOS 4.1.1 cc rejects this. */
8619 char const *const *pcpcc;
8620 char **ppc;
8621 /* NEC SVR4.0.2 mips cc rejects this. */
8622 struct point {int x, y;};
8623 static struct point const zero = {0,0};
8624 /* AIX XL C 1.02.0.0 rejects this.
8625 It does not let you subtract one const X* pointer from another in
8626 an arm of an if-expression whose if-part is not a constant
8627 expression */
8628 const char *g = "string";
8629 pcpcc = &g + (g ? g-g : 0);
8630 /* HPUX 7.0 cc rejects these. */
8631 ++pcpcc;
8632 ppc = (char**) pcpcc;
8633 pcpcc = (char const *const *) ppc;
8634 { /* SCO 3.2v4 cc rejects this. */
8635 char *t;
8636 char const *s = 0 ? (char *) 0 : (char const *) 0;
8638 *t++ = 0;
8639 if (s) return 0;
8641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8642 int x[] = {25, 17};
8643 const int *foo = &x[0];
8644 ++foo;
8646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8647 typedef const int *iptr;
8648 iptr p = 0;
8649 ++p;
8651 { /* AIX XL C 1.02.0.0 rejects this saying
8652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8653 struct s { int j; const int *ap[3]; };
8654 struct s *b; b->j = 5;
8656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8657 const int foo = 10;
8658 if (!foo) return 0;
8660 return !cs[0] && !zero.x;
8661 #endif
8664 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_cv_c_const=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 ac_cv_c_const=no
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8695 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8696 if test $ac_cv_c_const = no; then
8698 cat >>confdefs.h <<\_ACEOF
8699 #define const
8700 _ACEOF
8704 { echo "$as_me:$LINENO: checking for void * support" >&5
8705 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8706 if test "${emacs_cv_void_star+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8717 main ()
8719 void * foo;
8721 return 0;
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 emacs_cv_void_star=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 emacs_cv_void_star=no
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8752 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8753 if test $emacs_cv_void_star = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define POINTER_TYPE void
8756 _ACEOF
8758 else
8759 cat >>confdefs.h <<\_ACEOF
8760 #define POINTER_TYPE char
8761 _ACEOF
8769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8771 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 cat >conftest.make <<\_ACEOF
8776 SHELL = /bin/sh
8777 all:
8778 @echo '@@@%%%=$(MAKE)=@@@%%%'
8779 _ACEOF
8780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8782 *@@@%%%=?*=@@@%%%*)
8783 eval ac_cv_prog_make_${ac_make}_set=yes;;
8785 eval ac_cv_prog_make_${ac_make}_set=no;;
8786 esac
8787 rm -f conftest.make
8789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8790 { echo "$as_me:$LINENO: result: yes" >&5
8791 echo "${ECHO_T}yes" >&6; }
8792 SET_MAKE=
8793 else
8794 { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8796 SET_MAKE="MAKE=${MAKE-make}"
8800 { echo "$as_me:$LINENO: checking for long file names" >&5
8801 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8802 if test "${ac_cv_sys_long_file_names+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 ac_cv_sys_long_file_names=yes
8806 # Test for long file names in all the places we know might matter:
8807 # . the current directory, where building will happen
8808 # $prefix/lib where we will be installing things
8809 # $exec_prefix/lib likewise
8810 # $TMPDIR if set, where it might want to write temporary files
8811 # /tmp where it might want to write temporary files
8812 # /var/tmp likewise
8813 # /usr/tmp likewise
8814 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8815 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8816 # in the usual case where exec_prefix is '${prefix}'.
8817 case $ac_dir in #(
8818 . | /* | ?:[\\/]*) ;; #(
8819 *) continue;;
8820 esac
8821 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8822 ac_xdir=$ac_dir/cf$$
8823 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8824 ac_tf1=$ac_xdir/conftest9012345
8825 ac_tf2=$ac_xdir/conftest9012346
8826 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8827 ac_cv_sys_long_file_names=no
8828 rm -f -r "$ac_xdir" 2>/dev/null
8829 test $ac_cv_sys_long_file_names = no && break
8830 done
8832 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8833 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8834 if test $ac_cv_sys_long_file_names = yes; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_LONG_FILE_NAMES 1
8838 _ACEOF
8843 #### Choose a window system.
8845 { echo "$as_me:$LINENO: checking for X" >&5
8846 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8849 # Check whether --with-x was given.
8850 if test "${with_x+set}" = set; then
8851 withval=$with_x;
8854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8855 if test "x$with_x" = xno; then
8856 # The user explicitly disabled X.
8857 have_x=disabled
8858 else
8859 case $x_includes,$x_libraries in #(
8860 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8861 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8862 { (exit 1); exit 1; }; };; #(
8863 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 # One or both of the vars are not set, and there is no cached value.
8867 ac_x_includes=no ac_x_libraries=no
8868 rm -f -r conftest.dir
8869 if mkdir conftest.dir; then
8870 cd conftest.dir
8871 cat >Imakefile <<'_ACEOF'
8872 incroot:
8873 @echo incroot='${INCROOT}'
8874 usrlibdir:
8875 @echo usrlibdir='${USRLIBDIR}'
8876 libdir:
8877 @echo libdir='${LIBDIR}'
8878 _ACEOF
8879 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8881 for ac_var in incroot usrlibdir libdir; do
8882 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8883 done
8884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8885 for ac_extension in a so sl; do
8886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8888 ac_im_usrlibdir=$ac_im_libdir; break
8890 done
8891 # Screen out bogus values from the imake configuration. They are
8892 # bogus both because they are the default anyway, and because
8893 # using them would break gcc on systems where it needs fixed includes.
8894 case $ac_im_incroot in
8895 /usr/include) ac_x_includes= ;;
8896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8897 esac
8898 case $ac_im_usrlibdir in
8899 /usr/lib | /lib) ;;
8900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8901 esac
8903 cd ..
8904 rm -f -r conftest.dir
8907 # Standard set of common directories for X headers.
8908 # Check X11 before X11Rn because it is often a symlink to the current release.
8909 ac_x_header_dirs='
8910 /usr/X11/include
8911 /usr/X11R6/include
8912 /usr/X11R5/include
8913 /usr/X11R4/include
8915 /usr/include/X11
8916 /usr/include/X11R6
8917 /usr/include/X11R5
8918 /usr/include/X11R4
8920 /usr/local/X11/include
8921 /usr/local/X11R6/include
8922 /usr/local/X11R5/include
8923 /usr/local/X11R4/include
8925 /usr/local/include/X11
8926 /usr/local/include/X11R6
8927 /usr/local/include/X11R5
8928 /usr/local/include/X11R4
8930 /usr/X386/include
8931 /usr/x386/include
8932 /usr/XFree86/include/X11
8934 /usr/include
8935 /usr/local/include
8936 /usr/unsupported/include
8937 /usr/athena/include
8938 /usr/local/x11r5/include
8939 /usr/lpp/Xamples/include
8941 /usr/openwin/include
8942 /usr/openwin/share/include'
8944 if test "$ac_x_includes" = no; then
8945 # Guess where to find include files, by looking for Xlib.h.
8946 # First, try using that file with no special directory specified.
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 #include <X11/Xlib.h>
8954 _ACEOF
8955 if { (ac_try="$ac_cpp conftest.$ac_ext"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null && {
8968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 }; then
8971 # We can compile using X headers with no special include directory.
8972 ac_x_includes=
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 for ac_dir in $ac_x_header_dirs; do
8978 if test -r "$ac_dir/X11/Xlib.h"; then
8979 ac_x_includes=$ac_dir
8980 break
8982 done
8985 rm -f conftest.err conftest.$ac_ext
8986 fi # $ac_x_includes = no
8988 if test "$ac_x_libraries" = no; then
8989 # Check for the libraries.
8990 # See if we find them without any special options.
8991 # Don't add to $LIBS permanently.
8992 ac_save_LIBS=$LIBS
8993 LIBS="-lX11 $LIBS"
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #include <X11/Xlib.h>
9002 main ()
9004 XrmInitialize ()
9006 return 0;
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext &&
9026 $as_test_x conftest$ac_exeext; then
9027 LIBS=$ac_save_LIBS
9028 # We can link X programs with no special library path.
9029 ac_x_libraries=
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 LIBS=$ac_save_LIBS
9035 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9037 # Don't even attempt the hair of trying to link an X program!
9038 for ac_extension in a so sl; do
9039 if test -r "$ac_dir/libX11.$ac_extension"; then
9040 ac_x_libraries=$ac_dir
9041 break 2
9043 done
9044 done
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi # $ac_x_libraries = no
9051 case $ac_x_includes,$ac_x_libraries in #(
9052 no,* | *,no | *\'*)
9053 # Didn't find X, or a directory has "'" in its name.
9054 ac_cv_have_x="have_x=no";; #(
9056 # Record where we found X for the cache.
9057 ac_cv_have_x="have_x=yes\
9058 ac_x_includes='$ac_x_includes'\
9059 ac_x_libraries='$ac_x_libraries'"
9060 esac
9062 ;; #(
9063 *) have_x=yes;;
9064 esac
9065 eval "$ac_cv_have_x"
9066 fi # $with_x != no
9068 if test "$have_x" != yes; then
9069 { echo "$as_me:$LINENO: result: $have_x" >&5
9070 echo "${ECHO_T}$have_x" >&6; }
9071 no_x=yes
9072 else
9073 # If each of the values was on the command line, it overrides each guess.
9074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9076 # Update the cache value to reflect the command line values.
9077 ac_cv_have_x="have_x=yes\
9078 ac_x_includes='$x_includes'\
9079 ac_x_libraries='$x_libraries'"
9080 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9081 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9084 if test "$no_x" = yes; then
9085 window_system=none
9086 else
9087 window_system=x11
9090 if test "${x_libraries}" != NONE; then
9091 if test -n "${x_libraries}"; then
9092 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9093 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9095 x_default_search_path=""
9096 x_search_path=${x_libraries}
9097 if test -z "${x_search_path}"; then
9098 x_search_path=/usr/lib
9100 for x_library in `echo ${x_search_path}: | \
9101 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9102 x_search_path="\
9103 ${x_library}/X11/%L/%T/%N%C%S:\
9104 ${x_library}/X11/%l/%T/%N%C%S:\
9105 ${x_library}/X11/%T/%N%C%S:\
9106 ${x_library}/X11/%L/%T/%N%S:\
9107 ${x_library}/X11/%l/%T/%N%S:\
9108 ${x_library}/X11/%T/%N%S"
9109 if test x"${x_default_search_path}" = x; then
9110 x_default_search_path=${x_search_path}
9111 else
9112 x_default_search_path="${x_search_path}:${x_default_search_path}"
9114 done
9116 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9117 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9120 if test x"${x_includes}" = x; then
9121 bitmapdir=/usr/include/X11/bitmaps
9122 else
9123 # accumulate include directories that have X11 bitmap subdirectories
9124 bmd_acc="dummyval"
9125 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9126 if test -d "${bmd}/X11/bitmaps"; then
9127 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9129 if test -d "${bmd}/bitmaps"; then
9130 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9132 done
9133 if test ${bmd_acc} != "dummyval"; then
9134 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9138 HAVE_CARBON=no
9139 if test "${with_carbon}" != no; then
9140 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9141 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9142 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9143 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9147 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9148 else
9149 # Is the header compilable?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <Carbon/Carbon.h>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_header_compiler=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_header_compiler=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 echo "${ECHO_T}$ac_header_compiler" >&6; }
9190 # Is the header present?
9191 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9192 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <Carbon/Carbon.h>
9200 _ACEOF
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null && {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 }; then
9217 ac_header_preproc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_preproc=no
9225 rm -f conftest.err conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6; }
9229 # So? What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 yes:no: )
9232 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9238 no:yes:* )
9239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9253 esac
9254 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9255 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9256 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9261 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9262 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9265 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9266 HAVE_CARBON=yes
9271 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9272 if test "${with_carbon+set}" != set \
9273 && test "${carbon_appdir_x+set}" != set; then
9274 for var in with_x with_x_toolkit with_gtk with_xim \
9275 with_xpm with_jpeg with_tiff with_gif with_png; do
9276 if eval test \"\${$var+set}\" = set; then
9277 HAVE_CARBON=no
9278 break
9280 done
9283 if test "${HAVE_CARBON}" = yes; then
9284 window_system=mac
9287 case "${window_system}" in
9288 x11 )
9289 HAVE_X_WINDOWS=yes
9290 HAVE_X11=yes
9291 case "${with_x_toolkit}" in
9292 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9293 motif ) USE_X_TOOLKIT=MOTIF ;;
9294 gtk ) with_gtk=yes
9295 USE_X_TOOLKIT=none ;;
9296 no ) USE_X_TOOLKIT=none ;;
9298 if test x"$with_gtk" = xyes; then
9299 USE_X_TOOLKIT=none
9300 else
9301 USE_X_TOOLKIT=maybe
9304 esac
9306 mac | none )
9307 HAVE_X_WINDOWS=no
9308 HAVE_X11=no
9309 USE_X_TOOLKIT=none
9311 esac
9313 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9314 # Extract the first word of "X", so it can be a program name with args.
9315 set dummy X; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test -n "$HAVE_XSERVER"; then
9322 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_HAVE_XSERVER="true"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9339 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9342 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9343 if test -n "$HAVE_XSERVER"; then
9344 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9345 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9346 else
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9352 if test "$HAVE_XSERVER" = true ||
9353 test -n "$DISPLAY" ||
9354 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9355 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9356 were found. You should install the relevant development files for X
9357 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9358 sure you have development files for image handling, i.e.
9359 tiff, gif, jpeg, png and xpm.
9360 If you are sure you want Emacs compiled without X window support, pass
9361 --without-x
9362 to configure." >&5
9363 echo "$as_me: error: You seem to be running X, but no X development libraries
9364 were found. You should install the relevant development files for X
9365 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9366 sure you have development files for image handling, i.e.
9367 tiff, gif, jpeg, png and xpm.
9368 If you are sure you want Emacs compiled without X window support, pass
9369 --without-x
9370 to configure." >&2;}
9371 { (exit 1); exit 1; }; }
9375 ### If we're using X11, we should use the X menu package.
9376 HAVE_MENUS=no
9377 case ${HAVE_X11} in
9378 yes ) HAVE_MENUS=yes ;;
9379 esac
9381 ### Compute the unexec source name from the object name.
9382 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9384 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9385 # Assume not, until told otherwise.
9386 GNU_MALLOC=yes
9387 doug_lea_malloc=yes
9388 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9389 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9390 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define malloc_get_state innocuous_malloc_get_state
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char malloc_get_state (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9414 #undef malloc_get_state
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char malloc_get_state ();
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9427 choke me
9428 #endif
9431 main ()
9433 return malloc_get_state ();
9435 return 0;
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_func_malloc_get_state=yes
9457 else
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9461 ac_cv_func_malloc_get_state=no
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9468 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9469 if test $ac_cv_func_malloc_get_state = yes; then
9471 else
9472 doug_lea_malloc=no
9475 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9476 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9477 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488 #define malloc_set_state innocuous_malloc_set_state
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char malloc_set_state (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9495 #ifdef __STDC__
9496 # include <limits.h>
9497 #else
9498 # include <assert.h>
9499 #endif
9501 #undef malloc_set_state
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char malloc_set_state ();
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9514 choke me
9515 #endif
9518 main ()
9520 return malloc_set_state ();
9522 return 0;
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_func_malloc_set_state=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_func_malloc_set_state=no
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9555 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9556 if test $ac_cv_func_malloc_set_state = yes; then
9558 else
9559 doug_lea_malloc=no
9562 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9563 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9564 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 extern void (* __after_morecore_hook)();
9575 main ()
9577 __after_morecore_hook = 0
9579 return 0;
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 emacs_cv_var___after_morecore_hook=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 emacs_cv_var___after_morecore_hook=no
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9611 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9612 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9613 if test $emacs_cv_var___after_morecore_hook = no; then
9614 doug_lea_malloc=no
9616 if test "${system_malloc}" = "yes"; then
9617 GNU_MALLOC=no
9618 GNU_MALLOC_reason="
9619 (The GNU allocators don't work with this system configuration.)"
9621 if test "$doug_lea_malloc" = "yes" ; then
9622 if test "$GNU_MALLOC" = yes ; then
9623 GNU_MALLOC_reason="
9624 (Using Doug Lea's new malloc from the GNU C Library.)"
9627 cat >>confdefs.h <<\_ACEOF
9628 #define DOUG_LEA_MALLOC 1
9629 _ACEOF
9633 if test x"${REL_ALLOC}" = x; then
9634 REL_ALLOC=${GNU_MALLOC}
9640 for ac_header in stdlib.h unistd.h
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 else
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
9682 ac_header_compiler=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_header_compiler=no
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9704 _ACEOF
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev/null && {
9718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 }; then
9721 ac_header_preproc=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_preproc=no
9729 rm -f conftest.err conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9731 echo "${ECHO_T}$ac_header_preproc" >&6; }
9733 # So? What about this header?
9734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9735 yes:no: )
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9740 ac_header_preproc=yes
9742 no:yes:* )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9757 esac
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9765 ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9777 done
9780 for ac_func in getpagesize
9782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9809 #undef $ac_func
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char $ac_func ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_$ac_func || defined __stub___$ac_func
9822 choke me
9823 #endif
9826 main ()
9828 return $ac_func ();
9830 return 0;
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 eval "$as_ac_var=yes"
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_var=no"
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9862 ac_res=`eval echo '${'$as_ac_var'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9868 _ACEOF
9871 done
9873 { echo "$as_me:$LINENO: checking for working mmap" >&5
9874 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9875 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 if test "$cross_compiling" = yes; then
9879 ac_cv_func_mmap_fixed_mapped=no
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 $ac_includes_default
9888 /* malloc might have been renamed as rpl_malloc. */
9889 #undef malloc
9891 /* Thanks to Mike Haertel and Jim Avera for this test.
9892 Here is a matrix of mmap possibilities:
9893 mmap private not fixed
9894 mmap private fixed at somewhere currently unmapped
9895 mmap private fixed at somewhere already mapped
9896 mmap shared not fixed
9897 mmap shared fixed at somewhere currently unmapped
9898 mmap shared fixed at somewhere already mapped
9899 For private mappings, we should verify that changes cannot be read()
9900 back from the file, nor mmap's back from the file at a different
9901 address. (There have been systems where private was not correctly
9902 implemented like the infamous i386 svr4.0, and systems where the
9903 VM page cache was not coherent with the file system buffer cache
9904 like early versions of FreeBSD and possibly contemporary NetBSD.)
9905 For shared mappings, we should conversely verify that changes get
9906 propagated back to all the places they're supposed to be.
9908 Grep wants private fixed already mapped.
9909 The main things grep needs to know about mmap are:
9910 * does it exist and is it safe to write into the mmap'd area
9911 * how to use it (BSD variants) */
9913 #include <fcntl.h>
9914 #include <sys/mman.h>
9916 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9917 char *malloc ();
9918 #endif
9920 /* This mess was copied from the GNU getpagesize.h. */
9921 #ifndef HAVE_GETPAGESIZE
9922 /* Assume that all systems that can run configure have sys/param.h. */
9923 # ifndef HAVE_SYS_PARAM_H
9924 # define HAVE_SYS_PARAM_H 1
9925 # endif
9927 # ifdef _SC_PAGESIZE
9928 # define getpagesize() sysconf(_SC_PAGESIZE)
9929 # else /* no _SC_PAGESIZE */
9930 # ifdef HAVE_SYS_PARAM_H
9931 # include <sys/param.h>
9932 # ifdef EXEC_PAGESIZE
9933 # define getpagesize() EXEC_PAGESIZE
9934 # else /* no EXEC_PAGESIZE */
9935 # ifdef NBPG
9936 # define getpagesize() NBPG * CLSIZE
9937 # ifndef CLSIZE
9938 # define CLSIZE 1
9939 # endif /* no CLSIZE */
9940 # else /* no NBPG */
9941 # ifdef NBPC
9942 # define getpagesize() NBPC
9943 # else /* no NBPC */
9944 # ifdef PAGESIZE
9945 # define getpagesize() PAGESIZE
9946 # endif /* PAGESIZE */
9947 # endif /* no NBPC */
9948 # endif /* no NBPG */
9949 # endif /* no EXEC_PAGESIZE */
9950 # else /* no HAVE_SYS_PARAM_H */
9951 # define getpagesize() 8192 /* punt totally */
9952 # endif /* no HAVE_SYS_PARAM_H */
9953 # endif /* no _SC_PAGESIZE */
9955 #endif /* no HAVE_GETPAGESIZE */
9958 main ()
9960 char *data, *data2, *data3;
9961 int i, pagesize;
9962 int fd;
9964 pagesize = getpagesize ();
9966 /* First, make a file with some known garbage in it. */
9967 data = (char *) malloc (pagesize);
9968 if (!data)
9969 return 1;
9970 for (i = 0; i < pagesize; ++i)
9971 *(data + i) = rand ();
9972 umask (0);
9973 fd = creat ("conftest.mmap", 0600);
9974 if (fd < 0)
9975 return 1;
9976 if (write (fd, data, pagesize) != pagesize)
9977 return 1;
9978 close (fd);
9980 /* Next, try to mmap the file at a fixed address which already has
9981 something else allocated at it. If we can, also make sure that
9982 we see the same garbage. */
9983 fd = open ("conftest.mmap", O_RDWR);
9984 if (fd < 0)
9985 return 1;
9986 data2 = (char *) malloc (2 * pagesize);
9987 if (!data2)
9988 return 1;
9989 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9990 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9991 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9992 return 1;
9993 for (i = 0; i < pagesize; ++i)
9994 if (*(data + i) != *(data2 + i))
9995 return 1;
9997 /* Finally, make sure that changes to the mapped area do not
9998 percolate back to the file as seen by read(). (This is a bug on
9999 some variants of i386 svr4.0.) */
10000 for (i = 0; i < pagesize; ++i)
10001 *(data2 + i) = *(data2 + i) + 1;
10002 data3 = (char *) malloc (pagesize);
10003 if (!data3)
10004 return 1;
10005 if (read (fd, data3, pagesize) != pagesize)
10006 return 1;
10007 for (i = 0; i < pagesize; ++i)
10008 if (*(data + i) != *(data3 + i))
10009 return 1;
10010 close (fd);
10011 return 0;
10013 _ACEOF
10014 rm -f conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_func_mmap_fixed_mapped=yes
10035 else
10036 echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ( exit $ac_status )
10041 ac_cv_func_mmap_fixed_mapped=no
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10048 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MMAP 1
10054 _ACEOF
10057 rm -f conftest.mmap
10059 if test $use_mmap_for_buffers = yes; then
10060 REL_ALLOC=no
10063 LIBS="$libsrc_libs $LIBS"
10066 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10067 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldnet $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dnet_ntoa ();
10088 main ()
10090 return dnet_ntoa ();
10092 return 0;
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest$ac_exeext &&
10112 $as_test_x conftest$ac_exeext; then
10113 ac_cv_lib_dnet_dnet_ntoa=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_dnet_dnet_ntoa=no
10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10126 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10127 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_LIBDNET 1
10130 _ACEOF
10132 LIBS="-ldnet $LIBS"
10137 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10138 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10139 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lXbsd $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10153 main ()
10155 return main ();
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_lib_Xbsd_main=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_Xbsd_main=no
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10191 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10192 if test $ac_cv_lib_Xbsd_main = yes; then
10193 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10198 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10199 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lpthreads $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char cma_open ();
10220 main ()
10222 return cma_open ();
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_lib_pthreads_cma_open=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 ac_cv_lib_pthreads_cma_open=no
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10258 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10259 if test $ac_cv_lib_pthreads_cma_open = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_LIBPTHREADS 1
10262 _ACEOF
10264 LIBS="-lpthreads $LIBS"
10269 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10270 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10271 if test -d /usr/X386/include; then
10272 HAVE_XFREE386=yes
10273 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10274 else
10275 HAVE_XFREE386=no
10277 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10278 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10281 case ${host_os} in
10282 aix*)
10283 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10284 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10285 if test "${gdb_cv_bigtoc+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10289 case $GCC in
10290 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10291 *) gdb_cv_bigtoc=-bbigtoc ;;
10292 esac
10294 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10303 main ()
10305 int i;
10307 return 0;
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10333 gdb_cv_bigtoc=
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10340 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10341 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10343 esac
10345 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10346 # used for the tests that follow. We set them back to REAL_CFLAGS and
10347 # REAL_CPPFLAGS later on.
10349 REAL_CPPFLAGS="$CPPFLAGS"
10351 if test "${HAVE_X11}" = "yes"; then
10352 DEFS="$C_SWITCH_X_SITE $DEFS"
10353 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10354 LIBS="$LIBX $LIBS"
10355 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10356 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10358 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10359 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10360 # but it's more convenient here to set LD_RUN_PATH
10361 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10362 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10363 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10364 export LD_RUN_PATH
10367 if test "${opsys}" = "gnu-linux"; then
10368 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10369 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10378 main ()
10380 XOpenDisplay ("foo");
10382 return 0;
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 xlinux_first_failure=no
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10408 xlinux_first_failure=yes
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test "${xlinux_first_failure}" = "yes"; then
10414 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10415 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10416 OLD_CPPFLAGS="$CPPFLAGS"
10417 OLD_LIBS="$LIBS"
10418 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10419 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10420 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10421 LIBS="$LIBS -b i486-linuxaout"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10430 main ()
10432 XOpenDisplay ("foo");
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10455 xlinux_second_failure=no
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 xlinux_second_failure=yes
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test "${xlinux_second_failure}" = "yes"; then
10466 # If we get the same failure with -b, there is no use adding -b.
10467 # So take it out. This plays safe.
10468 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10469 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10470 CPPFLAGS="$OLD_CPPFLAGS"
10471 LIBS="$OLD_LIBS"
10472 { echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6; }
10474 else
10475 { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10478 else
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10484 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10485 # header files included from there.
10486 { echo "$as_me:$LINENO: checking for Xkb" >&5
10487 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <X11/Xlib.h>
10495 #include <X11/XKBlib.h>
10497 main ()
10499 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10501 return 0;
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10522 emacs_xkb=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 emacs_xkb=no
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10533 echo "${ECHO_T}$emacs_xkb" >&6; }
10534 if test $emacs_xkb = yes; then
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_XKBGETKEYBOARD 1
10538 _ACEOF
10546 for ac_func in XrmSetDatabase XScreenResourceString \
10547 XScreenNumberOfScreen XSetWMProtocols
10549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10563 #define $ac_func innocuous_$ac_func
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char $ac_func (); below.
10567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568 <limits.h> exists even on freestanding compilers. */
10570 #ifdef __STDC__
10571 # include <limits.h>
10572 #else
10573 # include <assert.h>
10574 #endif
10576 #undef $ac_func
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char $ac_func ();
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined __stub_$ac_func || defined __stub___$ac_func
10589 choke me
10590 #endif
10593 main ()
10595 return $ac_func ();
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 eval "$as_ac_var=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_var=no"
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10635 _ACEOF
10638 done
10642 if test "${window_system}" = "x11"; then
10643 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10644 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10645 if test "${emacs_cv_x11_version_6+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10656 main ()
10658 #if XlibSpecificationRelease < 6
10659 fail;
10660 #endif
10663 return 0;
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext &&
10683 $as_test_x conftest$ac_exeext; then
10684 emacs_cv_x11_version_6=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 emacs_cv_x11_version_6=no
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10696 if test $emacs_cv_x11_version_6 = yes; then
10697 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10698 echo "${ECHO_T}6 or newer" >&6; }
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_X11R6 1
10702 _ACEOF
10704 else
10705 { echo "$as_me:$LINENO: result: before 6" >&5
10706 echo "${ECHO_T}before 6" >&6; }
10711 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10712 HAVE_RSVG=no
10713 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10714 if test "${with_rsvg}" != "no"; then
10715 RSVG_REQUIRED=2.0.0
10716 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10719 succeeded=no
10721 # Extract the first word of "pkg-config", so it can be a program name with args.
10722 set dummy pkg-config; ac_word=$2
10723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 case $PKG_CONFIG in
10729 [\\/]* | ?:[\\/]*)
10730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10744 done
10745 done
10746 IFS=$as_save_IFS
10748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10750 esac
10752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10753 if test -n "$PKG_CONFIG"; then
10754 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10755 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10756 else
10757 { echo "$as_me:$LINENO: result: no" >&5
10758 echo "${ECHO_T}no" >&6; }
10763 if test "$PKG_CONFIG" = "no" ; then
10765 else
10766 PKG_CONFIG_MIN_VERSION=0.9.0
10767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10768 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10769 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10771 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10774 succeeded=yes
10776 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10777 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10778 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10779 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10780 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10782 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10783 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10784 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10785 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10786 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6; }
10790 RSVG_CFLAGS=""
10791 RSVG_LIBS=""
10792 ## If we have a custom action on failure, don't print errors, but
10793 ## do set a variable so people can do so.
10794 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10800 else
10801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10806 if test $succeeded = yes; then
10808 else
10815 if test ".${RSVG_CFLAGS}" != "."; then
10816 HAVE_RSVG=yes
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_RSVG 1
10820 _ACEOF
10822 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10823 LIBS="$RSVG_LIBS $LIBS"
10829 HAVE_GTK=no
10830 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10831 USE_X_TOOLKIT=none
10833 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10834 test "$USE_X_TOOLKIT" = "maybe"; then
10835 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10836 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10837 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10838 { (exit 1); exit 1; }; };
10840 GLIB_REQUIRED=2.6
10841 GTK_REQUIRED=2.6
10842 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10845 succeeded=no
10847 # Extract the first word of "pkg-config", so it can be a program name with args.
10848 set dummy pkg-config; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 case $PKG_CONFIG in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10870 done
10871 done
10872 IFS=$as_save_IFS
10874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10876 esac
10878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10879 if test -n "$PKG_CONFIG"; then
10880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10882 else
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10889 if test "$PKG_CONFIG" = "no" ; then
10890 pkg_check_gtk=no
10891 else
10892 PKG_CONFIG_MIN_VERSION=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10895 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10900 succeeded=yes
10902 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10903 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10904 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10906 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10908 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10909 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10910 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10911 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10912 echo "${ECHO_T}$GTK_LIBS" >&6; }
10913 else
10914 { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10916 GTK_CFLAGS=""
10917 GTK_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so.
10920 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10926 else
10927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10932 if test $succeeded = yes; then
10933 pkg_check_gtk=yes
10934 else
10935 pkg_check_gtk=no
10938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10939 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10940 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10941 { (exit 1); exit 1; }; }
10946 if test x"$pkg_check_gtk" = xyes; then
10950 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10951 CFLAGS="$CFLAGS $GTK_CFLAGS"
10952 LIBS="$GTK_LIBS $LIBS"
10953 GTK_COMPILES=no
10955 for ac_func in gtk_main
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971 #define $ac_func innocuous_$ac_func
10973 /* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10978 #ifdef __STDC__
10979 # include <limits.h>
10980 #else
10981 # include <assert.h>
10982 #endif
10984 #undef $ac_func
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char $ac_func ();
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
10997 choke me
10998 #endif
11001 main ()
11003 return $ac_func ();
11005 return 0;
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext &&
11025 $as_test_x conftest$ac_exeext; then
11026 eval "$as_ac_var=yes"
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 eval "$as_ac_var=no"
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11037 ac_res=`eval echo '${'$as_ac_var'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11040 if test `eval echo '${'$as_ac_var'}'` = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 _ACEOF
11044 GTK_COMPILES=yes
11046 done
11048 if test "${GTK_COMPILES}" != "yes"; then
11049 if test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11051 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11052 { (exit 1); exit 1; }; };
11054 else
11055 HAVE_GTK=yes
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_GTK 1
11059 _ACEOF
11061 USE_X_TOOLKIT=none
11067 if test "${HAVE_GTK}" = "yes"; then
11069 if test "$with_toolkit_scroll_bars" != no; then
11070 with_toolkit_scroll_bars=yes
11073 HAVE_GTK_MULTIDISPLAY=no
11075 for ac_func in gdk_display_open
11077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11098 #ifdef __STDC__
11099 # include <limits.h>
11100 #else
11101 # include <assert.h>
11102 #endif
11104 #undef $ac_func
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char $ac_func ();
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11117 choke me
11118 #endif
11121 main ()
11123 return $ac_func ();
11125 return 0;
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146 eval "$as_ac_var=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 eval "$as_ac_var=no"
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11157 ac_res=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 _ACEOF
11164 HAVE_GTK_MULTIDISPLAY=yes
11166 done
11168 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_GTK_MULTIDISPLAY 1
11172 _ACEOF
11176 HAVE_GTK_FILE_SELECTION=no
11178 for ac_func in gtk_file_selection_new
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11207 #undef $ac_func
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11220 choke me
11221 #endif
11224 main ()
11226 return $ac_func ();
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 eval "$as_ac_var=yes"
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 eval "$as_ac_var=no"
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11260 ac_res=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 _ACEOF
11267 HAVE_GTK_FILE_SELECTION=yes
11269 done
11272 HAVE_GTK_FILE_CHOOSER=no
11274 for ac_func in gtk_file_chooser_dialog_new
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11297 #ifdef __STDC__
11298 # include <limits.h>
11299 #else
11300 # include <assert.h>
11301 #endif
11303 #undef $ac_func
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char $ac_func ();
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11316 choke me
11317 #endif
11320 main ()
11322 return $ac_func ();
11324 return 0;
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345 eval "$as_ac_var=yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 eval "$as_ac_var=no"
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11356 ac_res=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 _ACEOF
11363 HAVE_GTK_FILE_CHOOSER=yes
11365 done
11368 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11369 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_GTK_FILE_BOTH 1
11373 _ACEOF
11377 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11378 HAVE_GTK_AND_PTHREAD=no
11380 for ac_header in pthread.h
11382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392 else
11393 # Is the header compilable?
11394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 #include <$ac_header>
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest.$ac_objext; then
11422 ac_header_compiler=yes
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_compiler=no
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <$ac_header>
11444 _ACEOF
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null && {
11458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 }; then
11461 ac_header_preproc=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_header_preproc=no
11469 rm -f conftest.err conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6; }
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11497 esac
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 eval "$as_ac_Header=\$ac_header_preproc"
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11517 done
11519 if test "$ac_cv_header_pthread_h"; then
11520 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11521 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11522 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lpthread $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char pthread_self ();
11542 main ()
11544 return pthread_self ();
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_pthread_pthread_self=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_pthread_pthread_self=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11579 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11580 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11581 if test $ac_cv_lib_pthread_pthread_self = yes; then
11582 HAVE_GTK_AND_PTHREAD=yes
11586 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11587 case "${canonical}" in
11588 *-hpux*) ;;
11589 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11590 esac
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_GTK_AND_PTHREAD 1
11594 _ACEOF
11600 HAVE_DBUS=no
11601 if test "${with_dbus}" = "yes"; then
11603 succeeded=no
11605 # Extract the first word of "pkg-config", so it can be a program name with args.
11606 set dummy pkg-config; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 case $PKG_CONFIG in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11628 done
11629 done
11630 IFS=$as_save_IFS
11632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11634 esac
11636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11637 if test -n "$PKG_CONFIG"; then
11638 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11639 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11640 else
11641 { echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6; }
11647 if test "$PKG_CONFIG" = "no" ; then
11648 HAVE_DBUS=no
11649 else
11650 PKG_CONFIG_MIN_VERSION=0.9.0
11651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11652 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11653 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11655 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11656 { echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6; }
11658 succeeded=yes
11660 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11661 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11662 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11663 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11664 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11666 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11667 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11668 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11669 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11670 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11671 else
11672 { echo "$as_me:$LINENO: result: no" >&5
11673 echo "${ECHO_T}no" >&6; }
11674 DBUS_CFLAGS=""
11675 DBUS_LIBS=""
11676 ## If we have a custom action on failure, don't print errors, but
11677 ## do set a variable so people can do so.
11678 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11684 else
11685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11690 if test $succeeded = yes; then
11691 HAVE_DBUS=yes
11692 else
11693 HAVE_DBUS=no
11696 if test "$HAVE_DBUS" = yes; then
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_DBUS 1
11700 _ACEOF
11705 HAVE_XAW3D=no
11706 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11707 if test "$with_xaw3d" != no; then
11708 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11709 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11710 if test "${emacs_cv_xaw3d+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11720 #include <X11/Intrinsic.h>
11721 #include <X11/Xaw3d/Simple.h>
11723 main ()
11727 return 0;
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest$ac_exeext &&
11747 $as_test_x conftest$ac_exeext; then
11748 emacs_cv_xaw3d=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 emacs_cv_xaw3d=no
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11760 else
11761 emacs_cv_xaw3d=no
11763 if test $emacs_cv_xaw3d = yes; then
11764 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11765 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11766 USE_X_TOOLKIT=LUCID
11767 HAVE_XAW3D=yes
11769 cat >>confdefs.h <<\_ACEOF
11770 #define HAVE_XAW3D 1
11771 _ACEOF
11773 else
11774 { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11776 { echo "$as_me:$LINENO: checking for libXaw" >&5
11777 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11778 if test "${emacs_cv_xaw+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #include <X11/Intrinsic.h>
11789 #include <X11/Xaw/Simple.h>
11791 main ()
11795 return 0;
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
11816 emacs_cv_xaw=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 emacs_cv_xaw=no
11824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825 conftest$ac_exeext conftest.$ac_ext
11828 if test $emacs_cv_xaw = yes; then
11829 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11830 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11831 USE_X_TOOLKIT=LUCID
11832 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11833 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11834 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11835 { (exit 1); exit 1; }; }
11836 else
11837 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11838 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11839 USE_X_TOOLKIT=none
11844 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11846 if test "${USE_X_TOOLKIT}" != "none"; then
11847 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11848 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11849 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <X11/Intrinsic.h>
11860 main ()
11862 #if XtSpecificationRelease < 6
11863 fail;
11864 #endif
11867 return 0;
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext &&
11887 $as_test_x conftest$ac_exeext; then
11888 emacs_cv_x11_toolkit_version_6=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 emacs_cv_x11_toolkit_version_6=no
11896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11897 conftest$ac_exeext conftest.$ac_ext
11900 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11901 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11902 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11903 echo "${ECHO_T}6 or newer" >&6; }
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_X11XTR6 1
11907 _ACEOF
11909 else
11910 { echo "$as_me:$LINENO: result: before 6" >&5
11911 echo "${ECHO_T}before 6" >&6; }
11914 OLDLIBS="$LIBS"
11915 if test x$HAVE_X11XTR6 = xyes; then
11916 LIBS="-lXt -lSM -lICE $LIBS"
11917 else
11918 LIBS="-lXt $LIBS"
11921 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11922 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11923 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lXmu $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char XmuConvertStandardSelection ();
11943 main ()
11945 return XmuConvertStandardSelection ();
11947 return 0;
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11981 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11982 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define HAVE_LIBXMU 1
11985 _ACEOF
11987 LIBS="-lXmu $LIBS"
11991 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11994 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${USE_X_TOOLKIT}" != "none"; then
11998 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11999 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXext $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char XShapeQueryExtension ();
12020 main ()
12022 return XShapeQueryExtension ();
12024 return 0;
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 ac_cv_lib_Xext_XShapeQueryExtension=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 ac_cv_lib_Xext_XShapeQueryExtension=no
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12059 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBXEXT 1
12062 _ACEOF
12064 LIBS="-lXext $LIBS"
12071 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12072 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12073 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12074 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <Xm/Xm.h>
12085 main ()
12087 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12088 int x = 5;
12089 #else
12090 Motif version prior to 2.1.
12091 #endif
12093 return 0;
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 if { (ac_try="$ac_compile"
12098 case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_compile") 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest.$ac_objext; then
12113 emacs_cv_motif_version_2_1=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 emacs_cv_motif_version_2_1=no
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12124 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12125 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12126 if test $emacs_cv_motif_version_2_1 = yes; then
12127 HAVE_LIBXP=no
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_MOTIF_2_1 1
12131 _ACEOF
12133 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12134 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12135 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138 ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-lXp $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char XpCreateContext ();
12155 main ()
12157 return XpCreateContext ();
12159 return 0;
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest$ac_exeext &&
12179 $as_test_x conftest$ac_exeext; then
12180 ac_cv_lib_Xp_XpCreateContext=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12185 ac_cv_lib_Xp_XpCreateContext=no
12188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12193 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12194 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12195 HAVE_LIBXP=yes
12198 if test ${HAVE_LIBXP} = yes; then
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_LIBXP 1
12202 _ACEOF
12205 else
12206 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12207 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12208 if test "${emacs_cv_lesstif+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 # We put this in CFLAGS temporarily to precede other -I options
12212 # that might be in CFLAGS temporarily.
12213 # We put this in CPPFLAGS where it precedes the other -I options.
12214 OLD_CPPFLAGS=$CPPFLAGS
12215 OLD_CFLAGS=$CFLAGS
12216 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12217 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12226 main ()
12228 int x = 5;
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 emacs_cv_lesstif=yes
12251 else
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 emacs_cv_lesstif=no
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12261 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12262 if test $emacs_cv_lesstif = yes; then
12263 # Make sure this -I option remains in CPPFLAGS after it is set
12264 # back to REAL_CPPFLAGS.
12265 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12266 # have those other -I options anyway. Ultimately, having this
12267 # directory ultimately in CPPFLAGS will be enough.
12268 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12269 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12270 else
12271 CFLAGS=$OLD_CFLAGS
12272 CPPFLAGS=$OLD_CPPFLAGS
12279 USE_TOOLKIT_SCROLL_BARS=no
12280 if test "${with_toolkit_scroll_bars}" != "no"; then
12281 if test "${USE_X_TOOLKIT}" != "none"; then
12282 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12283 cat >>confdefs.h <<\_ACEOF
12284 #define USE_TOOLKIT_SCROLL_BARS 1
12285 _ACEOF
12287 HAVE_XAW3D=no
12288 USE_TOOLKIT_SCROLL_BARS=yes
12289 elif test "${HAVE_XAW3D}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define USE_TOOLKIT_SCROLL_BARS 1
12292 _ACEOF
12294 USE_TOOLKIT_SCROLL_BARS=yes
12296 elif test "${HAVE_GTK}" = "yes"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12299 _ACEOF
12301 USE_TOOLKIT_SCROLL_BARS=yes
12302 elif test "${HAVE_CARBON}" = "yes"; then
12303 cat >>confdefs.h <<\_ACEOF
12304 #define USE_TOOLKIT_SCROLL_BARS 1
12305 _ACEOF
12307 USE_TOOLKIT_SCROLL_BARS=yes
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 #include <X11/Xlib.h>
12319 #include <X11/Xresource.h>
12321 main ()
12323 XIMProc callback;
12325 return 0;
12327 _ACEOF
12328 rm -f conftest.$ac_objext
12329 if { (ac_try="$ac_compile"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_compile") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest.$ac_objext; then
12345 HAVE_XIM=yes
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_XIM 1
12349 _ACEOF
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 HAVE_XIM=no
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 if test "${with_xim}" != "no"; then
12363 cat >>confdefs.h <<\_ACEOF
12364 #define USE_XIM 1
12365 _ACEOF
12370 if test "${HAVE_XIM}" != "no"; then
12371 late_CFLAGS=$CFLAGS
12372 if test "$GCC" = yes; then
12373 CFLAGS="$CFLAGS --pedantic-errors"
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 #include <X11/Xlib.h>
12383 #include <X11/Xresource.h>
12385 main ()
12387 Display *display;
12388 XrmDatabase db;
12389 char *res_name;
12390 char *res_class;
12391 XIMProc callback;
12392 XPointer *client_data;
12393 #ifndef __GNUC__
12394 /* If we're not using GCC, it's probably not XFree86, and this is
12395 probably right, but we can't use something like --pedantic-errors. */
12396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12397 char*, XIMProc, XPointer*);
12398 #endif
12399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12400 client_data);
12402 return 0;
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12422 emacs_cv_arg6_star=yes
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12435 _ACEOF
12437 else
12438 cat >>confdefs.h <<\_ACEOF
12439 #define XRegisterIMInstantiateCallback_arg6 XPointer
12440 _ACEOF
12443 CFLAGS=$late_CFLAGS
12446 #### For font-backend
12447 if test "${USE_FONT_BACKEND}" = "yes"; then
12450 cat >>confdefs.h <<\_ACEOF
12451 #define USE_FONT_BACKEND 1
12452 _ACEOF
12455 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12456 HAVE_XFT=maybe
12457 if test "${HAVE_X11}" = "yes"; then
12458 if test "x${with_freetype}" = "xno"; then
12459 with_xft="no";
12461 if test "x${with_xft}" != "xno"; then
12463 if test "X${with_pkg_config_prog}" != X; then
12464 PKG_CONFIG="${with_pkg_config_prog}"
12468 succeeded=no
12470 # Extract the first word of "pkg-config", so it can be a program name with args.
12471 set dummy pkg-config; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 case $PKG_CONFIG in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12493 done
12494 done
12495 IFS=$as_save_IFS
12497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12499 esac
12501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12502 if test -n "$PKG_CONFIG"; then
12503 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12504 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12505 else
12506 { echo "$as_me:$LINENO: result: no" >&5
12507 echo "${ECHO_T}no" >&6; }
12512 if test "$PKG_CONFIG" = "no" ; then
12513 HAVE_XFT=no
12514 else
12515 PKG_CONFIG_MIN_VERSION=0.9.0
12516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12517 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12518 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12520 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12521 { echo "$as_me:$LINENO: result: yes" >&5
12522 echo "${ECHO_T}yes" >&6; }
12523 succeeded=yes
12525 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12526 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12527 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12528 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12529 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12531 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12532 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12533 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12534 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12535 echo "${ECHO_T}$XFT_LIBS" >&6; }
12536 else
12537 { echo "$as_me:$LINENO: result: no" >&5
12538 echo "${ECHO_T}no" >&6; }
12539 XFT_CFLAGS=""
12540 XFT_LIBS=""
12541 ## If we have a custom action on failure, don't print errors, but
12542 ## do set a variable so people can do so.
12543 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12549 else
12550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12555 if test $succeeded = yes; then
12557 else
12558 HAVE_XFT=no
12561 if test "$HAVE_XFT" != no; then
12562 OLD_CPPFLAGS="$CPPFLAGS"
12563 OLD_CFLAGS="$CFLAGS"
12564 OLD_LIBS="$LIBS"
12565 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12566 CFLAGS="$CFLAGS $XFT_CFLAGS"
12567 LIBS="$XFT_LIBS $LIBS"
12568 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12569 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12570 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12576 else
12577 # Is the header compilable?
12578 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12579 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #include <X11/Xft/Xft.h>
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (ac_try="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_header_compiler=no
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616 echo "${ECHO_T}$ac_header_compiler" >&6; }
12618 # Is the header present?
12619 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12620 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 #include <X11/Xft/Xft.h>
12628 _ACEOF
12629 if { (ac_try="$ac_cpp conftest.$ac_ext"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev/null && {
12642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 }; then
12645 ac_header_preproc=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_header_preproc=no
12653 rm -f conftest.err conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6; }
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 yes:no: )
12660 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12666 no:yes:* )
12667 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12681 esac
12682 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12683 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12684 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12689 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12690 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12693 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12694 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12695 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lXft $XFT_LIBS $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char XftFontOpen ();
12716 main ()
12718 return XftFontOpen ();
12720 return 0;
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_Xft_XftFontOpen=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_Xft_XftFontOpen=no
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12755 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12756 HAVE_XFT=yes
12763 if test "${HAVE_XFT}" = "yes"; then
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_XFT 1
12767 _ACEOF
12770 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12771 else
12772 CPPFLAGS="$OLD_CPPFLAGS"
12773 CFLAGS="$OLD_CFLAGS"
12774 LIBS="$OLD_LIBS"
12780 HAVE_FREETYPE=no
12781 ### Use -lfreetype if available, unless `--with-freetype=no'.
12782 if test "${HAVE_XFT}" = "yes"; then
12783 HAVE_FREETYPE=yes
12784 elif test "x${with_freetype}" != "xno"; then
12785 if test "X${with_pkg_config_prog}" != X; then
12786 PKG_CONFIG="${with_pkg_config_prog}"
12790 succeeded=no
12792 # Extract the first word of "pkg-config", so it can be a program name with args.
12793 set dummy pkg-config; ac_word=$2
12794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 else
12799 case $PKG_CONFIG in
12800 [\\/]* | ?:[\\/]*)
12801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12807 IFS=$as_save_IFS
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12813 break 2
12815 done
12816 done
12817 IFS=$as_save_IFS
12819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12821 esac
12823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12824 if test -n "$PKG_CONFIG"; then
12825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12827 else
12828 { echo "$as_me:$LINENO: result: no" >&5
12829 echo "${ECHO_T}no" >&6; }
12834 if test "$PKG_CONFIG" = "no" ; then
12835 HAVE_FREETYPE=no
12836 else
12837 PKG_CONFIG_MIN_VERSION=0.9.0
12838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12839 { echo "$as_me:$LINENO: checking for freetype2" >&5
12840 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12842 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12843 { echo "$as_me:$LINENO: result: yes" >&5
12844 echo "${ECHO_T}yes" >&6; }
12845 succeeded=yes
12847 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12848 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12849 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12850 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12851 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12853 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12854 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12855 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12856 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12857 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12858 else
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12861 FREETYPE_CFLAGS=""
12862 FREETYPE_LIBS=""
12863 ## If we have a custom action on failure, don't print errors, but
12864 ## do set a variable so people can do so.
12865 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12871 else
12872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12877 if test $succeeded = yes; then
12878 HAVE_FREETYPE=yes
12879 else
12880 HAVE_FREETYPE=no
12883 if test "${HAVE_FREETYPE}" = "yes"; then
12885 succeeded=no
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 case $PKG_CONFIG in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12916 esac
12918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12922 else
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12929 if test "$PKG_CONFIG" = "no" ; then
12930 HAVE_FC=no
12931 else
12932 PKG_CONFIG_MIN_VERSION=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12935 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12940 succeeded=yes
12942 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12943 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12944 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12946 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12949 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12950 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12952 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12953 else
12954 { echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6; }
12956 FONTCONFIG_CFLAGS=""
12957 FONTCONFIG_LIBS=""
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12966 else
12967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12972 if test $succeeded = yes; then
12973 HAVE_FC=yes
12974 else
12975 HAVE_FC=no
12978 if test "${HAVE_FC}" = "no"; then
12979 HAVE_FREETYPE=no
12984 HAVE_LIBOTF=no
12985 if test "${HAVE_FREETYPE}" = "yes"; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_FREETYPE 1
12989 _ACEOF
12991 if test "${with_libotf}" != "no"; then
12992 if test "X${with_pkg_config_prog}" != X; then
12993 PKG_CONFIG="${with_pkg_config_prog}"
12996 succeeded=no
12998 # Extract the first word of "pkg-config", so it can be a program name with args.
12999 set dummy pkg-config; ac_word=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005 case $PKG_CONFIG in
13006 [\\/]* | ?:[\\/]*)
13007 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13011 for as_dir in $PATH
13013 IFS=$as_save_IFS
13014 test -z "$as_dir" && as_dir=.
13015 for ac_exec_ext in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13019 break 2
13021 done
13022 done
13023 IFS=$as_save_IFS
13025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13027 esac
13029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13030 if test -n "$PKG_CONFIG"; then
13031 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13032 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13033 else
13034 { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13040 if test "$PKG_CONFIG" = "no" ; then
13041 pkg_check_libotf=no
13042 else
13043 PKG_CONFIG_MIN_VERSION=0.9.0
13044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13045 { echo "$as_me:$LINENO: checking for libotf" >&5
13046 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13048 if $PKG_CONFIG --exists "libotf" 2>&5; then
13049 { echo "$as_me:$LINENO: result: yes" >&5
13050 echo "${ECHO_T}yes" >&6; }
13051 succeeded=yes
13053 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13054 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13055 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13056 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13057 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13059 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13060 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13061 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13062 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13063 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13064 else
13065 { echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6; }
13067 LIBOTF_CFLAGS=""
13068 LIBOTF_LIBS=""
13069 ## If we have a custom action on failure, don't print errors, but
13070 ## do set a variable so people can do so.
13071 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13077 else
13078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13083 if test $succeeded = yes; then
13084 pkg_check_libotf=yes
13085 else
13086 pkg_check_libotf=no
13089 if test "$pkg_check_libotf" = "yes"; then
13091 cat >>confdefs.h <<\_ACEOF
13092 #define HAVE_LIBOTF 1
13093 _ACEOF
13099 HAVE_M17N_FLT=no
13100 if test "${with_m17n_flt}" != "no"; then
13101 if test "X${with_pkg_config_prog}" != X; then
13102 PKG_CONFIG="${with_pkg_config_prog}"
13105 succeeded=no
13107 # Extract the first word of "pkg-config", so it can be a program name with args.
13108 set dummy pkg-config; ac_word=$2
13109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13111 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 case $PKG_CONFIG in
13115 [\\/]* | ?:[\\/]*)
13116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 for as_dir in $PATH
13122 IFS=$as_save_IFS
13123 test -z "$as_dir" && as_dir=.
13124 for ac_exec_ext in '' $ac_executable_extensions; do
13125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13126 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 break 2
13130 done
13131 done
13132 IFS=$as_save_IFS
13134 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13136 esac
13138 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13139 if test -n "$PKG_CONFIG"; then
13140 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13141 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13142 else
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13149 if test "$PKG_CONFIG" = "no" ; then
13150 pkg_check_m17n_flt=no
13151 else
13152 PKG_CONFIG_MIN_VERSION=0.9.0
13153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13154 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13155 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13157 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13158 { echo "$as_me:$LINENO: result: yes" >&5
13159 echo "${ECHO_T}yes" >&6; }
13160 succeeded=yes
13162 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13163 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13164 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13165 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13166 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13168 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13169 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13170 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13171 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13172 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13173 else
13174 { echo "$as_me:$LINENO: result: no" >&5
13175 echo "${ECHO_T}no" >&6; }
13176 M17N_FLT_CFLAGS=""
13177 M17N_FLT_LIBS=""
13178 ## If we have a custom action on failure, don't print errors, but
13179 ## do set a variable so people can do so.
13180 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13186 else
13187 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13188 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13192 if test $succeeded = yes; then
13193 pkg_check_m17n_flt=yes
13194 else
13195 pkg_check_m17n_flt=no
13198 if test "$pkg_check_m17n_flt" = "yes"; then
13200 cat >>confdefs.h <<\_ACEOF
13201 #define HAVE_M17N_FLT 1
13202 _ACEOF
13217 #### End for font-backend
13219 ### Use -lXpm if available, unless `--with-xpm=no'.
13220 HAVE_XPM=no
13221 if test "${HAVE_X11}" = "yes"; then
13222 if test "${with_xpm}" != "no"; then
13223 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13224 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13225 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13226 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13230 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13231 else
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13234 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <X11/xpm.h>
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_header_compiler=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_compiler=no
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6; }
13273 # Is the header present?
13274 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13275 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <X11/xpm.h>
13283 _ACEOF
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null && {
13297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 }; then
13300 ac_header_preproc=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_header_preproc=no
13308 rm -f conftest.err conftest.$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310 echo "${ECHO_T}$ac_header_preproc" >&6; }
13312 # So? What about this header?
13313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314 yes:no: )
13315 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13316 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc=yes
13321 no:yes:* )
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13325 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13327 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13329 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13336 esac
13337 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13338 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 ac_cv_header_X11_xpm_h=$ac_header_preproc
13344 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13345 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13348 if test $ac_cv_header_X11_xpm_h = yes; then
13349 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13350 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13351 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354 ac_check_lib_save_LIBS=$LIBS
13355 LIBS="-lXpm -lX11 $LIBS"
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 char XpmReadFileToPixmap ();
13371 main ()
13373 return XpmReadFileToPixmap ();
13375 return 0;
13377 _ACEOF
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (ac_try="$ac_link"
13380 case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_link") 2>conftest.er1
13386 ac_status=$?
13387 grep -v '^ *+' conftest.er1 >conftest.err
13388 rm -f conftest.er1
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && {
13392 test -z "$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13394 } && test -s conftest$ac_exeext &&
13395 $as_test_x conftest$ac_exeext; then
13396 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13409 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13410 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13411 HAVE_XPM=yes
13417 if test "${HAVE_XPM}" = "yes"; then
13418 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13419 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include "X11/xpm.h"
13427 #ifndef XpmReturnAllocPixels
13428 no_return_alloc_pixels
13429 #endif
13431 _ACEOF
13432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13433 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13434 HAVE_XPM=no
13435 else
13436 HAVE_XPM=yes
13438 rm -f conftest*
13441 if test "${HAVE_XPM}" = "yes"; then
13442 { echo "$as_me:$LINENO: result: yes" >&5
13443 echo "${ECHO_T}yes" >&6; }
13444 else
13445 { echo "$as_me:$LINENO: result: no" >&5
13446 echo "${ECHO_T}no" >&6; }
13451 if test "${HAVE_XPM}" = "yes"; then
13453 cat >>confdefs.h <<\_ACEOF
13454 #define HAVE_XPM 1
13455 _ACEOF
13460 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13461 HAVE_JPEG=no
13462 if test "${HAVE_X11}" = "yes"; then
13463 if test "${with_jpeg}" != "no"; then
13464 if test "${ac_cv_header_jerror_h+set}" = set; then
13465 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13466 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13467 if test "${ac_cv_header_jerror_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13471 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13472 else
13473 # Is the header compilable?
13474 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13475 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h. */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 $ac_includes_default
13483 #include <jerror.h>
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_compile") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest.$ac_objext; then
13502 ac_header_compiler=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_header_compiler=no
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13512 echo "${ECHO_T}$ac_header_compiler" >&6; }
13514 # Is the header present?
13515 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13516 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <jerror.h>
13524 _ACEOF
13525 if { (ac_try="$ac_cpp conftest.$ac_ext"
13526 case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } >/dev/null && {
13538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13539 test ! -s conftest.err
13540 }; then
13541 ac_header_preproc=yes
13542 else
13543 echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13546 ac_header_preproc=no
13549 rm -f conftest.err conftest.$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13551 echo "${ECHO_T}$ac_header_preproc" >&6; }
13553 # So? What about this header?
13554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13555 yes:no: )
13556 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13557 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13559 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13560 ac_header_preproc=yes
13562 no:yes:* )
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13564 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13566 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13568 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13570 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13572 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13574 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13577 esac
13578 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13579 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13580 if test "${ac_cv_header_jerror_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583 ac_cv_header_jerror_h=$ac_header_preproc
13585 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13586 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13589 if test $ac_cv_header_jerror_h = yes; then
13590 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13591 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13592 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-ljpeg $LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13607 #ifdef __cplusplus
13608 extern "C"
13609 #endif
13610 char jpeg_destroy_compress ();
13612 main ()
13614 return jpeg_destroy_compress ();
13616 return 0;
13618 _ACEOF
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13624 esac
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13627 ac_status=$?
13628 grep -v '^ *+' conftest.er1 >conftest.err
13629 rm -f conftest.er1
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest$ac_exeext &&
13636 $as_test_x conftest$ac_exeext; then
13637 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13638 else
13639 echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13642 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13650 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13651 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13652 HAVE_JPEG=yes
13661 if test "${HAVE_JPEG}" = "yes"; then
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_JPEG 1
13664 _ACEOF
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 #include <jpeglib.h>
13673 version=JPEG_LIB_VERSION
13675 _ACEOF
13676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13677 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13678 cat >>confdefs.h <<\_ACEOF
13679 #define HAVE_JPEG 1
13680 _ACEOF
13682 else
13683 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13684 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13685 HAVE_JPEG=no
13687 rm -f conftest*
13692 ### Use -lpng if available, unless `--with-png=no'.
13693 HAVE_PNG=no
13694 if test "${HAVE_X11}" = "yes"; then
13695 if test "${with_png}" != "no"; then
13696 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13697 # in /usr/include/libpng.
13700 for ac_header in png.h libpng/png.h
13702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_res=`eval echo '${'$as_ac_Header'}'`
13710 { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13712 else
13713 # Is the header compilable?
13714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h. */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 #include <$ac_header>
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (ac_try="$ac_compile"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest.$ac_objext; then
13742 ac_header_compiler=yes
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_header_compiler=no
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 echo "${ECHO_T}$ac_header_compiler" >&6; }
13754 # Is the header present?
13755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <$ac_header>
13764 _ACEOF
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13772 ac_status=$?
13773 grep -v '^ *+' conftest.er1 >conftest.err
13774 rm -f conftest.er1
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } >/dev/null && {
13778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 }; then
13781 ac_header_preproc=yes
13782 else
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_header_preproc=no
13789 rm -f conftest.err conftest.$ac_ext
13790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13791 echo "${ECHO_T}$ac_header_preproc" >&6; }
13793 # So? What about this header?
13794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13795 yes:no: )
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13800 ac_header_preproc=yes
13802 no:yes:* )
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13817 esac
13818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823 eval "$as_ac_Header=\$ac_header_preproc"
13825 ac_res=`eval echo '${'$as_ac_Header'}'`
13826 { echo "$as_me:$LINENO: result: $ac_res" >&5
13827 echo "${ECHO_T}$ac_res" >&6; }
13830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831 cat >>confdefs.h <<_ACEOF
13832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833 _ACEOF
13837 done
13839 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13840 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13841 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13842 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 else
13845 ac_check_lib_save_LIBS=$LIBS
13846 LIBS="-lpng -lz -lm $LIBS"
13847 cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h. */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13854 /* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13857 #ifdef __cplusplus
13858 extern "C"
13859 #endif
13860 char png_get_channels ();
13862 main ()
13864 return png_get_channels ();
13866 return 0;
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13877 ac_status=$?
13878 grep -v '^ *+' conftest.er1 >conftest.err
13879 rm -f conftest.er1
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13887 ac_cv_lib_png_png_get_channels=yes
13888 else
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_lib_png_png_get_channels=no
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13899 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13900 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13901 if test $ac_cv_lib_png_png_get_channels = yes; then
13902 HAVE_PNG=yes
13908 if test "${HAVE_PNG}" = "yes"; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define HAVE_PNG 1
13912 _ACEOF
13917 ### Use -ltiff if available, unless `--with-tiff=no'.
13918 HAVE_TIFF=no
13919 if test "${HAVE_X11}" = "yes"; then
13920 if test "${with_tiff}" != "no"; then
13921 if test "${ac_cv_header_tiffio_h+set}" = set; then
13922 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13923 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_tiffio_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13929 else
13930 # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13932 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h. */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13940 #include <tiffio.h>
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13959 ac_header_compiler=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_header_compiler=no
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6; }
13971 # Is the header present?
13972 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13973 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h. */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <tiffio.h>
13981 _ACEOF
13982 if { (ac_try="$ac_cpp conftest.$ac_ext"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null && {
13995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 }; then
13998 ac_header_preproc=yes
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14010 # So? What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012 yes:no: )
14013 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14017 ac_header_preproc=yes
14019 no:yes:* )
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14034 esac
14035 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14036 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_tiffio_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040 ac_cv_header_tiffio_h=$ac_header_preproc
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14043 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14046 if test $ac_cv_header_tiffio_h = yes; then
14047 tifflibs="-lz -lm"
14048 # At least one tiff package requires the jpeg library.
14049 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14050 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14051 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14052 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-ltiff $tifflibs $LIBS"
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14064 /* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 char TIFFGetVersion ();
14072 main ()
14074 return TIFFGetVersion ();
14076 return 0;
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest$ac_exeext &&
14096 $as_test_x conftest$ac_exeext; then
14097 ac_cv_lib_tiff_TIFFGetVersion=yes
14098 else
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_lib_tiff_TIFFGetVersion=no
14105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14109 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14110 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14111 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14112 HAVE_TIFF=yes
14120 if test "${HAVE_TIFF}" = "yes"; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_TIFF 1
14124 _ACEOF
14129 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14130 HAVE_GIF=no
14131 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14132 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14139 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14140 else
14141 # Is the header compilable?
14142 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14143 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 #include <gif_lib.h>
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14170 ac_header_compiler=yes
14171 else
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_header_compiler=no
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14180 echo "${ECHO_T}$ac_header_compiler" >&6; }
14182 # Is the header present?
14183 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14184 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14185 cat >conftest.$ac_ext <<_ACEOF
14186 /* confdefs.h. */
14187 _ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 #include <gif_lib.h>
14192 _ACEOF
14193 if { (ac_try="$ac_cpp conftest.$ac_ext"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } >/dev/null && {
14206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 }; then
14209 ac_header_preproc=yes
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_header_preproc=no
14217 rm -f conftest.err conftest.$ac_ext
14218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14219 echo "${ECHO_T}$ac_header_preproc" >&6; }
14221 # So? What about this header?
14222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14223 yes:no: )
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14225 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14227 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14228 ac_header_preproc=yes
14230 no:yes:* )
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14232 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14234 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14236 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14238 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14240 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14242 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14245 esac
14246 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14247 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14248 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251 ac_cv_header_gif_lib_h=$ac_header_preproc
14253 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14254 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14257 if test $ac_cv_header_gif_lib_h = yes; then
14258 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14259 # Earlier versions can crash Emacs.
14260 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14261 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14262 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264 else
14265 ac_check_lib_save_LIBS=$LIBS
14266 LIBS="-lgif $LIBS"
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14274 /* Override any GCC internal prototype to avoid an error.
14275 Use char because int might match the return type of a GCC
14276 builtin and then its argument prototype would still apply. */
14277 #ifdef __cplusplus
14278 extern "C"
14279 #endif
14280 char EGifPutExtensionLast ();
14282 main ()
14284 return EGifPutExtensionLast ();
14286 return 0;
14288 _ACEOF
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (ac_try="$ac_link"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_link") 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest$ac_exeext &&
14306 $as_test_x conftest$ac_exeext; then
14307 ac_cv_lib_gif_EGifPutExtensionLast=yes
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_cv_lib_gif_EGifPutExtensionLast=no
14315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14320 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14321 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14322 HAVE_GIF=yes
14323 else
14324 try_libungif=yes
14331 if test "$HAVE_GIF" = yes; then
14332 ac_gif_lib_name="-lgif"
14335 # If gif_lib.h but no libgif, try libungif.
14336 if test x"$try_libungif" = xyes; then
14337 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14338 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14339 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 else
14342 ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-lungif $LIBS"
14344 cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h. */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14354 #ifdef __cplusplus
14355 extern "C"
14356 #endif
14357 char EGifPutExtensionLast ();
14359 main ()
14361 return EGifPutExtensionLast ();
14363 return 0;
14365 _ACEOF
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_link") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest$ac_exeext &&
14383 $as_test_x conftest$ac_exeext; then
14384 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14385 else
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14389 ac_cv_lib_ungif_EGifPutExtensionLast=no
14392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14393 conftest$ac_exeext conftest.$ac_ext
14394 LIBS=$ac_check_lib_save_LIBS
14396 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14397 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14398 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14399 HAVE_GIF=yes
14403 if test "$HAVE_GIF" = yes; then
14405 cat >>confdefs.h <<\_ACEOF
14406 #define LIBGIF -lungif
14407 _ACEOF
14409 ac_gif_lib_name="-lungif"
14413 if test "${HAVE_GIF}" = "yes"; then
14415 cat >>confdefs.h <<\_ACEOF
14416 #define HAVE_GIF 1
14417 _ACEOF
14422 if test "${HAVE_X11}" = "yes"; then
14423 MISSING=""
14424 WITH_NO=""
14425 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14426 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14427 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14428 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14429 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14430 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14431 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14432 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14433 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14434 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14436 if test "X${MISSING}" != X; then
14437 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14438 $MISSING
14439 Maybe some development libraries/packages are missing?
14440 If you don't want to link with them give
14441 $WITH_NO
14442 as options to configure" >&5
14443 echo "$as_me: error: The following required libraries were not found:
14444 $MISSING
14445 Maybe some development libraries/packages are missing?
14446 If you don't want to link with them give
14447 $WITH_NO
14448 as options to configure" >&2;}
14449 { (exit 1); exit 1; }; }
14453 ### Use -lgpm if available, unless `--with-gpm=no'.
14454 HAVE_GPM=no
14455 if test "${with_gpm}" != "no"; then
14456 if test "${ac_cv_header_gpm_h+set}" = set; then
14457 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14458 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_gpm_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14463 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14464 else
14465 # Is the header compilable?
14466 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14467 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14468 cat >conftest.$ac_ext <<_ACEOF
14469 /* confdefs.h. */
14470 _ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14475 #include <gpm.h>
14476 _ACEOF
14477 rm -f conftest.$ac_objext
14478 if { (ac_try="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14482 esac
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14485 ac_status=$?
14486 grep -v '^ *+' conftest.er1 >conftest.err
14487 rm -f conftest.er1
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest.$ac_objext; then
14494 ac_header_compiler=yes
14495 else
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_header_compiler=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14504 echo "${ECHO_T}$ac_header_compiler" >&6; }
14506 # Is the header present?
14507 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14508 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h. */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 #include <gpm.h>
14516 _ACEOF
14517 if { (ac_try="$ac_cpp conftest.$ac_ext"
14518 case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14524 ac_status=$?
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } >/dev/null && {
14530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14531 test ! -s conftest.err
14532 }; then
14533 ac_header_preproc=yes
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 ac_header_preproc=no
14541 rm -f conftest.err conftest.$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14543 echo "${ECHO_T}$ac_header_preproc" >&6; }
14545 # So? What about this header?
14546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14547 yes:no: )
14548 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14549 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14551 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14552 ac_header_preproc=yes
14554 no:yes:* )
14555 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14556 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14558 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14560 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14562 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14564 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14566 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14569 esac
14570 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14571 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14572 if test "${ac_cv_header_gpm_h+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575 ac_cv_header_gpm_h=$ac_header_preproc
14577 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14578 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14581 if test $ac_cv_header_gpm_h = yes; then
14582 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14583 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14584 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 ac_check_lib_save_LIBS=$LIBS
14588 LIBS="-lgpm $LIBS"
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 char Gpm_Open ();
14604 main ()
14606 return Gpm_Open ();
14608 return 0;
14610 _ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (ac_try="$ac_link"
14613 case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616 esac
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext &&
14628 $as_test_x conftest$ac_exeext; then
14629 ac_cv_lib_gpm_Gpm_Open=yes
14630 else
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_lib_gpm_Gpm_Open=no
14637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LIBS=$ac_check_lib_save_LIBS
14641 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14642 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14643 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14644 HAVE_GPM=yes
14652 if test "${HAVE_GPM}" = "yes"; then
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_GPM 1
14656 _ACEOF
14660 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14661 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14662 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14663 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14667 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14668 else
14669 # Is the header compilable?
14670 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14671 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h. */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 $ac_includes_default
14679 #include <malloc/malloc.h>
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14685 *) ac_try_echo=$ac_try;;
14686 esac
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.$ac_objext; then
14698 ac_header_compiler=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14703 ac_header_compiler=no
14706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14708 echo "${ECHO_T}$ac_header_compiler" >&6; }
14710 # Is the header present?
14711 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14712 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14713 cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h. */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <malloc/malloc.h>
14720 _ACEOF
14721 if { (ac_try="$ac_cpp conftest.$ac_ext"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725 esac
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14728 ac_status=$?
14729 grep -v '^ *+' conftest.er1 >conftest.err
14730 rm -f conftest.er1
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } >/dev/null && {
14734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14735 test ! -s conftest.err
14736 }; then
14737 ac_header_preproc=yes
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_header_preproc=no
14745 rm -f conftest.err conftest.$ac_ext
14746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14747 echo "${ECHO_T}$ac_header_preproc" >&6; }
14749 # So? What about this header?
14750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14751 yes:no: )
14752 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14753 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14755 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14756 ac_header_preproc=yes
14758 no:yes:* )
14759 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14760 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14762 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14764 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14766 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14773 esac
14774 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14775 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14776 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 else
14779 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14781 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14782 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14785 if test $ac_cv_header_malloc_malloc_h = yes; then
14787 cat >>confdefs.h <<\_ACEOF
14788 #define HAVE_MALLOC_MALLOC_H 1
14789 _ACEOF
14795 ### Use Mac OS X Carbon API to implement GUI.
14796 if test "${HAVE_CARBON}" = "yes"; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_CARBON 1
14800 _ACEOF
14802 ## Specify the install directory
14803 carbon_appdir=
14804 if test "${carbon_appdir_x}" != ""; then
14805 case ${carbon_appdir_x} in
14806 y | ye | yes) carbon_appdir=/Applications ;;
14807 * ) carbon_appdir=${carbon_appdir_x} ;;
14808 esac
14810 # We also have mouse menus.
14811 HAVE_MENUS=yes
14814 ### Use session management (-lSM -lICE) if available
14815 HAVE_X_SM=no
14816 if test "${HAVE_X11}" = "yes"; then
14817 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14818 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14819 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14820 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14824 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14825 else
14826 # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14828 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h. */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 #include <X11/SM/SMlib.h>
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 ac_header_compiler=yes
14856 else
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_header_compiler=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14869 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h. */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <X11/SM/SMlib.h>
14877 _ACEOF
14878 if { (ac_try="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14885 ac_status=$?
14886 grep -v '^ *+' conftest.er1 >conftest.err
14887 rm -f conftest.er1
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev/null && {
14891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14893 }; then
14894 ac_header_preproc=yes
14895 else
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_preproc=no
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14906 # So? What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14908 yes:no: )
14909 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14915 no:yes:* )
14916 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14930 esac
14931 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14932 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14933 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14938 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14939 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14942 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14943 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14944 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14945 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lSM -lICE $LIBS"
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14960 #ifdef __cplusplus
14961 extern "C"
14962 #endif
14963 char SmcOpenConnection ();
14965 main ()
14967 return SmcOpenConnection ();
14969 return 0;
14971 _ACEOF
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest$ac_exeext &&
14989 $as_test_x conftest$ac_exeext; then
14990 ac_cv_lib_SM_SmcOpenConnection=yes
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_lib_SM_SmcOpenConnection=no
14998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15003 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15004 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15005 HAVE_X_SM=yes
15012 if test "${HAVE_X_SM}" = "yes"; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_X_SM 1
15016 _ACEOF
15018 case "$LIBS" in
15019 *-lSM*) ;;
15020 *) LIBS="-lSM -lICE $LIBS" ;;
15021 esac
15025 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15026 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15027 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15028 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 #include <netdb.h>
15039 main ()
15041 return h_errno;
15043 return 0;
15045 _ACEOF
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (ac_try="$ac_link"
15048 case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext &&
15063 $as_test_x conftest$ac_exeext; then
15064 emacs_cv_netdb_declares_h_errno=yes
15065 else
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 emacs_cv_netdb_declares_h_errno=no
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15076 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15077 if test $emacs_cv_netdb_declares_h_errno = yes; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE_H_ERRNO 1
15081 _ACEOF
15085 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15086 # for constant arguments. Useless!
15087 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15088 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15089 if test "${ac_cv_working_alloca_h+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 #include <alloca.h>
15100 main ()
15102 char *p = (char *) alloca (2 * sizeof (int));
15103 if (p) return 0;
15105 return 0;
15107 _ACEOF
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_link") 2>conftest.er1
15116 ac_status=$?
15117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest$ac_exeext &&
15125 $as_test_x conftest$ac_exeext; then
15126 ac_cv_working_alloca_h=yes
15127 else
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15131 ac_cv_working_alloca_h=no
15134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15135 conftest$ac_exeext conftest.$ac_ext
15137 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15138 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15139 if test $ac_cv_working_alloca_h = yes; then
15141 cat >>confdefs.h <<\_ACEOF
15142 #define HAVE_ALLOCA_H 1
15143 _ACEOF
15147 { echo "$as_me:$LINENO: checking for alloca" >&5
15148 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15149 if test "${ac_cv_func_alloca_works+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #ifdef __GNUC__
15159 # define alloca __builtin_alloca
15160 #else
15161 # ifdef _MSC_VER
15162 # include <malloc.h>
15163 # define alloca _alloca
15164 # else
15165 # ifdef HAVE_ALLOCA_H
15166 # include <alloca.h>
15167 # else
15168 # ifdef _AIX
15169 #pragma alloca
15170 # else
15171 # ifndef alloca /* predefined by HP cc +Olibcalls */
15172 char *alloca ();
15173 # endif
15174 # endif
15175 # endif
15176 # endif
15177 #endif
15180 main ()
15182 char *p = (char *) alloca (1);
15183 if (p) return 0;
15185 return 0;
15187 _ACEOF
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_func_alloca_works=yes
15207 else
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_cv_func_alloca_works=no
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15218 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15220 if test $ac_cv_func_alloca_works = yes; then
15222 cat >>confdefs.h <<\_ACEOF
15223 #define HAVE_ALLOCA 1
15224 _ACEOF
15226 else
15227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15228 # that cause trouble. Some versions do not even contain alloca or
15229 # contain a buggy version. If you still want to use their alloca,
15230 # use ar to extract alloca.o from them instead of compiling alloca.c.
15232 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15234 cat >>confdefs.h <<\_ACEOF
15235 #define C_ALLOCA 1
15236 _ACEOF
15239 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15240 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15241 if test "${ac_cv_os_cray+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #if defined CRAY && ! defined CRAY2
15251 webecray
15252 #else
15253 wenotbecray
15254 #endif
15256 _ACEOF
15257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15258 $EGREP "webecray" >/dev/null 2>&1; then
15259 ac_cv_os_cray=yes
15260 else
15261 ac_cv_os_cray=no
15263 rm -f conftest*
15266 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15267 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15268 if test $ac_cv_os_cray = yes; then
15269 for ac_func in _getb67 GETB67 getb67; do
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h. */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15291 #ifdef __STDC__
15292 # include <limits.h>
15293 #else
15294 # include <assert.h>
15295 #endif
15297 #undef $ac_func
15299 /* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 char $ac_func ();
15306 /* The GNU C library defines this for functions which it implements
15307 to always fail with ENOSYS. Some functions are actually named
15308 something starting with __ and the normal name is an alias. */
15309 #if defined __stub_$ac_func || defined __stub___$ac_func
15310 choke me
15311 #endif
15314 main ()
15316 return $ac_func ();
15318 return 0;
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (ac_try="$ac_link"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_link") 2>conftest.er1
15329 ac_status=$?
15330 grep -v '^ *+' conftest.er1 >conftest.err
15331 rm -f conftest.er1
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest$ac_exeext &&
15338 $as_test_x conftest$ac_exeext; then
15339 eval "$as_ac_var=yes"
15340 else
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 eval "$as_ac_var=no"
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15350 ac_res=`eval echo '${'$as_ac_var'}'`
15351 { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define CRAY_STACKSEG_END $ac_func
15357 _ACEOF
15359 break
15362 done
15365 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15366 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15367 if test "${ac_cv_c_stack_direction+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 else
15370 if test "$cross_compiling" = yes; then
15371 ac_cv_c_stack_direction=0
15372 else
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h. */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 $ac_includes_default
15381 find_stack_direction ()
15383 static char *addr = 0;
15384 auto char dummy;
15385 if (addr == 0)
15387 addr = &dummy;
15388 return find_stack_direction ();
15390 else
15391 return (&dummy > addr) ? 1 : -1;
15395 main ()
15397 return find_stack_direction () < 0;
15399 _ACEOF
15400 rm -f conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>&5
15408 ac_status=$?
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15411 { (case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_try") 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_c_stack_direction=1
15421 else
15422 echo "$as_me: program exited with status $ac_status" >&5
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ( exit $ac_status )
15427 ac_cv_c_stack_direction=-1
15429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15435 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15437 cat >>confdefs.h <<_ACEOF
15438 #define STACK_DIRECTION $ac_cv_c_stack_direction
15439 _ACEOF
15445 if test x"$ac_cv_func_alloca_works" != xyes; then
15446 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15447 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15448 { (exit 1); exit 1; }; }
15451 # fmod, logb, and frexp are found in -lm on most systems.
15452 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15454 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15455 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15456 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459 ac_check_lib_save_LIBS=$LIBS
15460 LIBS="-lm $LIBS"
15461 cat >conftest.$ac_ext <<_ACEOF
15462 /* confdefs.h. */
15463 _ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 /* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15471 #ifdef __cplusplus
15472 extern "C"
15473 #endif
15474 char sqrt ();
15476 main ()
15478 return sqrt ();
15480 return 0;
15482 _ACEOF
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15491 ac_status=$?
15492 grep -v '^ *+' conftest.er1 >conftest.err
15493 rm -f conftest.er1
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
15501 ac_cv_lib_m_sqrt=yes
15502 else
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_cv_lib_m_sqrt=no
15509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15510 conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15513 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15514 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15515 if test $ac_cv_lib_m_sqrt = yes; then
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_LIBM 1
15518 _ACEOF
15520 LIBS="-lm $LIBS"
15525 # Check for mail-locking functions in a "mail" library. Probably this should
15526 # have the same check as for liblockfile below.
15528 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15529 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15530 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533 ac_check_lib_save_LIBS=$LIBS
15534 LIBS="-lmail $LIBS"
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char maillock ();
15550 main ()
15552 return maillock ();
15554 return 0;
15556 _ACEOF
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_link") 2>conftest.er1
15565 ac_status=$?
15566 grep -v '^ *+' conftest.er1 >conftest.err
15567 rm -f conftest.er1
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_c_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest$ac_exeext &&
15574 $as_test_x conftest$ac_exeext; then
15575 ac_cv_lib_mail_maillock=yes
15576 else
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_cv_lib_mail_maillock=no
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15587 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15588 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15589 if test $ac_cv_lib_mail_maillock = yes; then
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_LIBMAIL 1
15592 _ACEOF
15594 LIBS="-lmail $LIBS"
15599 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15600 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15601 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-llockfile $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15616 #ifdef __cplusplus
15617 extern "C"
15618 #endif
15619 char maillock ();
15621 main ()
15623 return maillock ();
15625 return 0;
15627 _ACEOF
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (ac_try="$ac_link"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633 esac
15634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_link") 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest$ac_exeext &&
15645 $as_test_x conftest$ac_exeext; then
15646 ac_cv_lib_lockfile_maillock=yes
15647 else
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_lockfile_maillock=no
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15659 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15660 if test $ac_cv_lib_lockfile_maillock = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_LIBLOCKFILE 1
15663 _ACEOF
15665 LIBS="-llockfile $LIBS"
15669 # If we have the shared liblockfile, assume we must use it for mail
15670 # locking (e.g. Debian). If we couldn't link against liblockfile
15671 # (no liblockfile.a installed), ensure that we don't need to.
15672 if test "$ac_cv_lib_lockfile_maillock" = no; then
15673 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15674 set dummy liblockfile.so; ac_word=$2
15675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15677 if test "${ac_cv_prog_liblockfile+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680 if test -n "$liblockfile"; then
15681 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15682 else
15683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15684 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15685 for as_dir in $as_dummy
15687 IFS=$as_save_IFS
15688 test -z "$as_dir" && as_dir=.
15689 for ac_exec_ext in '' $ac_executable_extensions; do
15690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15691 ac_cv_prog_liblockfile="yes"
15692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15693 break 2
15695 done
15696 done
15697 IFS=$as_save_IFS
15699 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15702 liblockfile=$ac_cv_prog_liblockfile
15703 if test -n "$liblockfile"; then
15704 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15705 echo "${ECHO_T}$liblockfile" >&6; }
15706 else
15707 { echo "$as_me:$LINENO: result: no" >&5
15708 echo "${ECHO_T}no" >&6; }
15712 if test $ac_cv_prog_liblockfile = yes; then
15713 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15714 This probably means that movemail could lose mail.
15715 There may be a \`development' package to install containing liblockfile." >&5
15716 echo "$as_me: error: Shared liblockfile found but can't link against it.
15717 This probably means that movemail could lose mail.
15718 There may be a \`development' package to install containing liblockfile." >&2;}
15719 { (exit 1); exit 1; }; }
15720 else :
15724 for ac_func in touchlock
15726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15740 #define $ac_func innocuous_$ac_func
15742 /* System header to define __stub macros and hopefully few prototypes,
15743 which can conflict with char $ac_func (); below.
15744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745 <limits.h> exists even on freestanding compilers. */
15747 #ifdef __STDC__
15748 # include <limits.h>
15749 #else
15750 # include <assert.h>
15751 #endif
15753 #undef $ac_func
15755 /* Override any GCC internal prototype to avoid an error.
15756 Use char because int might match the return type of a GCC
15757 builtin and then its argument prototype would still apply. */
15758 #ifdef __cplusplus
15759 extern "C"
15760 #endif
15761 char $ac_func ();
15762 /* The GNU C library defines this for functions which it implements
15763 to always fail with ENOSYS. Some functions are actually named
15764 something starting with __ and the normal name is an alias. */
15765 #if defined __stub_$ac_func || defined __stub___$ac_func
15766 choke me
15767 #endif
15770 main ()
15772 return $ac_func ();
15774 return 0;
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_link") 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && {
15791 test -z "$ac_c_werror_flag" ||
15792 test ! -s conftest.err
15793 } && test -s conftest$ac_exeext &&
15794 $as_test_x conftest$ac_exeext; then
15795 eval "$as_ac_var=yes"
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 eval "$as_ac_var=no"
15803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15804 conftest$ac_exeext conftest.$ac_ext
15806 ac_res=`eval echo '${'$as_ac_var'}'`
15807 { echo "$as_me:$LINENO: result: $ac_res" >&5
15808 echo "${ECHO_T}$ac_res" >&6; }
15809 if test `eval echo '${'$as_ac_var'}'` = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15812 _ACEOF
15815 done
15818 for ac_header in maillock.h
15820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_res=`eval echo '${'$as_ac_Header'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15830 else
15831 # Is the header compilable?
15832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h. */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 $ac_includes_default
15841 #include <$ac_header>
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (ac_try="$ac_compile"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.$ac_objext; then
15860 ac_header_compiler=yes
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_compiler=no
15868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15870 echo "${ECHO_T}$ac_header_compiler" >&6; }
15872 # Is the header present?
15873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15875 cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include <$ac_header>
15882 _ACEOF
15883 if { (ac_try="$ac_cpp conftest.$ac_ext"
15884 case "(($ac_try" in
15885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15887 esac
15888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15890 ac_status=$?
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } >/dev/null && {
15896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15897 test ! -s conftest.err
15898 }; then
15899 ac_header_preproc=yes
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_header_preproc=no
15907 rm -f conftest.err conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15909 echo "${ECHO_T}$ac_header_preproc" >&6; }
15911 # So? What about this header?
15912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15913 yes:no: )
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15918 ac_header_preproc=yes
15920 no:yes:* )
15921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15935 esac
15936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941 eval "$as_ac_Header=\$ac_header_preproc"
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944 { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949 cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15951 _ACEOF
15955 done
16026 for ac_func in gethostname getdomainname dup2 \
16027 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16028 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16029 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16030 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16031 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16032 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16033 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16034 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042 cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h. */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16050 #define $ac_func innocuous_$ac_func
16052 /* System header to define __stub macros and hopefully few prototypes,
16053 which can conflict with char $ac_func (); below.
16054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16055 <limits.h> exists even on freestanding compilers. */
16057 #ifdef __STDC__
16058 # include <limits.h>
16059 #else
16060 # include <assert.h>
16061 #endif
16063 #undef $ac_func
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16068 #ifdef __cplusplus
16069 extern "C"
16070 #endif
16071 char $ac_func ();
16072 /* The GNU C library defines this for functions which it implements
16073 to always fail with ENOSYS. Some functions are actually named
16074 something starting with __ and the normal name is an alias. */
16075 #if defined __stub_$ac_func || defined __stub___$ac_func
16076 choke me
16077 #endif
16080 main ()
16082 return $ac_func ();
16084 return 0;
16086 _ACEOF
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (ac_try="$ac_link"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092 esac
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_link") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 } && test -s conftest$ac_exeext &&
16104 $as_test_x conftest$ac_exeext; then
16105 eval "$as_ac_var=yes"
16106 else
16107 echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 eval "$as_ac_var=no"
16113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16114 conftest$ac_exeext conftest.$ac_ext
16116 ac_res=`eval echo '${'$as_ac_var'}'`
16117 { echo "$as_me:$LINENO: result: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16119 if test `eval echo '${'$as_ac_var'}'` = yes; then
16120 cat >>confdefs.h <<_ACEOF
16121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16122 _ACEOF
16125 done
16129 for ac_header in sys/un.h
16131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 ac_res=`eval echo '${'$as_ac_Header'}'`
16139 { echo "$as_me:$LINENO: result: $ac_res" >&5
16140 echo "${ECHO_T}$ac_res" >&6; }
16141 else
16142 # Is the header compilable?
16143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h. */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 #include <$ac_header>
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16162 ac_status=$?
16163 grep -v '^ *+' conftest.er1 >conftest.err
16164 rm -f conftest.er1
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.$ac_objext; then
16171 ac_header_compiler=yes
16172 else
16173 echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16176 ac_header_compiler=no
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16181 echo "${ECHO_T}$ac_header_compiler" >&6; }
16183 # Is the header present?
16184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h. */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <$ac_header>
16193 _ACEOF
16194 if { (ac_try="$ac_cpp conftest.$ac_ext"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } >/dev/null && {
16207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16209 }; then
16210 ac_header_preproc=yes
16211 else
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_preproc=no
16218 rm -f conftest.err conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16220 echo "${ECHO_T}$ac_header_preproc" >&6; }
16222 # So? What about this header?
16223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16224 yes:no: )
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16229 ac_header_preproc=yes
16231 no:yes:* )
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16246 esac
16247 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252 eval "$as_ac_Header=\$ac_header_preproc"
16254 ac_res=`eval echo '${'$as_ac_Header'}'`
16255 { echo "$as_me:$LINENO: result: $ac_res" >&5
16256 echo "${ECHO_T}$ac_res" >&6; }
16259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16260 cat >>confdefs.h <<_ACEOF
16261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16262 _ACEOF
16266 done
16273 for ac_header in $ac_header_list
16275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 ac_res=`eval echo '${'$as_ac_Header'}'`
16283 { echo "$as_me:$LINENO: result: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16285 else
16286 # Is the header compilable?
16287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h. */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16296 #include <$ac_header>
16297 _ACEOF
16298 rm -f conftest.$ac_objext
16299 if { (ac_try="$ac_compile"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest.$ac_objext; then
16315 ac_header_compiler=yes
16316 else
16317 echo "$as_me: failed program was:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 ac_header_compiler=no
16323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16325 echo "${ECHO_T}$ac_header_compiler" >&6; }
16327 # Is the header present?
16328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16330 cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h. */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 #include <$ac_header>
16337 _ACEOF
16338 if { (ac_try="$ac_cpp conftest.$ac_ext"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16342 esac
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } >/dev/null && {
16351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16353 }; then
16354 ac_header_preproc=yes
16355 else
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_header_preproc=no
16362 rm -f conftest.err conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16364 echo "${ECHO_T}$ac_header_preproc" >&6; }
16366 # So? What about this header?
16367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16368 yes:no: )
16369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16373 ac_header_preproc=yes
16375 no:yes:* )
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16378 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16379 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16383 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16390 esac
16391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396 eval "$as_ac_Header=\$ac_header_preproc"
16398 ac_res=`eval echo '${'$as_ac_Header'}'`
16399 { echo "$as_me:$LINENO: result: $ac_res" >&5
16400 echo "${ECHO_T}$ac_res" >&6; }
16403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16404 cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16406 _ACEOF
16410 done
16420 for ac_func in $ac_func_list
16422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16423 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16425 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428 cat >conftest.$ac_ext <<_ACEOF
16429 /* confdefs.h. */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16436 #define $ac_func innocuous_$ac_func
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char $ac_func (); below.
16440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441 <limits.h> exists even on freestanding compilers. */
16443 #ifdef __STDC__
16444 # include <limits.h>
16445 #else
16446 # include <assert.h>
16447 #endif
16449 #undef $ac_func
16451 /* Override any GCC internal prototype to avoid an error.
16452 Use char because int might match the return type of a GCC
16453 builtin and then its argument prototype would still apply. */
16454 #ifdef __cplusplus
16455 extern "C"
16456 #endif
16457 char $ac_func ();
16458 /* The GNU C library defines this for functions which it implements
16459 to always fail with ENOSYS. Some functions are actually named
16460 something starting with __ and the normal name is an alias. */
16461 #if defined __stub_$ac_func || defined __stub___$ac_func
16462 choke me
16463 #endif
16466 main ()
16468 return $ac_func ();
16470 return 0;
16472 _ACEOF
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (ac_try="$ac_link"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext &&
16490 $as_test_x conftest$ac_exeext; then
16491 eval "$as_ac_var=yes"
16492 else
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 eval "$as_ac_var=no"
16499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16500 conftest$ac_exeext conftest.$ac_ext
16502 ac_res=`eval echo '${'$as_ac_var'}'`
16503 { echo "$as_me:$LINENO: result: $ac_res" >&5
16504 echo "${ECHO_T}$ac_res" >&6; }
16505 if test `eval echo '${'$as_ac_var'}'` = yes; then
16506 cat >>confdefs.h <<_ACEOF
16507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16508 _ACEOF
16511 done
16529 { echo "$as_me:$LINENO: checking for working mktime" >&5
16530 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16531 if test "${ac_cv_func_working_mktime+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534 if test "$cross_compiling" = yes; then
16535 ac_cv_func_working_mktime=no
16536 else
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h. */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543 /* Test program from Paul Eggert and Tony Leneis. */
16544 #ifdef TIME_WITH_SYS_TIME
16545 # include <sys/time.h>
16546 # include <time.h>
16547 #else
16548 # ifdef HAVE_SYS_TIME_H
16549 # include <sys/time.h>
16550 # else
16551 # include <time.h>
16552 # endif
16553 #endif
16555 #include <stdlib.h>
16557 #ifdef HAVE_UNISTD_H
16558 # include <unistd.h>
16559 #endif
16561 #ifndef HAVE_ALARM
16562 # define alarm(X) /* empty */
16563 #endif
16565 /* Work around redefinition to rpl_putenv by other config tests. */
16566 #undef putenv
16568 static time_t time_t_max;
16569 static time_t time_t_min;
16571 /* Values we'll use to set the TZ environment variable. */
16572 static char *tz_strings[] = {
16573 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16574 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16576 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16578 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16579 Based on a problem report from Andreas Jaeger. */
16580 static int
16581 spring_forward_gap ()
16583 /* glibc (up to about 1998-10-07) failed this test. */
16584 struct tm tm;
16586 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16587 instead of "TZ=America/Vancouver" in order to detect the bug even
16588 on systems that don't support the Olson extension, or don't have the
16589 full zoneinfo tables installed. */
16590 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16592 tm.tm_year = 98;
16593 tm.tm_mon = 3;
16594 tm.tm_mday = 5;
16595 tm.tm_hour = 2;
16596 tm.tm_min = 0;
16597 tm.tm_sec = 0;
16598 tm.tm_isdst = -1;
16599 return mktime (&tm) != (time_t) -1;
16602 static int
16603 mktime_test1 (now)
16604 time_t now;
16606 struct tm *lt;
16607 return ! (lt = localtime (&now)) || mktime (lt) == now;
16610 static int
16611 mktime_test (now)
16612 time_t now;
16614 return (mktime_test1 (now)
16615 && mktime_test1 ((time_t) (time_t_max - now))
16616 && mktime_test1 ((time_t) (time_t_min + now)));
16619 static int
16620 irix_6_4_bug ()
16622 /* Based on code from Ariel Faigon. */
16623 struct tm tm;
16624 tm.tm_year = 96;
16625 tm.tm_mon = 3;
16626 tm.tm_mday = 0;
16627 tm.tm_hour = 0;
16628 tm.tm_min = 0;
16629 tm.tm_sec = 0;
16630 tm.tm_isdst = -1;
16631 mktime (&tm);
16632 return tm.tm_mon == 2 && tm.tm_mday == 31;
16635 static int
16636 bigtime_test (j)
16637 int j;
16639 struct tm tm;
16640 time_t now;
16641 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16642 now = mktime (&tm);
16643 if (now != (time_t) -1)
16645 struct tm *lt = localtime (&now);
16646 if (! (lt
16647 && lt->tm_year == tm.tm_year
16648 && lt->tm_mon == tm.tm_mon
16649 && lt->tm_mday == tm.tm_mday
16650 && lt->tm_hour == tm.tm_hour
16651 && lt->tm_min == tm.tm_min
16652 && lt->tm_sec == tm.tm_sec
16653 && lt->tm_yday == tm.tm_yday
16654 && lt->tm_wday == tm.tm_wday
16655 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16656 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16657 return 0;
16659 return 1;
16662 static int
16663 year_2050_test ()
16665 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16666 ignoring leap seconds. */
16667 unsigned long int answer = 2527315200UL;
16669 struct tm tm;
16670 time_t t;
16671 tm.tm_year = 2050 - 1900;
16672 tm.tm_mon = 2 - 1;
16673 tm.tm_mday = 1;
16674 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16675 tm.tm_isdst = -1;
16677 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16678 instead of "TZ=America/Vancouver" in order to detect the bug even
16679 on systems that don't support the Olson extension, or don't have the
16680 full zoneinfo tables installed. */
16681 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16683 t = mktime (&tm);
16685 /* Check that the result is either a failure, or close enough
16686 to the correct answer that we can assume the discrepancy is
16687 due to leap seconds. */
16688 return (t == (time_t) -1
16689 || (0 < t && answer - 120 <= t && t <= answer + 120));
16693 main ()
16695 time_t t, delta;
16696 int i, j;
16698 /* This test makes some buggy mktime implementations loop.
16699 Give up after 60 seconds; a mktime slower than that
16700 isn't worth using anyway. */
16701 alarm (60);
16703 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16704 continue;
16705 time_t_max--;
16706 if ((time_t) -1 < 0)
16707 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16708 continue;
16709 delta = time_t_max / 997; /* a suitable prime number */
16710 for (i = 0; i < N_STRINGS; i++)
16712 if (tz_strings[i])
16713 putenv (tz_strings[i]);
16715 for (t = 0; t <= time_t_max - delta; t += delta)
16716 if (! mktime_test (t))
16717 return 1;
16718 if (! (mktime_test ((time_t) 1)
16719 && mktime_test ((time_t) (60 * 60))
16720 && mktime_test ((time_t) (60 * 60 * 24))))
16721 return 1;
16723 for (j = 1; 0 < j; j *= 2)
16724 if (! bigtime_test (j))
16725 return 1;
16726 if (! bigtime_test (j - 1))
16727 return 1;
16729 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16731 _ACEOF
16732 rm -f conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737 esac
16738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_func_working_mktime=yes
16753 else
16754 echo "$as_me: program exited with status $ac_status" >&5
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ( exit $ac_status )
16759 ac_cv_func_working_mktime=no
16761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16767 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16768 if test $ac_cv_func_working_mktime = no; then
16769 case " $LIBOBJS " in
16770 *" mktime.$ac_objext "* ) ;;
16771 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16773 esac
16777 if test "$ac_cv_func_working_mktime" = no; then
16779 cat >>confdefs.h <<\_ACEOF
16780 #define BROKEN_MKTIME 1
16781 _ACEOF
16785 ac_have_func=no # yes means we've found a way to get the load average.
16787 # Make sure getloadavg.c is where it belongs, at configure-time.
16788 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16789 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16790 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16791 { (exit 1); exit 1; }; }
16793 ac_save_LIBS=$LIBS
16795 # Check for getloadavg, but be sure not to touch the cache variable.
16796 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16797 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16798 if test "${ac_cv_func_getloadavg+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h. */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16809 #define getloadavg innocuous_getloadavg
16811 /* System header to define __stub macros and hopefully few prototypes,
16812 which can conflict with char getloadavg (); below.
16813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16814 <limits.h> exists even on freestanding compilers. */
16816 #ifdef __STDC__
16817 # include <limits.h>
16818 #else
16819 # include <assert.h>
16820 #endif
16822 #undef getloadavg
16824 /* Override any GCC internal prototype to avoid an error.
16825 Use char because int might match the return type of a GCC
16826 builtin and then its argument prototype would still apply. */
16827 #ifdef __cplusplus
16828 extern "C"
16829 #endif
16830 char getloadavg ();
16831 /* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
16834 #if defined __stub_getloadavg || defined __stub___getloadavg
16835 choke me
16836 #endif
16839 main ()
16841 return getloadavg ();
16843 return 0;
16845 _ACEOF
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_link") 2>conftest.er1
16854 ac_status=$?
16855 grep -v '^ *+' conftest.er1 >conftest.err
16856 rm -f conftest.er1
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } && {
16860 test -z "$ac_c_werror_flag" ||
16861 test ! -s conftest.err
16862 } && test -s conftest$ac_exeext &&
16863 $as_test_x conftest$ac_exeext; then
16864 ac_cv_func_getloadavg=yes
16865 else
16866 echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_func_getloadavg=no
16872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16873 conftest$ac_exeext conftest.$ac_ext
16875 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16876 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16877 if test $ac_cv_func_getloadavg = yes; then
16878 exit 0
16879 else
16880 exit 1
16882 ) && ac_have_func=yes
16884 # On HPUX9, an unprivileged user can get load averages through this function.
16886 for ac_func in pstat_getdynamic
16888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 else
16894 cat >conftest.$ac_ext <<_ACEOF
16895 /* confdefs.h. */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16902 #define $ac_func innocuous_$ac_func
16904 /* System header to define __stub macros and hopefully few prototypes,
16905 which can conflict with char $ac_func (); below.
16906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16907 <limits.h> exists even on freestanding compilers. */
16909 #ifdef __STDC__
16910 # include <limits.h>
16911 #else
16912 # include <assert.h>
16913 #endif
16915 #undef $ac_func
16917 /* Override any GCC internal prototype to avoid an error.
16918 Use char because int might match the return type of a GCC
16919 builtin and then its argument prototype would still apply. */
16920 #ifdef __cplusplus
16921 extern "C"
16922 #endif
16923 char $ac_func ();
16924 /* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927 #if defined __stub_$ac_func || defined __stub___$ac_func
16928 choke me
16929 #endif
16932 main ()
16934 return $ac_func ();
16936 return 0;
16938 _ACEOF
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } && {
16953 test -z "$ac_c_werror_flag" ||
16954 test ! -s conftest.err
16955 } && test -s conftest$ac_exeext &&
16956 $as_test_x conftest$ac_exeext; then
16957 eval "$as_ac_var=yes"
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 eval "$as_ac_var=no"
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16968 ac_res=`eval echo '${'$as_ac_var'}'`
16969 { echo "$as_me:$LINENO: result: $ac_res" >&5
16970 echo "${ECHO_T}$ac_res" >&6; }
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16974 _ACEOF
16977 done
16980 # Solaris has libkstat which does not require root.
16982 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16983 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lkstat $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h. */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
16999 #ifdef __cplusplus
17000 extern "C"
17001 #endif
17002 char kstat_open ();
17004 main ()
17006 return kstat_open ();
17008 return 0;
17010 _ACEOF
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016 esac
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17019 ac_status=$?
17020 grep -v '^ *+' conftest.er1 >conftest.err
17021 rm -f conftest.er1
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest$ac_exeext &&
17028 $as_test_x conftest$ac_exeext; then
17029 ac_cv_lib_kstat_kstat_open=yes
17030 else
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ac_cv_lib_kstat_kstat_open=no
17037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17041 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17042 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17043 if test $ac_cv_lib_kstat_kstat_open = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_LIBKSTAT 1
17046 _ACEOF
17048 LIBS="-lkstat $LIBS"
17052 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17054 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17055 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17056 # to get the right answer into the cache.
17057 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17058 if test $ac_have_func = no; then
17059 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17060 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17061 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-lelf $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char elf_begin ();
17081 main ()
17083 return elf_begin ();
17085 return 0;
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext &&
17105 $as_test_x conftest$ac_exeext; then
17106 ac_cv_lib_elf_elf_begin=yes
17107 else
17108 echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ac_cv_lib_elf_elf_begin=no
17114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17115 conftest$ac_exeext conftest.$ac_ext
17116 LIBS=$ac_check_lib_save_LIBS
17118 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17119 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17120 if test $ac_cv_lib_elf_elf_begin = yes; then
17121 LIBS="-lelf $LIBS"
17125 if test $ac_have_func = no; then
17126 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17127 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17128 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131 ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lkvm $LIBS"
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h. */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17143 #ifdef __cplusplus
17144 extern "C"
17145 #endif
17146 char kvm_open ();
17148 main ()
17150 return kvm_open ();
17152 return 0;
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 ac_cv_lib_kvm_kvm_open=yes
17174 else
17175 echo "$as_me: failed program was:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_cv_lib_kvm_kvm_open=no
17181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17186 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17187 if test $ac_cv_lib_kvm_kvm_open = yes; then
17188 LIBS="-lkvm $LIBS"
17191 # Check for the 4.4BSD definition of getloadavg.
17192 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17193 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 else
17197 ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-lutil $LIBS"
17199 cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h. */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17209 #ifdef __cplusplus
17210 extern "C"
17211 #endif
17212 char getloadavg ();
17214 main ()
17216 return getloadavg ();
17218 return 0;
17220 _ACEOF
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17229 ac_status=$?
17230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest$ac_exeext &&
17238 $as_test_x conftest$ac_exeext; then
17239 ac_cv_lib_util_getloadavg=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_cv_lib_util_getloadavg=no
17247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17251 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17252 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17253 if test $ac_cv_lib_util_getloadavg = yes; then
17254 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17259 if test $ac_have_func = no; then
17260 # There is a commonly available library for RS/6000 AIX.
17261 # Since it is not a standard part of AIX, it might be installed locally.
17262 ac_getloadavg_LIBS=$LIBS
17263 LIBS="-L/usr/local/lib $LIBS"
17264 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17265 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17266 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-lgetloadavg $LIBS"
17271 cat >conftest.$ac_ext <<_ACEOF
17272 /* confdefs.h. */
17273 _ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 char getloadavg ();
17286 main ()
17288 return getloadavg ();
17290 return 0;
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest$ac_exeext &&
17310 $as_test_x conftest$ac_exeext; then
17311 ac_cv_lib_getloadavg_getloadavg=yes
17312 else
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 ac_cv_lib_getloadavg_getloadavg=no
17319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17320 conftest$ac_exeext conftest.$ac_ext
17321 LIBS=$ac_check_lib_save_LIBS
17323 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17324 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17325 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17326 LIBS="-lgetloadavg $LIBS"
17327 else
17328 LIBS=$ac_getloadavg_LIBS
17333 # Make sure it is really in the library, if we think we found it,
17334 # otherwise set up the replacement function.
17336 for ac_func in getloadavg
17338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17359 #ifdef __STDC__
17360 # include <limits.h>
17361 #else
17362 # include <assert.h>
17363 #endif
17365 #undef $ac_func
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char $ac_func ();
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined __stub_$ac_func || defined __stub___$ac_func
17378 choke me
17379 #endif
17382 main ()
17384 return $ac_func ();
17386 return 0;
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest$ac_exeext &&
17406 $as_test_x conftest$ac_exeext; then
17407 eval "$as_ac_var=yes"
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 eval "$as_ac_var=no"
17415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17416 conftest$ac_exeext conftest.$ac_ext
17418 ac_res=`eval echo '${'$as_ac_var'}'`
17419 { echo "$as_me:$LINENO: result: $ac_res" >&5
17420 echo "${ECHO_T}$ac_res" >&6; }
17421 if test `eval echo '${'$as_ac_var'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17424 _ACEOF
17426 else
17427 case " $LIBOBJS " in
17428 *" getloadavg.$ac_objext "* ) ;;
17429 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17431 esac
17434 cat >>confdefs.h <<\_ACEOF
17435 #define C_GETLOADAVG 1
17436 _ACEOF
17438 # Figure out what our getloadavg.c needs.
17439 ac_have_func=no
17440 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17441 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17442 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17443 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17447 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17448 else
17449 # Is the header compilable?
17450 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17451 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 #include <sys/dg_sys_info.h>
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_compile") 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest.$ac_objext; then
17478 ac_header_compiler=yes
17479 else
17480 echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 ac_header_compiler=no
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17488 echo "${ECHO_T}$ac_header_compiler" >&6; }
17490 # Is the header present?
17491 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17492 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17493 cat >conftest.$ac_ext <<_ACEOF
17494 /* confdefs.h. */
17495 _ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 #include <sys/dg_sys_info.h>
17500 _ACEOF
17501 if { (ac_try="$ac_cpp conftest.$ac_ext"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17508 ac_status=$?
17509 grep -v '^ *+' conftest.er1 >conftest.err
17510 rm -f conftest.er1
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); } >/dev/null && {
17514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17516 }; then
17517 ac_header_preproc=yes
17518 else
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_header_preproc=no
17525 rm -f conftest.err conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17527 echo "${ECHO_T}$ac_header_preproc" >&6; }
17529 # So? What about this header?
17530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17531 yes:no: )
17532 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17533 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17534 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17535 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17536 ac_header_preproc=yes
17538 no:yes:* )
17539 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17540 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17542 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17544 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17546 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17548 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17550 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17553 esac
17554 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17555 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17556 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17561 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17562 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17565 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17566 ac_have_func=yes
17568 cat >>confdefs.h <<\_ACEOF
17569 #define DGUX 1
17570 _ACEOF
17573 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17574 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17575 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 else
17578 ac_check_lib_save_LIBS=$LIBS
17579 LIBS="-ldgc $LIBS"
17580 cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h. */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17590 #ifdef __cplusplus
17591 extern "C"
17592 #endif
17593 char dg_sys_info ();
17595 main ()
17597 return dg_sys_info ();
17599 return 0;
17601 _ACEOF
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>conftest.er1
17610 ac_status=$?
17611 grep -v '^ *+' conftest.er1 >conftest.err
17612 rm -f conftest.er1
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest$ac_exeext &&
17619 $as_test_x conftest$ac_exeext; then
17620 ac_cv_lib_dgc_dg_sys_info=yes
17621 else
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_cv_lib_dgc_dg_sys_info=no
17628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17629 conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17633 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17634 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define HAVE_LIBDGC 1
17637 _ACEOF
17639 LIBS="-ldgc $LIBS"
17647 if test "${ac_cv_header_locale_h+set}" = set; then
17648 { echo "$as_me:$LINENO: checking for locale.h" >&5
17649 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17650 if test "${ac_cv_header_locale_h+set}" = set; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17654 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17655 else
17656 # Is the header compilable?
17657 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17658 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 $ac_includes_default
17666 #include <locale.h>
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (ac_try="$ac_compile"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673 esac
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_compile") 2>conftest.er1
17676 ac_status=$?
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest.$ac_objext; then
17685 ac_header_compiler=yes
17686 else
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_header_compiler=no
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17695 echo "${ECHO_T}$ac_header_compiler" >&6; }
17697 # Is the header present?
17698 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17699 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h. */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 #include <locale.h>
17707 _ACEOF
17708 if { (ac_try="$ac_cpp conftest.$ac_ext"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712 esac
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } >/dev/null && {
17721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 }; then
17724 ac_header_preproc=yes
17725 else
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ac_header_preproc=no
17732 rm -f conftest.err conftest.$ac_ext
17733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17734 echo "${ECHO_T}$ac_header_preproc" >&6; }
17736 # So? What about this header?
17737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17738 yes:no: )
17739 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17740 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17742 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17743 ac_header_preproc=yes
17745 no:yes:* )
17746 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17747 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17749 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17751 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17753 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17755 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17757 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17760 esac
17761 { echo "$as_me:$LINENO: checking for locale.h" >&5
17762 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17763 if test "${ac_cv_header_locale_h+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 else
17766 ac_cv_header_locale_h=$ac_header_preproc
17768 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17769 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17775 for ac_func in setlocale
17777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783 cat >conftest.$ac_ext <<_ACEOF
17784 /* confdefs.h. */
17785 _ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17791 #define $ac_func innocuous_$ac_func
17793 /* System header to define __stub macros and hopefully few prototypes,
17794 which can conflict with char $ac_func (); below.
17795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17796 <limits.h> exists even on freestanding compilers. */
17798 #ifdef __STDC__
17799 # include <limits.h>
17800 #else
17801 # include <assert.h>
17802 #endif
17804 #undef $ac_func
17806 /* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17809 #ifdef __cplusplus
17810 extern "C"
17811 #endif
17812 char $ac_func ();
17813 /* The GNU C library defines this for functions which it implements
17814 to always fail with ENOSYS. Some functions are actually named
17815 something starting with __ and the normal name is an alias. */
17816 #if defined __stub_$ac_func || defined __stub___$ac_func
17817 choke me
17818 #endif
17821 main ()
17823 return $ac_func ();
17825 return 0;
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (ac_try="$ac_link"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_link") 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } && {
17842 test -z "$ac_c_werror_flag" ||
17843 test ! -s conftest.err
17844 } && test -s conftest$ac_exeext &&
17845 $as_test_x conftest$ac_exeext; then
17846 eval "$as_ac_var=yes"
17847 else
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 eval "$as_ac_var=no"
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17857 ac_res=`eval echo '${'$as_ac_var'}'`
17858 { echo "$as_me:$LINENO: result: $ac_res" >&5
17859 echo "${ECHO_T}$ac_res" >&6; }
17860 if test `eval echo '${'$as_ac_var'}'` = yes; then
17861 cat >>confdefs.h <<_ACEOF
17862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17863 _ACEOF
17866 done
17869 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17870 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17871 # Irix 4.0.5F has the header but not the library.
17872 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17873 ac_have_func=yes
17875 cat >>confdefs.h <<\_ACEOF
17876 #define SVR4 1
17877 _ACEOF
17881 if test $ac_have_func = no; then
17882 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17883 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17884 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17885 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17888 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17889 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17890 else
17891 # Is the header compilable?
17892 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17893 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17894 cat >conftest.$ac_ext <<_ACEOF
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17901 #include <inq_stats/cpustats.h>
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (ac_try="$ac_compile"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_compile") 2>conftest.er1
17911 ac_status=$?
17912 grep -v '^ *+' conftest.er1 >conftest.err
17913 rm -f conftest.er1
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } && {
17917 test -z "$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 } && test -s conftest.$ac_objext; then
17920 ac_header_compiler=yes
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_header_compiler=no
17928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17930 echo "${ECHO_T}$ac_header_compiler" >&6; }
17932 # Is the header present?
17933 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17934 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17936 /* confdefs.h. */
17937 _ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 #include <inq_stats/cpustats.h>
17942 _ACEOF
17943 if { (ac_try="$ac_cpp conftest.$ac_ext"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } >/dev/null && {
17956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17957 test ! -s conftest.err
17958 }; then
17959 ac_header_preproc=yes
17960 else
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ac_header_preproc=no
17967 rm -f conftest.err conftest.$ac_ext
17968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17969 echo "${ECHO_T}$ac_header_preproc" >&6; }
17971 # So? What about this header?
17972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17973 yes:no: )
17974 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17975 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17978 ac_header_preproc=yes
17980 no:yes:* )
17981 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17982 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17983 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17984 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17985 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17986 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17988 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17990 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17992 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17995 esac
17996 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17997 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 else
18001 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18003 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18004 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18007 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18008 ac_have_func=yes
18010 cat >>confdefs.h <<\_ACEOF
18011 #define UMAX 1
18012 _ACEOF
18015 cat >>confdefs.h <<\_ACEOF
18016 #define UMAX4_3 1
18017 _ACEOF
18024 if test $ac_have_func = no; then
18025 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18026 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18027 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18028 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18029 echo $ECHO_N "(cached) $ECHO_C" >&6
18031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18032 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18033 else
18034 # Is the header compilable?
18035 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18036 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 $ac_includes_default
18044 #include <sys/cpustats.h>
18045 _ACEOF
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18051 esac
18052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_compile") 2>conftest.er1
18054 ac_status=$?
18055 grep -v '^ *+' conftest.er1 >conftest.err
18056 rm -f conftest.er1
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); } && {
18060 test -z "$ac_c_werror_flag" ||
18061 test ! -s conftest.err
18062 } && test -s conftest.$ac_objext; then
18063 ac_header_compiler=yes
18064 else
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ac_header_compiler=no
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18073 echo "${ECHO_T}$ac_header_compiler" >&6; }
18075 # Is the header present?
18076 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18077 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h. */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 #include <sys/cpustats.h>
18085 _ACEOF
18086 if { (ac_try="$ac_cpp conftest.$ac_ext"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } >/dev/null && {
18099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18101 }; then
18102 ac_header_preproc=yes
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_header_preproc=no
18110 rm -f conftest.err conftest.$ac_ext
18111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6; }
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18116 yes:no: )
18117 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18120 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18121 ac_header_preproc=yes
18123 no:yes:* )
18124 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18125 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18126 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18127 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18129 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18131 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18135 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18138 esac
18139 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18140 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18142 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 else
18144 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18146 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18147 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18150 if test $ac_cv_header_sys_cpustats_h = yes; then
18151 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18152 #define UMAX 1
18153 _ACEOF
18160 if test $ac_have_func = no; then
18162 for ac_header in mach/mach.h
18164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18169 echo $ECHO_N "(cached) $ECHO_C" >&6
18171 ac_res=`eval echo '${'$as_ac_Header'}'`
18172 { echo "$as_me:$LINENO: result: $ac_res" >&5
18173 echo "${ECHO_T}$ac_res" >&6; }
18174 else
18175 # Is the header compilable?
18176 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h. */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 $ac_includes_default
18185 #include <$ac_header>
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18192 esac
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18195 ac_status=$?
18196 grep -v '^ *+' conftest.er1 >conftest.err
18197 rm -f conftest.er1
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.$ac_objext; then
18204 ac_header_compiler=yes
18205 else
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_header_compiler=no
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18214 echo "${ECHO_T}$ac_header_compiler" >&6; }
18216 # Is the header present?
18217 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18219 cat >conftest.$ac_ext <<_ACEOF
18220 /* confdefs.h. */
18221 _ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <$ac_header>
18226 _ACEOF
18227 if { (ac_try="$ac_cpp conftest.$ac_ext"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } >/dev/null && {
18240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 }; then
18243 ac_header_preproc=yes
18244 else
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 ac_header_preproc=no
18251 rm -f conftest.err conftest.$ac_ext
18252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18253 echo "${ECHO_T}$ac_header_preproc" >&6; }
18255 # So? What about this header?
18256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18257 yes:no: )
18258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18262 ac_header_preproc=yes
18264 no:yes:* )
18265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18279 esac
18280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285 eval "$as_ac_Header=\$ac_header_preproc"
18287 ac_res=`eval echo '${'$as_ac_Header'}'`
18288 { echo "$as_me:$LINENO: result: $ac_res" >&5
18289 echo "${ECHO_T}$ac_res" >&6; }
18292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18295 _ACEOF
18299 done
18304 for ac_header in nlist.h
18306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18311 echo $ECHO_N "(cached) $ECHO_C" >&6
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18316 else
18317 # Is the header compilable?
18318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 $ac_includes_default
18327 #include <$ac_header>
18328 _ACEOF
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.$ac_objext; then
18346 ac_header_compiler=yes
18347 else
18348 echo "$as_me: failed program was:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_compiler=no
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18356 echo "${ECHO_T}$ac_header_compiler" >&6; }
18358 # Is the header present?
18359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18362 /* confdefs.h. */
18363 _ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <$ac_header>
18368 _ACEOF
18369 if { (ac_try="$ac_cpp conftest.$ac_ext"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18376 ac_status=$?
18377 grep -v '^ *+' conftest.er1 >conftest.err
18378 rm -f conftest.er1
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } >/dev/null && {
18382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 }; then
18385 ac_header_preproc=yes
18386 else
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_preproc=no
18393 rm -f conftest.err conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18395 echo "${ECHO_T}$ac_header_preproc" >&6; }
18397 # So? What about this header?
18398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18399 yes:no: )
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18404 ac_header_preproc=yes
18406 no:yes:* )
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18421 esac
18422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 else
18427 eval "$as_ac_Header=\$ac_header_preproc"
18429 ac_res=`eval echo '${'$as_ac_Header'}'`
18430 { echo "$as_me:$LINENO: result: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18437 _ACEOF
18438 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18439 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18440 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 else
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include <nlist.h>
18452 main ()
18454 static struct nlist ac_aggr;
18455 if (ac_aggr.n_un.n_name)
18456 return 0;
18458 return 0;
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (ac_try="$ac_compile"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_compile") 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest.$ac_objext; then
18478 ac_cv_member_struct_nlist_n_un_n_name=yes
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h. */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18489 #include <nlist.h>
18492 main ()
18494 static struct nlist ac_aggr;
18495 if (sizeof ac_aggr.n_un.n_name)
18496 return 0;
18498 return 0;
18500 _ACEOF
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506 esac
18507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18509 ac_status=$?
18510 grep -v '^ *+' conftest.er1 >conftest.err
18511 rm -f conftest.er1
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_cv_member_struct_nlist_n_un_n_name=yes
18519 else
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_member_struct_nlist_n_un_n_name=no
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18532 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18533 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18535 cat >>confdefs.h <<_ACEOF
18536 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18537 _ACEOF
18540 cat >>confdefs.h <<\_ACEOF
18541 #define NLIST_NAME_UNION 1
18542 _ACEOF
18549 done
18552 done
18555 # Some definitions of getloadavg require that the program be installed setgid.
18556 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18557 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18568 #ifdef LDAV_PRIVILEGED
18569 Yowza Am I SETGID yet
18570 #endif
18571 _ACEOF
18572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18573 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18574 ac_cv_func_getloadavg_setgid=yes
18575 else
18576 ac_cv_func_getloadavg_setgid=no
18578 rm -f conftest*
18581 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18582 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18583 if test $ac_cv_func_getloadavg_setgid = yes; then
18584 NEED_SETGID=true
18586 cat >>confdefs.h <<\_ACEOF
18587 #define GETLOADAVG_PRIVILEGED 1
18588 _ACEOF
18590 else
18591 NEED_SETGID=false
18594 if test $ac_cv_func_getloadavg_setgid = yes; then
18595 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18596 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18597 if test "${ac_cv_group_kmem+set}" = set; then
18598 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18601 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18602 # If we got an error (system does not support symlinks), try without -L.
18603 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18604 ac_cv_group_kmem=`echo $ac_ls_output \
18605 | sed -ne 's/[ ][ ]*/ /g;
18606 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18607 / /s/.* //;p;'`
18610 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18611 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18612 KMEM_GROUP=$ac_cv_group_kmem
18614 if test "x$ac_save_LIBS" = x; then
18615 GETLOADAVG_LIBS=$LIBS
18616 else
18617 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18619 LIBS=$ac_save_LIBS
18623 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18624 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18625 if test "${ac_cv_sys_largefile_source+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628 while :; do
18629 cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h. */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
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=no; 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 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 #define _LARGEFILE_SOURCE 1
18679 #include <stdio.h>
18681 main ()
18683 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18685 return 0;
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18696 ac_status=$?
18697 grep -v '^ *+' conftest.er1 >conftest.err
18698 rm -f conftest.er1
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext &&
18705 $as_test_x conftest$ac_exeext; then
18706 ac_cv_sys_largefile_source=1; break
18707 else
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715 conftest$ac_exeext conftest.$ac_ext
18716 ac_cv_sys_largefile_source=unknown
18717 break
18718 done
18720 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18721 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18722 case $ac_cv_sys_largefile_source in #(
18723 no | unknown) ;;
18725 cat >>confdefs.h <<_ACEOF
18726 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18727 _ACEOF
18729 esac
18730 rm -f conftest*
18732 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18733 # in glibc 2.1.3, but that breaks too many other things.
18734 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18735 if test $ac_cv_sys_largefile_source != unknown; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_FSEEKO 1
18739 _ACEOF
18744 # Configure getopt.
18745 # getopt.m4 serial 10
18747 # The getopt module assume you want GNU getopt, with getopt_long etc,
18748 # rather than vanilla POSIX getopt. This means your your code should
18749 # always include <getopt.h> for the getopt prototypes.
18761 # Prerequisites of lib/getopt*.
18766 GETOPT_H=
18768 for ac_header in getopt.h
18770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 ac_res=`eval echo '${'$as_ac_Header'}'`
18778 { echo "$as_me:$LINENO: result: $ac_res" >&5
18779 echo "${ECHO_T}$ac_res" >&6; }
18780 else
18781 # Is the header compilable?
18782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18784 cat >conftest.$ac_ext <<_ACEOF
18785 /* confdefs.h. */
18786 _ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (ac_try="$ac_compile"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_compile") 2>conftest.er1
18801 ac_status=$?
18802 grep -v '^ *+' conftest.er1 >conftest.err
18803 rm -f conftest.er1
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest.$ac_objext; then
18810 ac_header_compiler=yes
18811 else
18812 echo "$as_me: failed program was:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_header_compiler=no
18818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18820 echo "${ECHO_T}$ac_header_compiler" >&6; }
18822 # Is the header present?
18823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18825 cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h. */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 #include <$ac_header>
18832 _ACEOF
18833 if { (ac_try="$ac_cpp conftest.$ac_ext"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18840 ac_status=$?
18841 grep -v '^ *+' conftest.er1 >conftest.err
18842 rm -f conftest.er1
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } >/dev/null && {
18846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18848 }; then
18849 ac_header_preproc=yes
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_header_preproc=no
18857 rm -f conftest.err conftest.$ac_ext
18858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18859 echo "${ECHO_T}$ac_header_preproc" >&6; }
18861 # So? What about this header?
18862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18863 yes:no: )
18864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18868 ac_header_preproc=yes
18870 no:yes:* )
18871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18885 esac
18886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891 eval "$as_ac_Header=\$ac_header_preproc"
18893 ac_res=`eval echo '${'$as_ac_Header'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18901 _ACEOF
18903 else
18904 GETOPT_H=getopt.h
18907 done
18909 if test -z "$GETOPT_H"; then
18911 for ac_func in getopt_long_only
18913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18927 #define $ac_func innocuous_$ac_func
18929 /* System header to define __stub macros and hopefully few prototypes,
18930 which can conflict with char $ac_func (); below.
18931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18932 <limits.h> exists even on freestanding compilers. */
18934 #ifdef __STDC__
18935 # include <limits.h>
18936 #else
18937 # include <assert.h>
18938 #endif
18940 #undef $ac_func
18942 /* Override any GCC internal prototype to avoid an error.
18943 Use char because int might match the return type of a GCC
18944 builtin and then its argument prototype would still apply. */
18945 #ifdef __cplusplus
18946 extern "C"
18947 #endif
18948 char $ac_func ();
18949 /* The GNU C library defines this for functions which it implements
18950 to always fail with ENOSYS. Some functions are actually named
18951 something starting with __ and the normal name is an alias. */
18952 #if defined __stub_$ac_func || defined __stub___$ac_func
18953 choke me
18954 #endif
18957 main ()
18959 return $ac_func ();
18961 return 0;
18963 _ACEOF
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18969 esac
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_link") 2>conftest.er1
18972 ac_status=$?
18973 grep -v '^ *+' conftest.er1 >conftest.err
18974 rm -f conftest.er1
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest$ac_exeext &&
18981 $as_test_x conftest$ac_exeext; then
18982 eval "$as_ac_var=yes"
18983 else
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 eval "$as_ac_var=no"
18990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991 conftest$ac_exeext conftest.$ac_ext
18993 ac_res=`eval echo '${'$as_ac_var'}'`
18994 { echo "$as_me:$LINENO: result: $ac_res" >&5
18995 echo "${ECHO_T}$ac_res" >&6; }
18996 if test `eval echo '${'$as_ac_var'}'` = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18999 _ACEOF
19001 else
19002 GETOPT_H=getopt.h
19004 done
19008 if test -z "$GETOPT_H"; then
19009 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19010 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19011 if test "${ac_cv_have_decl_optreset+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <getopt.h>
19023 main ()
19025 #ifndef optreset
19026 (void) optreset;
19027 #endif
19030 return 0;
19032 _ACEOF
19033 rm -f conftest.$ac_objext
19034 if { (ac_try="$ac_compile"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038 esac
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_compile") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest.$ac_objext; then
19050 ac_cv_have_decl_optreset=yes
19051 else
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_cv_have_decl_optreset=no
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19061 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19062 if test $ac_cv_have_decl_optreset = yes; then
19063 GETOPT_H=getopt.h
19068 if test -z "$GETOPT_H"; then
19069 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19070 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19071 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19073 else
19074 if test "$cross_compiling" = yes; then
19075 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19076 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19077 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <getopt.h>
19089 main ()
19091 #ifndef getopt_clip
19092 (void) getopt_clip;
19093 #endif
19096 return 0;
19098 _ACEOF
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104 esac
19105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_cv_have_decl_getopt_clip=yes
19117 else
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_have_decl_getopt_clip=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19127 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19128 if test $ac_cv_have_decl_getopt_clip = yes; then
19129 gl_cv_func_gnu_getopt=no
19130 else
19131 gl_cv_func_gnu_getopt=yes
19134 else
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <getopt.h>
19143 main ()
19146 char *myargv[3];
19147 myargv[0] = "conftest";
19148 myargv[1] = "-+";
19149 myargv[2] = 0;
19150 return getopt (2, myargv, "+a") != '?';
19153 return 0;
19155 _ACEOF
19156 rm -f conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>&5
19164 ac_status=$?
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170 esac
19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 gl_cv_func_gnu_getopt=yes
19177 else
19178 echo "$as_me: program exited with status $ac_status" >&5
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 ( exit $ac_status )
19183 gl_cv_func_gnu_getopt=no
19185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19190 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19191 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19192 if test "$gl_cv_func_gnu_getopt" = "no"; then
19193 GETOPT_H=getopt.h
19199 if test -n "$GETOPT_H"; then
19202 GETOPT_H=getopt.h
19204 cat >>confdefs.h <<\_ACEOF
19205 #define __GETOPT_PREFIX rpl_
19206 _ACEOF
19211 GETOPTOBJS='getopt.o getopt1.o'
19218 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19219 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19220 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 else
19223 # Use it with a single arg.
19224 cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h. */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 $ac_includes_default
19232 main ()
19234 getpgrp (0);
19236 return 0;
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest.$ac_objext; then
19256 ac_cv_func_getpgrp_void=no
19257 else
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_cv_func_getpgrp_void=yes
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19268 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19269 if test $ac_cv_func_getpgrp_void = yes; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define GETPGRP_VOID 1
19273 _ACEOF
19279 for ac_func in strftime
19281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287 cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h. */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19295 #define $ac_func innocuous_$ac_func
19297 /* System header to define __stub macros and hopefully few prototypes,
19298 which can conflict with char $ac_func (); below.
19299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19300 <limits.h> exists even on freestanding compilers. */
19302 #ifdef __STDC__
19303 # include <limits.h>
19304 #else
19305 # include <assert.h>
19306 #endif
19308 #undef $ac_func
19310 /* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19313 #ifdef __cplusplus
19314 extern "C"
19315 #endif
19316 char $ac_func ();
19317 /* The GNU C library defines this for functions which it implements
19318 to always fail with ENOSYS. Some functions are actually named
19319 something starting with __ and the normal name is an alias. */
19320 #if defined __stub_$ac_func || defined __stub___$ac_func
19321 choke me
19322 #endif
19325 main ()
19327 return $ac_func ();
19329 return 0;
19331 _ACEOF
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (ac_try="$ac_link"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_link") 2>conftest.er1
19340 ac_status=$?
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest$ac_exeext &&
19349 $as_test_x conftest$ac_exeext; then
19350 eval "$as_ac_var=yes"
19351 else
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 eval "$as_ac_var=no"
19358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19359 conftest$ac_exeext conftest.$ac_ext
19361 ac_res=`eval echo '${'$as_ac_var'}'`
19362 { echo "$as_me:$LINENO: result: $ac_res" >&5
19363 echo "${ECHO_T}$ac_res" >&6; }
19364 if test `eval echo '${'$as_ac_var'}'` = yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19367 _ACEOF
19369 else
19370 # strftime is in -lintl on SCO UNIX.
19371 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19372 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19373 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 ac_check_lib_save_LIBS=$LIBS
19377 LIBS="-lintl $LIBS"
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19388 #ifdef __cplusplus
19389 extern "C"
19390 #endif
19391 char strftime ();
19393 main ()
19395 return strftime ();
19397 return 0;
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_link") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext &&
19417 $as_test_x conftest$ac_exeext; then
19418 ac_cv_lib_intl_strftime=yes
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_cv_lib_intl_strftime=no
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19430 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19431 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19432 if test $ac_cv_lib_intl_strftime = yes; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_STRFTIME 1
19435 _ACEOF
19437 LIBS="-lintl $LIBS"
19441 done
19444 # UNIX98 PTYs.
19446 for ac_func in grantpt
19448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454 cat >conftest.$ac_ext <<_ACEOF
19455 /* confdefs.h. */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19462 #define $ac_func innocuous_$ac_func
19464 /* System header to define __stub macros and hopefully few prototypes,
19465 which can conflict with char $ac_func (); below.
19466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19467 <limits.h> exists even on freestanding compilers. */
19469 #ifdef __STDC__
19470 # include <limits.h>
19471 #else
19472 # include <assert.h>
19473 #endif
19475 #undef $ac_func
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19480 #ifdef __cplusplus
19481 extern "C"
19482 #endif
19483 char $ac_func ();
19484 /* The GNU C library defines this for functions which it implements
19485 to always fail with ENOSYS. Some functions are actually named
19486 something starting with __ and the normal name is an alias. */
19487 #if defined __stub_$ac_func || defined __stub___$ac_func
19488 choke me
19489 #endif
19492 main ()
19494 return $ac_func ();
19496 return 0;
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 eval "$as_ac_var=yes"
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 eval "$as_ac_var=no"
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19528 ac_res=`eval echo '${'$as_ac_var'}'`
19529 { echo "$as_me:$LINENO: result: $ac_res" >&5
19530 echo "${ECHO_T}$ac_res" >&6; }
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19534 _ACEOF
19537 done
19540 # PTY-related GNU extensions.
19542 for ac_func in getpt
19544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19558 #define $ac_func innocuous_$ac_func
19560 /* System header to define __stub macros and hopefully few prototypes,
19561 which can conflict with char $ac_func (); below.
19562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19563 <limits.h> exists even on freestanding compilers. */
19565 #ifdef __STDC__
19566 # include <limits.h>
19567 #else
19568 # include <assert.h>
19569 #endif
19571 #undef $ac_func
19573 /* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19576 #ifdef __cplusplus
19577 extern "C"
19578 #endif
19579 char $ac_func ();
19580 /* The GNU C library defines this for functions which it implements
19581 to always fail with ENOSYS. Some functions are actually named
19582 something starting with __ and the normal name is an alias. */
19583 #if defined __stub_$ac_func || defined __stub___$ac_func
19584 choke me
19585 #endif
19588 main ()
19590 return $ac_func ();
19592 return 0;
19594 _ACEOF
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (ac_try="$ac_link"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_link") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest$ac_exeext &&
19612 $as_test_x conftest$ac_exeext; then
19613 eval "$as_ac_var=yes"
19614 else
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 eval "$as_ac_var=no"
19621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19624 ac_res=`eval echo '${'$as_ac_var'}'`
19625 { echo "$as_me:$LINENO: result: $ac_res" >&5
19626 echo "${ECHO_T}$ac_res" >&6; }
19627 if test `eval echo '${'$as_ac_var'}'` = yes; then
19628 cat >>confdefs.h <<_ACEOF
19629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19630 _ACEOF
19633 done
19636 # Check this now, so that we will NOT find the above functions in ncurses.
19637 # That is because we have not set up to link ncurses in lib-src.
19638 # It's better to believe a function is not available
19639 # than to expect to find it in ncurses.
19641 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19642 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19643 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 else
19646 ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lncurses $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h. */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19655 /* Override any GCC internal prototype to avoid an error.
19656 Use char because int might match the return type of a GCC
19657 builtin and then its argument prototype would still apply. */
19658 #ifdef __cplusplus
19659 extern "C"
19660 #endif
19661 char tparm ();
19663 main ()
19665 return tparm ();
19667 return 0;
19669 _ACEOF
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (ac_try="$ac_link"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_link") 2>conftest.er1
19678 ac_status=$?
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } && {
19684 test -z "$ac_c_werror_flag" ||
19685 test ! -s conftest.err
19686 } && test -s conftest$ac_exeext &&
19687 $as_test_x conftest$ac_exeext; then
19688 ac_cv_lib_ncurses_tparm=yes
19689 else
19690 echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 ac_cv_lib_ncurses_tparm=no
19696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19697 conftest$ac_exeext conftest.$ac_ext
19698 LIBS=$ac_check_lib_save_LIBS
19700 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19701 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19702 if test $ac_cv_lib_ncurses_tparm = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704 #define HAVE_LIBNCURSES 1
19705 _ACEOF
19707 LIBS="-lncurses $LIBS"
19712 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19714 resolv=no
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <netinet/in.h>
19722 #include <arpa/nameser.h>
19723 #include <resolv.h>
19725 main ()
19727 return res_init();
19729 return 0;
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 have_res_init=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 have_res_init=no
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 if test "$have_res_init" = no; then
19761 OLIBS="$LIBS"
19762 LIBS="$LIBS -lresolv"
19763 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19764 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19765 cat >conftest.$ac_ext <<_ACEOF
19766 /* confdefs.h. */
19767 _ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 #include <netinet/in.h>
19772 #include <arpa/nameser.h>
19773 #include <resolv.h>
19775 main ()
19777 return res_init();
19779 return 0;
19781 _ACEOF
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (ac_try="$ac_link"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19787 esac
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_link") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest$ac_exeext &&
19799 $as_test_x conftest$ac_exeext; then
19800 have_res_init=yes
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19805 have_res_init=no
19808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19809 conftest$ac_exeext conftest.$ac_ext
19810 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19811 echo "${ECHO_T}$have_res_init" >&6; }
19812 if test "$have_res_init" = yes ; then
19813 resolv=yes
19815 LIBS="$OLIBS"
19818 if test "$have_res_init" = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_RES_INIT 1
19822 _ACEOF
19826 # Do we need the Hesiod library to provide the support routines?
19827 if test "$with_hesiod" = yes ; then
19828 # Don't set $LIBS here -- see comments above.
19829 { echo "$as_me:$LINENO: checking for res_send" >&5
19830 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19831 if test "${ac_cv_func_res_send+set}" = set; then
19832 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define res_send innocuous_res_send
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char res_send (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19849 #ifdef __STDC__
19850 # include <limits.h>
19851 #else
19852 # include <assert.h>
19853 #endif
19855 #undef res_send
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19860 #ifdef __cplusplus
19861 extern "C"
19862 #endif
19863 char res_send ();
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined __stub_res_send || defined __stub___res_send
19868 choke me
19869 #endif
19872 main ()
19874 return res_send ();
19876 return 0;
19878 _ACEOF
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19887 ac_status=$?
19888 grep -v '^ *+' conftest.er1 >conftest.err
19889 rm -f conftest.er1
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_func_res_send=yes
19898 else
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_func_res_send=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19908 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19909 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19910 if test $ac_cv_func_res_send = yes; then
19912 else
19913 { echo "$as_me:$LINENO: checking for __res_send" >&5
19914 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19915 if test "${ac_cv_func___res_send+set}" = set; then
19916 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 else
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19926 #define __res_send innocuous___res_send
19928 /* System header to define __stub macros and hopefully few prototypes,
19929 which can conflict with char __res_send (); below.
19930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19931 <limits.h> exists even on freestanding compilers. */
19933 #ifdef __STDC__
19934 # include <limits.h>
19935 #else
19936 # include <assert.h>
19937 #endif
19939 #undef __res_send
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944 #ifdef __cplusplus
19945 extern "C"
19946 #endif
19947 char __res_send ();
19948 /* The GNU C library defines this for functions which it implements
19949 to always fail with ENOSYS. Some functions are actually named
19950 something starting with __ and the normal name is an alias. */
19951 #if defined __stub___res_send || defined __stub_____res_send
19952 choke me
19953 #endif
19956 main ()
19958 return __res_send ();
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_func___res_send=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_func___res_send=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19992 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19993 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19994 if test $ac_cv_func___res_send = yes; then
19996 else
19997 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19998 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19999 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002 ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lresolv $LIBS"
20004 cat >conftest.$ac_ext <<_ACEOF
20005 /* confdefs.h. */
20006 _ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20011 /* Override any GCC internal prototype to avoid an error.
20012 Use char because int might match the return type of a GCC
20013 builtin and then its argument prototype would still apply. */
20014 #ifdef __cplusplus
20015 extern "C"
20016 #endif
20017 char res_send ();
20019 main ()
20021 return res_send ();
20023 return 0;
20025 _ACEOF
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20034 ac_status=$?
20035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest$ac_exeext &&
20043 $as_test_x conftest$ac_exeext; then
20044 ac_cv_lib_resolv_res_send=yes
20045 else
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_lib_resolv_res_send=no
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053 conftest$ac_exeext conftest.$ac_ext
20054 LIBS=$ac_check_lib_save_LIBS
20056 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20057 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20058 if test $ac_cv_lib_resolv_res_send = yes; then
20059 resolv=yes
20060 else
20061 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20062 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066 ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lresolv $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char __res_send ();
20083 main ()
20085 return __res_send ();
20087 return 0;
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest$ac_exeext &&
20107 $as_test_x conftest$ac_exeext; then
20108 ac_cv_lib_resolv___res_send=yes
20109 else
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_cv_lib_resolv___res_send=no
20116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20117 conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20120 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20121 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20122 if test $ac_cv_lib_resolv___res_send = yes; then
20123 resolv=yes
20132 if test "$resolv" = yes ; then
20133 RESOLVLIB=-lresolv
20134 else
20135 RESOLVLIB=
20137 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20138 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20139 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20150 #define hes_getmailhost innocuous_hes_getmailhost
20152 /* System header to define __stub macros and hopefully few prototypes,
20153 which can conflict with char hes_getmailhost (); below.
20154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20155 <limits.h> exists even on freestanding compilers. */
20157 #ifdef __STDC__
20158 # include <limits.h>
20159 #else
20160 # include <assert.h>
20161 #endif
20163 #undef hes_getmailhost
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char hes_getmailhost ();
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20176 choke me
20177 #endif
20180 main ()
20182 return hes_getmailhost ();
20184 return 0;
20186 _ACEOF
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_func_hes_getmailhost=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_cv_func_hes_getmailhost=no
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20217 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20218 if test $ac_cv_func_hes_getmailhost = yes; then
20220 else
20221 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20222 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20223 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lhesiod $RESOLVLIB $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h. */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20235 /* Override any GCC internal prototype to avoid an error.
20236 Use char because int might match the return type of a GCC
20237 builtin and then its argument prototype would still apply. */
20238 #ifdef __cplusplus
20239 extern "C"
20240 #endif
20241 char hes_getmailhost ();
20243 main ()
20245 return hes_getmailhost ();
20247 return 0;
20249 _ACEOF
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_link") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest$ac_exeext &&
20267 $as_test_x conftest$ac_exeext; then
20268 ac_cv_lib_hesiod_hes_getmailhost=yes
20269 else
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_cv_lib_hesiod_hes_getmailhost=no
20276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20277 conftest$ac_exeext conftest.$ac_ext
20278 LIBS=$ac_check_lib_save_LIBS
20280 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20281 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20282 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_LIBHESIOD 1
20286 _ACEOF
20288 else
20296 # Do we need libresolv (due to res_init or Hesiod)?
20297 if test "$resolv" = yes ; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_LIBRESOLV 1
20301 _ACEOF
20305 # These tell us which Kerberos-related libraries to use.
20306 if test "${with_kerberos+set}" = set; then
20308 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20309 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20310 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lcom_err $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20325 #ifdef __cplusplus
20326 extern "C"
20327 #endif
20328 char com_err ();
20330 main ()
20332 return com_err ();
20334 return 0;
20336 _ACEOF
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20345 ac_status=$?
20346 grep -v '^ *+' conftest.er1 >conftest.err
20347 rm -f conftest.er1
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_lib_com_err_com_err=yes
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_com_err_com_err=no
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20367 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20368 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20369 if test $ac_cv_lib_com_err_com_err = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371 #define HAVE_LIBCOM_ERR 1
20372 _ACEOF
20374 LIBS="-lcom_err $LIBS"
20379 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20380 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20381 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384 ac_check_lib_save_LIBS=$LIBS
20385 LIBS="-lk5crypto $LIBS"
20386 cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h. */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20393 /* Override any GCC internal prototype to avoid an error.
20394 Use char because int might match the return type of a GCC
20395 builtin and then its argument prototype would still apply. */
20396 #ifdef __cplusplus
20397 extern "C"
20398 #endif
20399 char mit_des_cbc_encrypt ();
20401 main ()
20403 return mit_des_cbc_encrypt ();
20405 return 0;
20407 _ACEOF
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20427 else
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20439 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20440 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_LIBK5CRYPTO 1
20443 _ACEOF
20445 LIBS="-lk5crypto $LIBS"
20450 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20451 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20452 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455 ac_check_lib_save_LIBS=$LIBS
20456 LIBS="-lcrypto $LIBS"
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h. */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20464 /* Override any GCC internal prototype to avoid an error.
20465 Use char because int might match the return type of a GCC
20466 builtin and then its argument prototype would still apply. */
20467 #ifdef __cplusplus
20468 extern "C"
20469 #endif
20470 char mit_des_cbc_encrypt ();
20472 main ()
20474 return mit_des_cbc_encrypt ();
20476 return 0;
20478 _ACEOF
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20484 esac
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest$ac_exeext &&
20496 $as_test_x conftest$ac_exeext; then
20497 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20498 else
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20506 conftest$ac_exeext conftest.$ac_ext
20507 LIBS=$ac_check_lib_save_LIBS
20509 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20510 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20511 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_LIBCRYPTO 1
20514 _ACEOF
20516 LIBS="-lcrypto $LIBS"
20521 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20522 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20523 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526 ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lkrb5 $LIBS"
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h. */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20535 /* Override any GCC internal prototype to avoid an error.
20536 Use char because int might match the return type of a GCC
20537 builtin and then its argument prototype would still apply. */
20538 #ifdef __cplusplus
20539 extern "C"
20540 #endif
20541 char krb5_init_context ();
20543 main ()
20545 return krb5_init_context ();
20547 return 0;
20549 _ACEOF
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555 esac
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest$ac_exeext &&
20567 $as_test_x conftest$ac_exeext; then
20568 ac_cv_lib_krb5_krb5_init_context=yes
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_lib_krb5_krb5_init_context=no
20576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20577 conftest$ac_exeext conftest.$ac_ext
20578 LIBS=$ac_check_lib_save_LIBS
20580 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20581 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20582 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_LIBKRB5 1
20585 _ACEOF
20587 LIBS="-lkrb5 $LIBS"
20591 if test "${with_kerberos5+set}" != set; then
20593 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20594 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20595 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20596 echo $ECHO_N "(cached) $ECHO_C" >&6
20597 else
20598 ac_check_lib_save_LIBS=$LIBS
20599 LIBS="-ldes425 $LIBS"
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20610 #ifdef __cplusplus
20611 extern "C"
20612 #endif
20613 char des_cbc_encrypt ();
20615 main ()
20617 return des_cbc_encrypt ();
20619 return 0;
20621 _ACEOF
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20630 ac_status=$?
20631 grep -v '^ *+' conftest.er1 >conftest.err
20632 rm -f conftest.er1
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); } && {
20636 test -z "$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20638 } && test -s conftest$ac_exeext &&
20639 $as_test_x conftest$ac_exeext; then
20640 ac_cv_lib_des425_des_cbc_encrypt=yes
20641 else
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_cv_lib_des425_des_cbc_encrypt=no
20648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20649 conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20652 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20653 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20654 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_LIBDES425 1
20657 _ACEOF
20659 LIBS="-ldes425 $LIBS"
20661 else
20663 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20664 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20665 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20666 echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668 ac_check_lib_save_LIBS=$LIBS
20669 LIBS="-ldes $LIBS"
20670 cat >conftest.$ac_ext <<_ACEOF
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20677 /* Override any GCC internal prototype to avoid an error.
20678 Use char because int might match the return type of a GCC
20679 builtin and then its argument prototype would still apply. */
20680 #ifdef __cplusplus
20681 extern "C"
20682 #endif
20683 char des_cbc_encrypt ();
20685 main ()
20687 return des_cbc_encrypt ();
20689 return 0;
20691 _ACEOF
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest$ac_exeext &&
20709 $as_test_x conftest$ac_exeext; then
20710 ac_cv_lib_des_des_cbc_encrypt=yes
20711 else
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_cv_lib_des_des_cbc_encrypt=no
20718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20722 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20723 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20724 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_LIBDES 1
20727 _ACEOF
20729 LIBS="-ldes $LIBS"
20736 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20737 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20738 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 else
20741 ac_check_lib_save_LIBS=$LIBS
20742 LIBS="-lkrb4 $LIBS"
20743 cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h. */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20750 /* Override any GCC internal prototype to avoid an error.
20751 Use char because int might match the return type of a GCC
20752 builtin and then its argument prototype would still apply. */
20753 #ifdef __cplusplus
20754 extern "C"
20755 #endif
20756 char krb_get_cred ();
20758 main ()
20760 return krb_get_cred ();
20762 return 0;
20764 _ACEOF
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770 esac
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20773 ac_status=$?
20774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest$ac_exeext &&
20782 $as_test_x conftest$ac_exeext; then
20783 ac_cv_lib_krb4_krb_get_cred=yes
20784 else
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_cv_lib_krb4_krb_get_cred=no
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792 conftest$ac_exeext conftest.$ac_ext
20793 LIBS=$ac_check_lib_save_LIBS
20795 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20796 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20797 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define HAVE_LIBKRB4 1
20800 _ACEOF
20802 LIBS="-lkrb4 $LIBS"
20804 else
20806 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20807 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20808 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811 ac_check_lib_save_LIBS=$LIBS
20812 LIBS="-lkrb $LIBS"
20813 cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h. */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 char krb_get_cred ();
20828 main ()
20830 return krb_get_cred ();
20832 return 0;
20834 _ACEOF
20835 rm -f conftest.$ac_objext conftest$ac_exeext
20836 if { (ac_try="$ac_link"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_link") 2>conftest.er1
20843 ac_status=$?
20844 grep -v '^ *+' conftest.er1 >conftest.err
20845 rm -f conftest.er1
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest$ac_exeext &&
20852 $as_test_x conftest$ac_exeext; then
20853 ac_cv_lib_krb_krb_get_cred=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_lib_krb_krb_get_cred=no
20861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20862 conftest$ac_exeext conftest.$ac_ext
20863 LIBS=$ac_check_lib_save_LIBS
20865 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20866 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20867 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20868 cat >>confdefs.h <<_ACEOF
20869 #define HAVE_LIBKRB 1
20870 _ACEOF
20872 LIBS="-lkrb $LIBS"
20880 if test "${with_kerberos5+set}" = set; then
20882 for ac_header in krb5.h
20884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20889 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 ac_res=`eval echo '${'$as_ac_Header'}'`
20892 { echo "$as_me:$LINENO: result: $ac_res" >&5
20893 echo "${ECHO_T}$ac_res" >&6; }
20894 else
20895 # Is the header compilable?
20896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20898 cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h. */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 $ac_includes_default
20905 #include <$ac_header>
20906 _ACEOF
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20912 esac
20913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20915 ac_status=$?
20916 grep -v '^ *+' conftest.er1 >conftest.err
20917 rm -f conftest.er1
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_header_compiler=yes
20925 else
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_header_compiler=no
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20934 echo "${ECHO_T}$ac_header_compiler" >&6; }
20936 # Is the header present?
20937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20939 cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h. */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #include <$ac_header>
20946 _ACEOF
20947 if { (ac_try="$ac_cpp conftest.$ac_ext"
20948 case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951 esac
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20954 ac_status=$?
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } >/dev/null && {
20960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 }; then
20963 ac_header_preproc=yes
20964 else
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ac_header_preproc=no
20971 rm -f conftest.err conftest.$ac_ext
20972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20973 echo "${ECHO_T}$ac_header_preproc" >&6; }
20975 # So? What about this header?
20976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20977 yes:no: )
20978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20982 ac_header_preproc=yes
20984 no:yes:* )
20985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20999 esac
21000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005 eval "$as_ac_Header=\$ac_header_preproc"
21007 ac_res=`eval echo '${'$as_ac_Header'}'`
21008 { echo "$as_me:$LINENO: result: $ac_res" >&5
21009 echo "${ECHO_T}$ac_res" >&6; }
21012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21013 cat >>confdefs.h <<_ACEOF
21014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21015 _ACEOF
21019 done
21021 else
21023 for ac_header in des.h
21025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 ac_res=`eval echo '${'$as_ac_Header'}'`
21033 { echo "$as_me:$LINENO: result: $ac_res" >&5
21034 echo "${ECHO_T}$ac_res" >&6; }
21035 else
21036 # Is the header compilable?
21037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21040 /* confdefs.h. */
21041 _ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 $ac_includes_default
21046 #include <$ac_header>
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21056 ac_status=$?
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && {
21062 test -z "$ac_c_werror_flag" ||
21063 test ! -s conftest.err
21064 } && test -s conftest.$ac_objext; then
21065 ac_header_compiler=yes
21066 else
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_header_compiler=no
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21075 echo "${ECHO_T}$ac_header_compiler" >&6; }
21077 # Is the header present?
21078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 #include <$ac_header>
21087 _ACEOF
21088 if { (ac_try="$ac_cpp conftest.$ac_ext"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21095 ac_status=$?
21096 grep -v '^ *+' conftest.er1 >conftest.err
21097 rm -f conftest.er1
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } >/dev/null && {
21101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21103 }; then
21104 ac_header_preproc=yes
21105 else
21106 echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_header_preproc=no
21112 rm -f conftest.err conftest.$ac_ext
21113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21114 echo "${ECHO_T}$ac_header_preproc" >&6; }
21116 # So? What about this header?
21117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21118 yes:no: )
21119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21123 ac_header_preproc=yes
21125 no:yes:* )
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21140 esac
21141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 eval "$as_ac_Header=\$ac_header_preproc"
21148 ac_res=`eval echo '${'$as_ac_Header'}'`
21149 { echo "$as_me:$LINENO: result: $ac_res" >&5
21150 echo "${ECHO_T}$ac_res" >&6; }
21153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21156 _ACEOF
21158 else
21160 for ac_header in kerberosIV/des.h
21162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21167 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 ac_res=`eval echo '${'$as_ac_Header'}'`
21170 { echo "$as_me:$LINENO: result: $ac_res" >&5
21171 echo "${ECHO_T}$ac_res" >&6; }
21172 else
21173 # Is the header compilable?
21174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 #include <$ac_header>
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21190 esac
21191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21193 ac_status=$?
21194 grep -v '^ *+' conftest.er1 >conftest.err
21195 rm -f conftest.er1
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_header_compiler=yes
21203 else
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21212 echo "${ECHO_T}$ac_header_compiler" >&6; }
21214 # Is the header present?
21215 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21216 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21217 cat >conftest.$ac_ext <<_ACEOF
21218 /* confdefs.h. */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <$ac_header>
21224 _ACEOF
21225 if { (ac_try="$ac_cpp conftest.$ac_ext"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21232 ac_status=$?
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } >/dev/null && {
21238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21240 }; then
21241 ac_header_preproc=yes
21242 else
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_header_preproc=no
21249 rm -f conftest.err conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6; }
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21255 yes:no: )
21256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21260 ac_header_preproc=yes
21262 no:yes:* )
21263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21277 esac
21278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 else
21283 eval "$as_ac_Header=\$ac_header_preproc"
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286 { echo "$as_me:$LINENO: result: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21293 _ACEOF
21295 else
21297 for ac_header in kerberos/des.h
21299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 ac_res=`eval echo '${'$as_ac_Header'}'`
21307 { echo "$as_me:$LINENO: result: $ac_res" >&5
21308 echo "${ECHO_T}$ac_res" >&6; }
21309 else
21310 # Is the header compilable?
21311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21314 /* confdefs.h. */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 $ac_includes_default
21320 #include <$ac_header>
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } && {
21336 test -z "$ac_c_werror_flag" ||
21337 test ! -s conftest.err
21338 } && test -s conftest.$ac_objext; then
21339 ac_header_compiler=yes
21340 else
21341 echo "$as_me: failed program was:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 ac_header_compiler=no
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21349 echo "${ECHO_T}$ac_header_compiler" >&6; }
21351 # Is the header present?
21352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 #include <$ac_header>
21361 _ACEOF
21362 if { (ac_try="$ac_cpp conftest.$ac_ext"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21366 esac
21367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } >/dev/null && {
21375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 }; then
21378 ac_header_preproc=yes
21379 else
21380 echo "$as_me: failed program was:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_preproc=no
21386 rm -f conftest.err conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21388 echo "${ECHO_T}$ac_header_preproc" >&6; }
21390 # So? What about this header?
21391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21392 yes:no: )
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21397 ac_header_preproc=yes
21399 no:yes:* )
21400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21414 esac
21415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420 eval "$as_ac_Header=\$ac_header_preproc"
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423 { echo "$as_me:$LINENO: result: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21428 cat >>confdefs.h <<_ACEOF
21429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21430 _ACEOF
21434 done
21438 done
21442 done
21445 for ac_header in krb.h
21447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21452 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 ac_res=`eval echo '${'$as_ac_Header'}'`
21455 { echo "$as_me:$LINENO: result: $ac_res" >&5
21456 echo "${ECHO_T}$ac_res" >&6; }
21457 else
21458 # Is the header compilable?
21459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21461 cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h. */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 $ac_includes_default
21468 #include <$ac_header>
21469 _ACEOF
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_compile") 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest.$ac_objext; then
21487 ac_header_compiler=yes
21488 else
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ac_header_compiler=no
21495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21497 echo "${ECHO_T}$ac_header_compiler" >&6; }
21499 # Is the header present?
21500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21502 cat >conftest.$ac_ext <<_ACEOF
21503 /* confdefs.h. */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 #include <$ac_header>
21509 _ACEOF
21510 if { (ac_try="$ac_cpp conftest.$ac_ext"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21514 esac
21515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21517 ac_status=$?
21518 grep -v '^ *+' conftest.er1 >conftest.err
21519 rm -f conftest.er1
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); } >/dev/null && {
21523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21525 }; then
21526 ac_header_preproc=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_header_preproc=no
21534 rm -f conftest.err conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21536 echo "${ECHO_T}$ac_header_preproc" >&6; }
21538 # So? What about this header?
21539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21540 yes:no: )
21541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21545 ac_header_preproc=yes
21547 no:yes:* )
21548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21562 esac
21563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21567 else
21568 eval "$as_ac_Header=\$ac_header_preproc"
21570 ac_res=`eval echo '${'$as_ac_Header'}'`
21571 { echo "$as_me:$LINENO: result: $ac_res" >&5
21572 echo "${ECHO_T}$ac_res" >&6; }
21575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21578 _ACEOF
21580 else
21582 for ac_header in kerberosIV/krb.h
21584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21589 echo $ECHO_N "(cached) $ECHO_C" >&6
21591 ac_res=`eval echo '${'$as_ac_Header'}'`
21592 { echo "$as_me:$LINENO: result: $ac_res" >&5
21593 echo "${ECHO_T}$ac_res" >&6; }
21594 else
21595 # Is the header compilable?
21596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 $ac_includes_default
21605 #include <$ac_header>
21606 _ACEOF
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 ac_header_compiler=yes
21625 else
21626 echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_header_compiler=no
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21634 echo "${ECHO_T}$ac_header_compiler" >&6; }
21636 # Is the header present?
21637 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h. */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <$ac_header>
21646 _ACEOF
21647 if { (ac_try="$ac_cpp conftest.$ac_ext"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651 esac
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } >/dev/null && {
21660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 }; then
21663 ac_header_preproc=yes
21664 else
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_header_preproc=no
21671 rm -f conftest.err conftest.$ac_ext
21672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6; }
21675 # So? What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21677 yes:no: )
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21682 ac_header_preproc=yes
21684 no:yes:* )
21685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21699 esac
21700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705 eval "$as_ac_Header=\$ac_header_preproc"
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21715 _ACEOF
21717 else
21719 for ac_header in kerberos/krb.h
21721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 ac_res=`eval echo '${'$as_ac_Header'}'`
21729 { echo "$as_me:$LINENO: result: $ac_res" >&5
21730 echo "${ECHO_T}$ac_res" >&6; }
21731 else
21732 # Is the header compilable?
21733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21735 cat >conftest.$ac_ext <<_ACEOF
21736 /* confdefs.h. */
21737 _ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 $ac_includes_default
21742 #include <$ac_header>
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 ac_header_compiler=yes
21762 else
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_header_compiler=no
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21771 echo "${ECHO_T}$ac_header_compiler" >&6; }
21773 # Is the header present?
21774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h. */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 #include <$ac_header>
21783 _ACEOF
21784 if { (ac_try="$ac_cpp conftest.$ac_ext"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21791 ac_status=$?
21792 grep -v '^ *+' conftest.er1 >conftest.err
21793 rm -f conftest.er1
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } >/dev/null && {
21797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 }; then
21800 ac_header_preproc=yes
21801 else
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_header_preproc=no
21808 rm -f conftest.err conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21810 echo "${ECHO_T}$ac_header_preproc" >&6; }
21812 # So? What about this header?
21813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21814 yes:no: )
21815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21819 ac_header_preproc=yes
21821 no:yes:* )
21822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21836 esac
21837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 else
21842 eval "$as_ac_Header=\$ac_header_preproc"
21844 ac_res=`eval echo '${'$as_ac_Header'}'`
21845 { echo "$as_me:$LINENO: result: $ac_res" >&5
21846 echo "${ECHO_T}$ac_res" >&6; }
21849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21852 _ACEOF
21856 done
21860 done
21864 done
21868 for ac_header in com_err.h
21870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 ac_res=`eval echo '${'$as_ac_Header'}'`
21878 { echo "$as_me:$LINENO: result: $ac_res" >&5
21879 echo "${ECHO_T}$ac_res" >&6; }
21880 else
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h. */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <$ac_header>
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_compiler=no
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <$ac_header>
21932 _ACEOF
21933 if { (ac_try="$ac_cpp conftest.$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 }; then
21949 ac_header_preproc=yes
21950 else
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_header_preproc=no
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21963 yes:no: )
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21968 ac_header_preproc=yes
21970 no:yes:* )
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21985 esac
21986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991 eval "$as_ac_Header=\$ac_header_preproc"
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994 { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21999 cat >>confdefs.h <<_ACEOF
22000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22001 _ACEOF
22005 done
22009 # Solaris requires -lintl if you want strerror (which calls dgettext)
22010 # to return localized messages.
22012 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22013 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22014 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 ac_check_lib_save_LIBS=$LIBS
22018 LIBS="-lintl $LIBS"
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h. */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22026 /* Override any GCC internal prototype to avoid an error.
22027 Use char because int might match the return type of a GCC
22028 builtin and then its argument prototype would still apply. */
22029 #ifdef __cplusplus
22030 extern "C"
22031 #endif
22032 char dgettext ();
22034 main ()
22036 return dgettext ();
22038 return 0;
22040 _ACEOF
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_link") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest$ac_exeext &&
22058 $as_test_x conftest$ac_exeext; then
22059 ac_cv_lib_intl_dgettext=yes
22060 else
22061 echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22064 ac_cv_lib_intl_dgettext=no
22067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22068 conftest$ac_exeext conftest.$ac_ext
22069 LIBS=$ac_check_lib_save_LIBS
22071 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22072 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22073 if test $ac_cv_lib_intl_dgettext = yes; then
22074 cat >>confdefs.h <<_ACEOF
22075 #define HAVE_LIBINTL 1
22076 _ACEOF
22078 LIBS="-lintl $LIBS"
22083 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22084 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22085 if test "${emacs_cv_localtime_cache+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 if test x$ac_cv_func_tzset = xyes; then
22089 if test "$cross_compiling" = yes; then
22090 # If we have tzset, assume the worst when cross-compiling.
22091 emacs_cv_localtime_cache=yes
22092 else
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h. */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 #include <time.h>
22100 extern char **environ;
22101 unset_TZ ()
22103 char **from, **to;
22104 for (to = from = environ; (*to = *from); from++)
22105 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22106 to++;
22108 char TZ_GMT0[] = "TZ=GMT0";
22109 char TZ_PST8[] = "TZ=PST8";
22110 main()
22112 time_t now = time ((time_t *) 0);
22113 int hour_GMT0, hour_unset;
22114 if (putenv (TZ_GMT0) != 0)
22115 exit (1);
22116 hour_GMT0 = localtime (&now)->tm_hour;
22117 unset_TZ ();
22118 hour_unset = localtime (&now)->tm_hour;
22119 if (putenv (TZ_PST8) != 0)
22120 exit (1);
22121 if (localtime (&now)->tm_hour == hour_GMT0)
22122 exit (1);
22123 unset_TZ ();
22124 if (localtime (&now)->tm_hour != hour_unset)
22125 exit (1);
22126 exit (0);
22128 _ACEOF
22129 rm -f conftest$ac_exeext
22130 if { (ac_try="$ac_link"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_link") 2>&5
22137 ac_status=$?
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22140 { (case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22143 esac
22144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_try") 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 emacs_cv_localtime_cache=no
22150 else
22151 echo "$as_me: program exited with status $ac_status" >&5
22152 echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ( exit $ac_status )
22156 emacs_cv_localtime_cache=yes
22158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22162 else
22163 # If we lack tzset, report that localtime does not cache TZ,
22164 # since we can't invalidate the cache if we don't have tzset.
22165 emacs_cv_localtime_cache=no
22168 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22169 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22170 if test $emacs_cv_localtime_cache = yes; then
22172 cat >>confdefs.h <<\_ACEOF
22173 #define LOCALTIME_CACHE 1
22174 _ACEOF
22178 if test "x$HAVE_TIMEVAL" = xyes; then
22180 for ac_func in gettimeofday
22182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188 cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h. */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22196 #define $ac_func innocuous_$ac_func
22198 /* System header to define __stub macros and hopefully few prototypes,
22199 which can conflict with char $ac_func (); below.
22200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201 <limits.h> exists even on freestanding compilers. */
22203 #ifdef __STDC__
22204 # include <limits.h>
22205 #else
22206 # include <assert.h>
22207 #endif
22209 #undef $ac_func
22211 /* Override any GCC internal prototype to avoid an error.
22212 Use char because int might match the return type of a GCC
22213 builtin and then its argument prototype would still apply. */
22214 #ifdef __cplusplus
22215 extern "C"
22216 #endif
22217 char $ac_func ();
22218 /* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
22221 #if defined __stub_$ac_func || defined __stub___$ac_func
22222 choke me
22223 #endif
22226 main ()
22228 return $ac_func ();
22230 return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_link") 2>conftest.er1
22241 ac_status=$?
22242 grep -v '^ *+' conftest.er1 >conftest.err
22243 rm -f conftest.er1
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); } && {
22247 test -z "$ac_c_werror_flag" ||
22248 test ! -s conftest.err
22249 } && test -s conftest$ac_exeext &&
22250 $as_test_x conftest$ac_exeext; then
22251 eval "$as_ac_var=yes"
22252 else
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 eval "$as_ac_var=no"
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260 conftest$ac_exeext conftest.$ac_ext
22262 ac_res=`eval echo '${'$as_ac_var'}'`
22263 { echo "$as_me:$LINENO: result: $ac_res" >&5
22264 echo "${ECHO_T}$ac_res" >&6; }
22265 if test `eval echo '${'$as_ac_var'}'` = yes; then
22266 cat >>confdefs.h <<_ACEOF
22267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22268 _ACEOF
22271 done
22273 if test $ac_cv_func_gettimeofday = yes; then
22274 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22275 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22276 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22279 cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h. */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22286 #ifdef TIME_WITH_SYS_TIME
22287 #include <sys/time.h>
22288 #include <time.h>
22289 #else
22290 #ifdef HAVE_SYS_TIME_H
22291 #include <sys/time.h>
22292 #else
22293 #include <time.h>
22294 #endif
22295 #endif
22297 main ()
22299 struct timeval time;
22300 gettimeofday (&time, 0);
22302 return 0;
22304 _ACEOF
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310 esac
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 emacs_cv_gettimeofday_two_arguments=yes
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 emacs_cv_gettimeofday_two_arguments=no
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22332 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22333 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22334 if test $emacs_cv_gettimeofday_two_arguments = no; then
22336 cat >>confdefs.h <<\_ACEOF
22337 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22338 _ACEOF
22344 ok_so_far=yes
22345 { echo "$as_me:$LINENO: checking for socket" >&5
22346 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22347 if test "${ac_cv_func_socket+set}" = set; then
22348 echo $ECHO_N "(cached) $ECHO_C" >&6
22349 else
22350 cat >conftest.$ac_ext <<_ACEOF
22351 /* confdefs.h. */
22352 _ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22358 #define socket innocuous_socket
22360 /* System header to define __stub macros and hopefully few prototypes,
22361 which can conflict with char socket (); below.
22362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22363 <limits.h> exists even on freestanding compilers. */
22365 #ifdef __STDC__
22366 # include <limits.h>
22367 #else
22368 # include <assert.h>
22369 #endif
22371 #undef socket
22373 /* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22376 #ifdef __cplusplus
22377 extern "C"
22378 #endif
22379 char socket ();
22380 /* The GNU C library defines this for functions which it implements
22381 to always fail with ENOSYS. Some functions are actually named
22382 something starting with __ and the normal name is an alias. */
22383 #if defined __stub_socket || defined __stub___socket
22384 choke me
22385 #endif
22388 main ()
22390 return socket ();
22392 return 0;
22394 _ACEOF
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_link") 2>conftest.er1
22403 ac_status=$?
22404 grep -v '^ *+' conftest.er1 >conftest.err
22405 rm -f conftest.er1
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext &&
22412 $as_test_x conftest$ac_exeext; then
22413 ac_cv_func_socket=yes
22414 else
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_func_socket=no
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422 conftest$ac_exeext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22425 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22426 if test $ac_cv_func_socket = yes; then
22428 else
22429 ok_so_far=no
22432 if test $ok_so_far = yes; then
22433 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22434 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22435 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22436 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22440 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22441 else
22442 # Is the header compilable?
22443 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22444 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22446 /* confdefs.h. */
22447 _ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 #include <netinet/in.h>
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_compile") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest.$ac_objext; then
22471 ac_header_compiler=yes
22472 else
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_header_compiler=no
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22481 echo "${ECHO_T}$ac_header_compiler" >&6; }
22483 # Is the header present?
22484 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22485 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22486 cat >conftest.$ac_ext <<_ACEOF
22487 /* confdefs.h. */
22488 _ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 #include <netinet/in.h>
22493 _ACEOF
22494 if { (ac_try="$ac_cpp conftest.$ac_ext"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22501 ac_status=$?
22502 grep -v '^ *+' conftest.er1 >conftest.err
22503 rm -f conftest.er1
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506 (exit $ac_status); } >/dev/null && {
22507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22509 }; then
22510 ac_header_preproc=yes
22511 else
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_header_preproc=no
22518 rm -f conftest.err conftest.$ac_ext
22519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6; }
22522 # So? What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22524 yes:no: )
22525 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22526 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22527 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22528 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22529 ac_header_preproc=yes
22531 no:yes:* )
22532 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22533 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22535 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22537 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22539 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22541 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22543 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22546 esac
22547 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22548 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22549 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551 else
22552 ac_cv_header_netinet_in_h=$ac_header_preproc
22554 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22555 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22558 if test $ac_cv_header_netinet_in_h = yes; then
22560 else
22561 ok_so_far=no
22566 if test $ok_so_far = yes; then
22567 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22568 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22569 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22570 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22571 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22574 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22575 else
22576 # Is the header compilable?
22577 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22578 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22579 cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h. */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 #include <arpa/inet.h>
22587 _ACEOF
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_compile") 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } && {
22602 test -z "$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 } && test -s conftest.$ac_objext; then
22605 ac_header_compiler=yes
22606 else
22607 echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_header_compiler=no
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22615 echo "${ECHO_T}$ac_header_compiler" >&6; }
22617 # Is the header present?
22618 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22619 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22620 cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h. */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <arpa/inet.h>
22627 _ACEOF
22628 if { (ac_try="$ac_cpp conftest.$ac_ext"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } >/dev/null && {
22641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 }; then
22644 ac_header_preproc=yes
22645 else
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ac_header_preproc=no
22652 rm -f conftest.err conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22654 echo "${ECHO_T}$ac_header_preproc" >&6; }
22656 # So? What about this header?
22657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22658 yes:no: )
22659 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22660 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22661 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22662 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22663 ac_header_preproc=yes
22665 no:yes:* )
22666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22667 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22668 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22669 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22671 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22673 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22675 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22677 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22680 esac
22681 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22682 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22683 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22684 echo $ECHO_N "(cached) $ECHO_C" >&6
22685 else
22686 ac_cv_header_arpa_inet_h=$ac_header_preproc
22688 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22689 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22692 if test $ac_cv_header_arpa_inet_h = yes; then
22694 else
22695 ok_so_far=no
22700 if test $ok_so_far = yes; then
22702 cat >>confdefs.h <<\_ACEOF
22703 #define HAVE_INET_SOCKETS 1
22704 _ACEOF
22709 for ac_header in sys/ioctl.h
22711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22716 echo $ECHO_N "(cached) $ECHO_C" >&6
22718 ac_res=`eval echo '${'$as_ac_Header'}'`
22719 { echo "$as_me:$LINENO: result: $ac_res" >&5
22720 echo "${ECHO_T}$ac_res" >&6; }
22721 else
22722 # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #include <$ac_header>
22733 _ACEOF
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22739 esac
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22742 ac_status=$?
22743 grep -v '^ *+' conftest.er1 >conftest.err
22744 rm -f conftest.er1
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest.$ac_objext; then
22751 ac_header_compiler=yes
22752 else
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_header_compiler=no
22759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22761 echo "${ECHO_T}$ac_header_compiler" >&6; }
22763 # Is the header present?
22764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22766 cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h. */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <$ac_header>
22773 _ACEOF
22774 if { (ac_try="$ac_cpp conftest.$ac_ext"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } >/dev/null && {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 }; then
22790 ac_header_preproc=yes
22791 else
22792 echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_preproc=no
22798 rm -f conftest.err conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22800 echo "${ECHO_T}$ac_header_preproc" >&6; }
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22804 yes:no: )
22805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22809 ac_header_preproc=yes
22811 no:yes:* )
22812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22826 esac
22827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832 eval "$as_ac_Header=\$ac_header_preproc"
22834 ac_res=`eval echo '${'$as_ac_Header'}'`
22835 { echo "$as_me:$LINENO: result: $ac_res" >&5
22836 echo "${ECHO_T}$ac_res" >&6; }
22839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22840 cat >>confdefs.h <<_ACEOF
22841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22842 _ACEOF
22846 done
22849 if test -f /usr/lpp/X11/bin/smt.exp; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_AIX_SMT_EXP 1
22853 _ACEOF
22857 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22858 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22859 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22860 { echo "$as_me:$LINENO: result: yes" >&5
22861 echo "${ECHO_T}yes" >&6; }
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_DEV_PTMX 1
22865 _ACEOF
22867 else
22868 { echo "$as_me:$LINENO: result: no" >&5
22869 echo "${ECHO_T}no" >&6; }
22872 { echo "$as_me:$LINENO: checking for pid_t" >&5
22873 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22874 if test "${ac_cv_type_pid_t+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 else
22877 cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h. */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22883 $ac_includes_default
22884 typedef pid_t ac__type_new_;
22886 main ()
22888 if ((ac__type_new_ *) 0)
22889 return 0;
22890 if (sizeof (ac__type_new_))
22891 return 0;
22893 return 0;
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22904 ac_status=$?
22905 grep -v '^ *+' conftest.er1 >conftest.err
22906 rm -f conftest.er1
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 ac_cv_type_pid_t=yes
22914 else
22915 echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_cv_type_pid_t=no
22921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22925 if test $ac_cv_type_pid_t = yes; then
22927 else
22929 cat >>confdefs.h <<_ACEOF
22930 #define pid_t int
22931 _ACEOF
22936 for ac_header in vfork.h
22938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22945 ac_res=`eval echo '${'$as_ac_Header'}'`
22946 { echo "$as_me:$LINENO: result: $ac_res" >&5
22947 echo "${ECHO_T}$ac_res" >&6; }
22948 else
22949 # Is the header compilable?
22950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22952 cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h. */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22960 _ACEOF
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966 esac
22967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22978 ac_header_compiler=yes
22979 else
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ac_header_compiler=no
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22988 echo "${ECHO_T}$ac_header_compiler" >&6; }
22990 # Is the header present?
22991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h. */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
22999 #include <$ac_header>
23000 _ACEOF
23001 if { (ac_try="$ac_cpp conftest.$ac_ext"
23002 case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23005 esac
23006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23008 ac_status=$?
23009 grep -v '^ *+' conftest.er1 >conftest.err
23010 rm -f conftest.er1
23011 cat conftest.err >&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } >/dev/null && {
23014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23015 test ! -s conftest.err
23016 }; then
23017 ac_header_preproc=yes
23018 else
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_header_preproc=no
23025 rm -f conftest.err conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23027 echo "${ECHO_T}$ac_header_preproc" >&6; }
23029 # So? What about this header?
23030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23031 yes:no: )
23032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23036 ac_header_preproc=yes
23038 no:yes:* )
23039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23053 esac
23054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059 eval "$as_ac_Header=\$ac_header_preproc"
23061 ac_res=`eval echo '${'$as_ac_Header'}'`
23062 { echo "$as_me:$LINENO: result: $ac_res" >&5
23063 echo "${ECHO_T}$ac_res" >&6; }
23066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23067 cat >>confdefs.h <<_ACEOF
23068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23069 _ACEOF
23073 done
23077 for ac_func in fork vfork
23079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23093 #define $ac_func innocuous_$ac_func
23095 /* System header to define __stub macros and hopefully few prototypes,
23096 which can conflict with char $ac_func (); below.
23097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23098 <limits.h> exists even on freestanding compilers. */
23100 #ifdef __STDC__
23101 # include <limits.h>
23102 #else
23103 # include <assert.h>
23104 #endif
23106 #undef $ac_func
23108 /* Override any GCC internal prototype to avoid an error.
23109 Use char because int might match the return type of a GCC
23110 builtin and then its argument prototype would still apply. */
23111 #ifdef __cplusplus
23112 extern "C"
23113 #endif
23114 char $ac_func ();
23115 /* The GNU C library defines this for functions which it implements
23116 to always fail with ENOSYS. Some functions are actually named
23117 something starting with __ and the normal name is an alias. */
23118 #if defined __stub_$ac_func || defined __stub___$ac_func
23119 choke me
23120 #endif
23123 main ()
23125 return $ac_func ();
23127 return 0;
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest$ac_exeext &&
23147 $as_test_x conftest$ac_exeext; then
23148 eval "$as_ac_var=yes"
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 eval "$as_ac_var=no"
23156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23157 conftest$ac_exeext conftest.$ac_ext
23159 ac_res=`eval echo '${'$as_ac_var'}'`
23160 { echo "$as_me:$LINENO: result: $ac_res" >&5
23161 echo "${ECHO_T}$ac_res" >&6; }
23162 if test `eval echo '${'$as_ac_var'}'` = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23165 _ACEOF
23168 done
23170 if test "x$ac_cv_func_fork" = xyes; then
23171 { echo "$as_me:$LINENO: checking for working fork" >&5
23172 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23173 if test "${ac_cv_func_fork_works+set}" = set; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 else
23176 if test "$cross_compiling" = yes; then
23177 ac_cv_func_fork_works=cross
23178 else
23179 cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h. */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 $ac_includes_default
23187 main ()
23190 /* By Ruediger Kuhlmann. */
23191 return fork () < 0;
23194 return 0;
23196 _ACEOF
23197 rm -f conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>&5
23205 ac_status=$?
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208 { (case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_try") 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_func_fork_works=yes
23218 else
23219 echo "$as_me: program exited with status $ac_status" >&5
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ( exit $ac_status )
23224 ac_cv_func_fork_works=no
23226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23232 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23234 else
23235 ac_cv_func_fork_works=$ac_cv_func_fork
23237 if test "x$ac_cv_func_fork_works" = xcross; then
23238 case $host in
23239 *-*-amigaos* | *-*-msdosdjgpp*)
23240 # Override, as these systems have only a dummy fork() stub
23241 ac_cv_func_fork_works=no
23244 ac_cv_func_fork_works=yes
23246 esac
23247 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23248 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23250 ac_cv_func_vfork_works=$ac_cv_func_vfork
23251 if test "x$ac_cv_func_vfork" = xyes; then
23252 { echo "$as_me:$LINENO: checking for working vfork" >&5
23253 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23254 if test "${ac_cv_func_vfork_works+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257 if test "$cross_compiling" = yes; then
23258 ac_cv_func_vfork_works=cross
23259 else
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h. */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 /* Thanks to Paul Eggert for this test. */
23267 $ac_includes_default
23268 #include <sys/wait.h>
23269 #ifdef HAVE_VFORK_H
23270 # include <vfork.h>
23271 #endif
23272 /* On some sparc systems, changes by the child to local and incoming
23273 argument registers are propagated back to the parent. The compiler
23274 is told about this with #include <vfork.h>, but some compilers
23275 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23276 static variable whose address is put into a register that is
23277 clobbered by the vfork. */
23278 static void
23279 #ifdef __cplusplus
23280 sparc_address_test (int arg)
23281 # else
23282 sparc_address_test (arg) int arg;
23283 #endif
23285 static pid_t child;
23286 if (!child) {
23287 child = vfork ();
23288 if (child < 0) {
23289 perror ("vfork");
23290 _exit(2);
23292 if (!child) {
23293 arg = getpid();
23294 write(-1, "", 0);
23295 _exit (arg);
23301 main ()
23303 pid_t parent = getpid ();
23304 pid_t child;
23306 sparc_address_test (0);
23308 child = vfork ();
23310 if (child == 0) {
23311 /* Here is another test for sparc vfork register problems. This
23312 test uses lots of local variables, at least as many local
23313 variables as main has allocated so far including compiler
23314 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23315 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23316 reuse the register of parent for one of the local variables,
23317 since it will think that parent can't possibly be used any more
23318 in this routine. Assigning to the local variable will thus
23319 munge parent in the parent process. */
23320 pid_t
23321 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23322 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23323 /* Convince the compiler that p..p7 are live; otherwise, it might
23324 use the same hardware register for all 8 local variables. */
23325 if (p != p1 || p != p2 || p != p3 || p != p4
23326 || p != p5 || p != p6 || p != p7)
23327 _exit(1);
23329 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23330 from child file descriptors. If the child closes a descriptor
23331 before it execs or exits, this munges the parent's descriptor
23332 as well. Test for this by closing stdout in the child. */
23333 _exit(close(fileno(stdout)) != 0);
23334 } else {
23335 int status;
23336 struct stat st;
23338 while (wait(&status) != child)
23340 return (
23341 /* Was there some problem with vforking? */
23342 child < 0
23344 /* Did the child fail? (This shouldn't happen.) */
23345 || status
23347 /* Did the vfork/compiler bug occur? */
23348 || parent != getpid()
23350 /* Did the file descriptor bug occur? */
23351 || fstat(fileno(stdout), &st) != 0
23355 _ACEOF
23356 rm -f conftest$ac_exeext
23357 if { (ac_try="$ac_link"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23361 esac
23362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23363 (eval "$ac_link") 2>&5
23364 ac_status=$?
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23367 { (case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_try") 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; }; then
23376 ac_cv_func_vfork_works=yes
23377 else
23378 echo "$as_me: program exited with status $ac_status" >&5
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ( exit $ac_status )
23383 ac_cv_func_vfork_works=no
23385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23390 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23391 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23394 if test "x$ac_cv_func_fork_works" = xcross; then
23395 ac_cv_func_vfork_works=$ac_cv_func_vfork
23396 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23397 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23400 if test "x$ac_cv_func_vfork_works" = xyes; then
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_WORKING_VFORK 1
23404 _ACEOF
23406 else
23408 cat >>confdefs.h <<\_ACEOF
23409 #define vfork fork
23410 _ACEOF
23413 if test "x$ac_cv_func_fork_works" = xyes; then
23415 cat >>confdefs.h <<\_ACEOF
23416 #define HAVE_WORKING_FORK 1
23417 _ACEOF
23422 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23423 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23424 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23426 else
23427 cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h. */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 #include <langinfo.h>
23435 main ()
23437 char* cs = nl_langinfo(CODESET);
23439 return 0;
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23447 esac
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23450 ac_status=$?
23451 grep -v '^ *+' conftest.er1 >conftest.err
23452 rm -f conftest.er1
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext &&
23459 $as_test_x conftest$ac_exeext; then
23460 emacs_cv_langinfo_codeset=yes
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 emacs_cv_langinfo_codeset=no
23468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23469 conftest$ac_exeext conftest.$ac_ext
23472 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23473 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23474 if test $emacs_cv_langinfo_codeset = yes; then
23476 cat >>confdefs.h <<\_ACEOF
23477 #define HAVE_LANGINFO_CODESET 1
23478 _ACEOF
23482 { echo "$as_me:$LINENO: checking for size_t" >&5
23483 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23484 if test "${ac_cv_type_size_t+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h. */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 $ac_includes_default
23494 typedef size_t ac__type_new_;
23496 main ()
23498 if ((ac__type_new_ *) 0)
23499 return 0;
23500 if (sizeof (ac__type_new_))
23501 return 0;
23503 return 0;
23505 _ACEOF
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23511 esac
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23514 ac_status=$?
23515 grep -v '^ *+' conftest.er1 >conftest.err
23516 rm -f conftest.er1
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_type_size_t=yes
23524 else
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_type_size_t=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23534 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23535 if test $ac_cv_type_size_t = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_SIZE_T 1
23539 _ACEOF
23545 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23546 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23547 if test "${ac_cv_type_mbstate_t+set}" = set; then
23548 echo $ECHO_N "(cached) $ECHO_C" >&6
23549 else
23550 cat >conftest.$ac_ext <<_ACEOF
23551 /* confdefs.h. */
23552 _ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 $ac_includes_default
23557 # include <wchar.h>
23559 main ()
23561 mbstate_t x; return sizeof x;
23563 return 0;
23565 _ACEOF
23566 rm -f conftest.$ac_objext
23567 if { (ac_try="$ac_compile"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_compile") 2>conftest.er1
23574 ac_status=$?
23575 grep -v '^ *+' conftest.er1 >conftest.err
23576 rm -f conftest.er1
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest.$ac_objext; then
23583 ac_cv_type_mbstate_t=yes
23584 else
23585 echo "$as_me: failed program was:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 ac_cv_type_mbstate_t=no
23591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23594 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23595 if test $ac_cv_type_mbstate_t = yes; then
23597 cat >>confdefs.h <<\_ACEOF
23598 #define HAVE_MBSTATE_T 1
23599 _ACEOF
23601 else
23603 cat >>confdefs.h <<\_ACEOF
23604 #define mbstate_t int
23605 _ACEOF
23609 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23610 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23611 if test "${emacs_cv_c_restrict+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 void fred (int *restrict x);
23622 main ()
23626 return 0;
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 emacs_cv_c_restrict=yes
23647 else
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h. */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 void fred (int *__restrict x);
23659 main ()
23663 return 0;
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23674 ac_status=$?
23675 grep -v '^ *+' conftest.er1 >conftest.err
23676 rm -f conftest.er1
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 emacs_cv_c_restrict=__restrict
23684 else
23685 echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 emacs_cv_c_restrict=no
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23697 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23698 case "$emacs_cv_c_restrict" in
23699 yes) emacs_restrict=restrict;;
23700 no) emacs_restrict="";;
23701 *) emacs_restrict="$emacs_cv_c_restrict";;
23702 esac
23703 if test "$emacs_restrict" != __restrict; then
23705 cat >>confdefs.h <<_ACEOF
23706 #define __restrict $emacs_restrict
23707 _ACEOF
23711 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23712 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23713 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23714 echo $ECHO_N "(cached) $ECHO_C" >&6
23715 else
23716 cat >conftest.$ac_ext <<_ACEOF
23717 /* confdefs.h. */
23718 _ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h. */
23722 void fred (int x[__restrict]);
23724 main ()
23728 return 0;
23730 _ACEOF
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23736 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_compile") 2>conftest.er1
23739 ac_status=$?
23740 grep -v '^ *+' conftest.er1 >conftest.err
23741 rm -f conftest.er1
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest.$ac_objext; then
23748 emacs_cv_c_restrict_arr=yes
23749 else
23750 echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 emacs_cv_c_restrict_arr=no
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23759 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23760 if test "$emacs_cv_c_restrict_arr" = yes; then
23762 cat >>confdefs.h <<\_ACEOF
23763 #define __restrict_arr __restrict
23764 _ACEOF
23770 # Set up the CFLAGS for real compilation, so we can substitute it.
23771 CFLAGS="$REAL_CFLAGS"
23772 CPPFLAGS="$REAL_CPPFLAGS"
23774 #### Find out which version of Emacs this is.
23775 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23776 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23777 if test x"${version}" = x; then
23778 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23779 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23780 { (exit 1); exit 1; }; }
23783 ### Specify what sort of things we'll be editing into Makefile and config.h.
23784 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23820 cat >>confdefs.h <<_ACEOF
23821 #define EMACS_CONFIGURATION "${canonical}"
23822 _ACEOF
23825 cat >>confdefs.h <<_ACEOF
23826 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23827 _ACEOF
23830 cat >>confdefs.h <<_ACEOF
23831 #define config_machfile "${machfile}"
23832 _ACEOF
23835 cat >>confdefs.h <<_ACEOF
23836 #define config_opsysfile "${opsysfile}"
23837 _ACEOF
23840 cat >>confdefs.h <<_ACEOF
23841 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23842 _ACEOF
23845 cat >>confdefs.h <<_ACEOF
23846 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23847 _ACEOF
23850 cat >>confdefs.h <<_ACEOF
23851 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23852 _ACEOF
23855 cat >>confdefs.h <<_ACEOF
23856 #define UNEXEC_SRC ${UNEXEC_SRC}
23857 _ACEOF
23860 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23862 cat >>confdefs.h <<\_ACEOF
23863 #define HAVE_X_WINDOWS 1
23864 _ACEOF
23867 if test "${USE_X_TOOLKIT}" != "none" ; then
23869 cat >>confdefs.h <<\_ACEOF
23870 #define USE_X_TOOLKIT 1
23871 _ACEOF
23874 if test "${HAVE_X11}" = "yes" ; then
23876 cat >>confdefs.h <<\_ACEOF
23877 #define HAVE_X11 1
23878 _ACEOF
23881 if test "${HAVE_XFREE386}" = "yes" ; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_XFREE386 1
23885 _ACEOF
23888 if test "${HAVE_MENUS}" = "yes" ; then
23890 cat >>confdefs.h <<\_ACEOF
23891 #define HAVE_MENUS 1
23892 _ACEOF
23895 if test "${GNU_MALLOC}" = "yes" ; then
23897 cat >>confdefs.h <<\_ACEOF
23898 #define GNU_MALLOC 1
23899 _ACEOF
23902 if test "${REL_ALLOC}" = "yes" ; then
23904 cat >>confdefs.h <<\_ACEOF
23905 #define REL_ALLOC 1
23906 _ACEOF
23915 #### Report on what we decided to do.
23916 #### Report GTK as a toolkit, even if it doesn't use Xt.
23917 #### It makes printing result more understandable as using GTK sets
23918 #### toolkit_scroll_bars to yes by default.
23919 if test "${HAVE_GTK}" = "yes"; then
23920 USE_X_TOOLKIT=GTK
23923 echo "
23924 Configured for \`${canonical}'.
23926 Where should the build process find the source code? ${srcdir}
23927 What operating system and machine description files should Emacs use?
23928 \`${opsysfile}' and \`${machfile}'
23929 What compiler should emacs be built with? ${CC} ${CFLAGS}
23930 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23931 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23932 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23933 What window system should Emacs use? ${window_system}
23934 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23936 if test -n "${x_includes}"; then
23937 echo " Where do we find X Windows header files? ${x_includes}"
23938 else
23939 echo " Where do we find X Windows header files? Standard dirs"
23941 if test -n "${x_libraries}"; then
23942 echo " Where do we find X Windows libraries? ${x_libraries}"
23943 else
23944 echo " Where do we find X Windows libraries? Standard dirs"
23947 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23948 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23949 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23950 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23951 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23952 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23953 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23954 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23955 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23956 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23957 echo
23959 if test $USE_XASSERTS = yes; then
23960 echo " Compiling with asserts turned on."
23961 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23962 echo
23965 if test "$USE_X_TOOLKIT" = GTK; then
23966 case "$canonical" in
23967 *cygwin*)
23968 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23969 will probably get a crash on startup. If this happens, please use another
23970 toolkit for Emacs. See etc/PROBLEMS for more information."
23972 esac
23976 if test "$HAVE_CARBON" = "yes"; then
23977 echo
23978 echo "Warning: The Mac Carbon port is currently unsupported and has
23979 known problems. It is not recommended for use by non-developers.
23980 Read the emacs-devel archives for more information."
23981 echo
23984 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23985 echo "D-Bus integration has been tested for GNU/Linux only."
23986 echo
23990 # Remove any trailing slashes in these variables.
23991 test "${prefix}" != NONE &&
23992 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23993 test "${exec_prefix}" != NONE &&
23994 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23996 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23997 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23998 ## from Makefile.c can correctly provide the arg `-traditional' to the
23999 ## C preprocessor.
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h. */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 yes..yes
24008 _ACEOF
24009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24010 $EGREP "yes..yes" >/dev/null 2>&1; then
24011 CPP_NEED_TRADITIONAL=no
24012 else
24013 CPP_NEED_TRADITIONAL=yes
24015 rm -f conftest*
24018 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"
24020 ac_config_commands="$ac_config_commands default"
24022 cat >confcache <<\_ACEOF
24023 # This file is a shell script that caches the results of configure
24024 # tests run on this system so they can be shared between configure
24025 # scripts and configure runs, see configure's option --config-cache.
24026 # It is not useful on other systems. If it contains results you don't
24027 # want to keep, you may remove or edit it.
24029 # config.status only pays attention to the cache file if you give it
24030 # the --recheck option to rerun configure.
24032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24034 # following values.
24036 _ACEOF
24038 # The following way of writing the cache mishandles newlines in values,
24039 # but we know of no workaround that is simple, portable, and efficient.
24040 # So, we kill variables containing newlines.
24041 # Ultrix sh set writes to stderr and can't be redirected directly,
24042 # and sets the high bit in the cache file unless we assign to the vars.
24044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24045 eval ac_val=\$$ac_var
24046 case $ac_val in #(
24047 *${as_nl}*)
24048 case $ac_var in #(
24049 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24050 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24051 esac
24052 case $ac_var in #(
24053 _ | IFS | as_nl) ;; #(
24054 *) $as_unset $ac_var ;;
24055 esac ;;
24056 esac
24057 done
24059 (set) 2>&1 |
24060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24061 *${as_nl}ac_space=\ *)
24062 # `set' does not quote correctly, so add quotes (double-quote
24063 # substitution turns \\\\ into \\, and sed turns \\ into \).
24064 sed -n \
24065 "s/'/'\\\\''/g;
24066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24067 ;; #(
24069 # `set' quotes correctly as required by POSIX, so do not add quotes.
24070 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24072 esac |
24073 sort
24075 sed '
24076 /^ac_cv_env_/b end
24077 t clear
24078 :clear
24079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24080 t end
24081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24082 :end' >>confcache
24083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24084 if test -w "$cache_file"; then
24085 test "x$cache_file" != "x/dev/null" &&
24086 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24087 echo "$as_me: updating cache $cache_file" >&6;}
24088 cat confcache >$cache_file
24089 else
24090 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24091 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24094 rm -f confcache
24096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24097 # Let make expand exec_prefix.
24098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24100 DEFS=-DHAVE_CONFIG_H
24102 ac_libobjs=
24103 ac_ltlibobjs=
24104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24105 # 1. Remove the extension, and $U if already installed.
24106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24107 ac_i=`echo "$ac_i" | sed "$ac_script"`
24108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24109 # will be set to the directory where LIBOBJS objects are built.
24110 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24111 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24112 done
24113 LIBOBJS=$ac_libobjs
24115 LTLIBOBJS=$ac_ltlibobjs
24119 : ${CONFIG_STATUS=./config.status}
24120 ac_clean_files_save=$ac_clean_files
24121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24124 cat >$CONFIG_STATUS <<_ACEOF
24125 #! $SHELL
24126 # Generated by $as_me.
24127 # Run this file to recreate the current configuration.
24128 # Compiler output produced by configure, useful for debugging
24129 # configure, is in config.log if it exists.
24131 debug=false
24132 ac_cs_recheck=false
24133 ac_cs_silent=false
24134 SHELL=\${CONFIG_SHELL-$SHELL}
24135 _ACEOF
24137 cat >>$CONFIG_STATUS <<\_ACEOF
24138 ## --------------------- ##
24139 ## M4sh Initialization. ##
24140 ## --------------------- ##
24142 # Be more Bourne compatible
24143 DUALCASE=1; export DUALCASE # for MKS sh
24144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24145 emulate sh
24146 NULLCMD=:
24147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24148 # is contrary to our usage. Disable this feature.
24149 alias -g '${1+"$@"}'='"$@"'
24150 setopt NO_GLOB_SUBST
24151 else
24152 case `(set -o) 2>/dev/null` in
24153 *posix*) set -o posix ;;
24154 esac
24161 # PATH needs CR
24162 # Avoid depending upon Character Ranges.
24163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24166 as_cr_digits='0123456789'
24167 as_cr_alnum=$as_cr_Letters$as_cr_digits
24169 # The user is always right.
24170 if test "${PATH_SEPARATOR+set}" != set; then
24171 echo "#! /bin/sh" >conf$$.sh
24172 echo "exit 0" >>conf$$.sh
24173 chmod +x conf$$.sh
24174 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24175 PATH_SEPARATOR=';'
24176 else
24177 PATH_SEPARATOR=:
24179 rm -f conf$$.sh
24182 # Support unset when possible.
24183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24184 as_unset=unset
24185 else
24186 as_unset=false
24190 # IFS
24191 # We need space, tab and new line, in precisely that order. Quoting is
24192 # there to prevent editors from complaining about space-tab.
24193 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24194 # splitting by setting IFS to empty value.)
24195 as_nl='
24197 IFS=" "" $as_nl"
24199 # Find who we are. Look in the path if we contain no directory separator.
24200 case $0 in
24201 *[\\/]* ) as_myself=$0 ;;
24202 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24203 for as_dir in $PATH
24205 IFS=$as_save_IFS
24206 test -z "$as_dir" && as_dir=.
24207 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24208 done
24209 IFS=$as_save_IFS
24212 esac
24213 # We did not find ourselves, most probably we were run as `sh COMMAND'
24214 # in which case we are not to be found in the path.
24215 if test "x$as_myself" = x; then
24216 as_myself=$0
24218 if test ! -f "$as_myself"; then
24219 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24220 { (exit 1); exit 1; }
24223 # Work around bugs in pre-3.0 UWIN ksh.
24224 for as_var in ENV MAIL MAILPATH
24225 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24226 done
24227 PS1='$ '
24228 PS2='> '
24229 PS4='+ '
24231 # NLS nuisances.
24232 for as_var in \
24233 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24234 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24235 LC_TELEPHONE LC_TIME
24237 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24238 eval $as_var=C; export $as_var
24239 else
24240 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24242 done
24244 # Required to use basename.
24245 if expr a : '\(a\)' >/dev/null 2>&1 &&
24246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24247 as_expr=expr
24248 else
24249 as_expr=false
24252 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24253 as_basename=basename
24254 else
24255 as_basename=false
24259 # Name of the executable.
24260 as_me=`$as_basename -- "$0" ||
24261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24262 X"$0" : 'X\(//\)$' \| \
24263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24264 echo X/"$0" |
24265 sed '/^.*\/\([^/][^/]*\)\/*$/{
24266 s//\1/
24269 /^X\/\(\/\/\)$/{
24270 s//\1/
24273 /^X\/\(\/\).*/{
24274 s//\1/
24277 s/.*/./; q'`
24279 # CDPATH.
24280 $as_unset CDPATH
24284 as_lineno_1=$LINENO
24285 as_lineno_2=$LINENO
24286 test "x$as_lineno_1" != "x$as_lineno_2" &&
24287 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24289 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24290 # uniformly replaced by the line number. The first 'sed' inserts a
24291 # line-number line after each line using $LINENO; the second 'sed'
24292 # does the real work. The second script uses 'N' to pair each
24293 # line-number line with the line containing $LINENO, and appends
24294 # trailing '-' during substitution so that $LINENO is not a special
24295 # case at line end.
24296 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24297 # scripts with optimization help from Paolo Bonzini. Blame Lee
24298 # E. McMahon (1931-1989) for sed's syntax. :-)
24299 sed -n '
24301 /[$]LINENO/=
24302 ' <$as_myself |
24303 sed '
24304 s/[$]LINENO.*/&-/
24305 t lineno
24307 :lineno
24309 :loop
24310 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24311 t loop
24312 s/-\n.*//
24313 ' >$as_me.lineno &&
24314 chmod +x "$as_me.lineno" ||
24315 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24316 { (exit 1); exit 1; }; }
24318 # Don't try to exec as it changes $[0], causing all sort of problems
24319 # (the dirname of $[0] is not the place where we might find the
24320 # original and so on. Autoconf is especially sensitive to this).
24321 . "./$as_me.lineno"
24322 # Exit status is that of the last command.
24323 exit
24327 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24328 as_dirname=dirname
24329 else
24330 as_dirname=false
24333 ECHO_C= ECHO_N= ECHO_T=
24334 case `echo -n x` in
24335 -n*)
24336 case `echo 'x\c'` in
24337 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24338 *) ECHO_C='\c';;
24339 esac;;
24341 ECHO_N='-n';;
24342 esac
24344 if expr a : '\(a\)' >/dev/null 2>&1 &&
24345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24346 as_expr=expr
24347 else
24348 as_expr=false
24351 rm -f conf$$ conf$$.exe conf$$.file
24352 if test -d conf$$.dir; then
24353 rm -f conf$$.dir/conf$$.file
24354 else
24355 rm -f conf$$.dir
24356 mkdir conf$$.dir
24358 echo >conf$$.file
24359 if ln -s conf$$.file conf$$ 2>/dev/null; then
24360 as_ln_s='ln -s'
24361 # ... but there are two gotchas:
24362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24364 # In both cases, we have to default to `cp -p'.
24365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24366 as_ln_s='cp -p'
24367 elif ln conf$$.file conf$$ 2>/dev/null; then
24368 as_ln_s=ln
24369 else
24370 as_ln_s='cp -p'
24372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24373 rmdir conf$$.dir 2>/dev/null
24375 if mkdir -p . 2>/dev/null; then
24376 as_mkdir_p=:
24377 else
24378 test -d ./-p && rmdir ./-p
24379 as_mkdir_p=false
24382 if test -x / >/dev/null 2>&1; then
24383 as_test_x='test -x'
24384 else
24385 if ls -dL / >/dev/null 2>&1; then
24386 as_ls_L_option=L
24387 else
24388 as_ls_L_option=
24390 as_test_x='
24391 eval sh -c '\''
24392 if test -d "$1"; then
24393 test -d "$1/.";
24394 else
24395 case $1 in
24396 -*)set "./$1";;
24397 esac;
24398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24399 ???[sx]*):;;*)false;;esac;fi
24400 '\'' sh
24403 as_executable_p=$as_test_x
24405 # Sed expression to map a string onto a valid CPP name.
24406 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24408 # Sed expression to map a string onto a valid variable name.
24409 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24412 exec 6>&1
24414 # Save the log message, to keep $[0] and so on meaningful, and to
24415 # report actual input values of CONFIG_FILES etc. instead of their
24416 # values after options handling.
24417 ac_log="
24418 This file was extended by emacs $as_me 23.0.50, which was
24419 generated by GNU Autoconf 2.61. Invocation command line was
24421 CONFIG_FILES = $CONFIG_FILES
24422 CONFIG_HEADERS = $CONFIG_HEADERS
24423 CONFIG_LINKS = $CONFIG_LINKS
24424 CONFIG_COMMANDS = $CONFIG_COMMANDS
24425 $ $0 $@
24427 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24430 _ACEOF
24432 cat >>$CONFIG_STATUS <<_ACEOF
24433 # Files that config.status was made for.
24434 config_files="$ac_config_files"
24435 config_headers="$ac_config_headers"
24436 config_commands="$ac_config_commands"
24438 _ACEOF
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24441 ac_cs_usage="\
24442 \`$as_me' instantiates files from templates according to the
24443 current configuration.
24445 Usage: $0 [OPTIONS] [FILE]...
24447 -h, --help print this help, then exit
24448 -V, --version print version number and configuration settings, then exit
24449 -q, --quiet do not print progress messages
24450 -d, --debug don't remove temporary files
24451 --recheck update $as_me by reconfiguring in the same conditions
24452 --file=FILE[:TEMPLATE]
24453 instantiate the configuration file FILE
24454 --header=FILE[:TEMPLATE]
24455 instantiate the configuration header FILE
24457 Configuration files:
24458 $config_files
24460 Configuration headers:
24461 $config_headers
24463 Configuration commands:
24464 $config_commands
24466 Report bugs to <bug-autoconf@gnu.org>."
24468 _ACEOF
24469 cat >>$CONFIG_STATUS <<_ACEOF
24470 ac_cs_version="\\
24471 emacs config.status 23.0.50
24472 configured by $0, generated by GNU Autoconf 2.61,
24473 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24475 Copyright (C) 2006 Free Software Foundation, Inc.
24476 This config.status script is free software; the Free Software Foundation
24477 gives unlimited permission to copy, distribute and modify it."
24479 ac_pwd='$ac_pwd'
24480 srcdir='$srcdir'
24481 INSTALL='$INSTALL'
24482 _ACEOF
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 # If no file are specified by the user, then we need to provide default
24486 # value. By we need to know if files were specified by the user.
24487 ac_need_defaults=:
24488 while test $# != 0
24490 case $1 in
24491 --*=*)
24492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24494 ac_shift=:
24497 ac_option=$1
24498 ac_optarg=$2
24499 ac_shift=shift
24501 esac
24503 case $ac_option in
24504 # Handling of the options.
24505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24506 ac_cs_recheck=: ;;
24507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24508 echo "$ac_cs_version"; exit ;;
24509 --debug | --debu | --deb | --de | --d | -d )
24510 debug=: ;;
24511 --file | --fil | --fi | --f )
24512 $ac_shift
24513 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24514 ac_need_defaults=false;;
24515 --header | --heade | --head | --hea )
24516 $ac_shift
24517 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24518 ac_need_defaults=false;;
24519 --he | --h)
24520 # Conflict between --help and --header
24521 { echo "$as_me: error: ambiguous option: $1
24522 Try \`$0 --help' for more information." >&2
24523 { (exit 1); exit 1; }; };;
24524 --help | --hel | -h )
24525 echo "$ac_cs_usage"; exit ;;
24526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24527 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24528 ac_cs_silent=: ;;
24530 # This is an error.
24531 -*) { echo "$as_me: error: unrecognized option: $1
24532 Try \`$0 --help' for more information." >&2
24533 { (exit 1); exit 1; }; } ;;
24535 *) ac_config_targets="$ac_config_targets $1"
24536 ac_need_defaults=false ;;
24538 esac
24539 shift
24540 done
24542 ac_configure_extra_args=
24544 if $ac_cs_silent; then
24545 exec 6>/dev/null
24546 ac_configure_extra_args="$ac_configure_extra_args --silent"
24549 _ACEOF
24550 cat >>$CONFIG_STATUS <<_ACEOF
24551 if \$ac_cs_recheck; then
24552 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24553 CONFIG_SHELL=$SHELL
24554 export CONFIG_SHELL
24555 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24558 _ACEOF
24559 cat >>$CONFIG_STATUS <<\_ACEOF
24560 exec 5>>config.log
24562 echo
24563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24564 ## Running $as_me. ##
24565 _ASBOX
24566 echo "$ac_log"
24567 } >&5
24569 _ACEOF
24570 cat >>$CONFIG_STATUS <<_ACEOF
24572 # INIT-COMMANDS
24574 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24576 _ACEOF
24578 cat >>$CONFIG_STATUS <<\_ACEOF
24580 # Handling of arguments.
24581 for ac_config_target in $ac_config_targets
24583 case $ac_config_target in
24584 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24585 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24586 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24587 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24588 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24589 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24590 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24591 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24592 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24593 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24594 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24595 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24596 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24598 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24600 { (exit 1); exit 1; }; };;
24601 esac
24602 done
24605 # If the user did not use the arguments to specify the items to instantiate,
24606 # then the envvar interface is used. Set only those that are not.
24607 # We use the long form for the default assignment because of an extremely
24608 # bizarre bug on SunOS 4.1.3.
24609 if $ac_need_defaults; then
24610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24615 # Have a temporary directory for convenience. Make it in the build tree
24616 # simply because there is no reason against having it here, and in addition,
24617 # creating and moving files from /tmp can sometimes cause problems.
24618 # Hook for its removal unless debugging.
24619 # Note that there is a small window in which the directory will not be cleaned:
24620 # after its creation but before its name has been assigned to `$tmp'.
24621 $debug ||
24623 tmp=
24624 trap 'exit_status=$?
24625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24627 trap '{ (exit 1); exit 1; }' 1 2 13 15
24629 # Create a (secure) tmp directory for tmp files.
24632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24633 test -n "$tmp" && test -d "$tmp"
24634 } ||
24636 tmp=./conf$$-$RANDOM
24637 (umask 077 && mkdir "$tmp")
24638 } ||
24640 echo "$me: cannot create a temporary directory in ." >&2
24641 { (exit 1); exit 1; }
24645 # Set up the sed scripts for CONFIG_FILES section.
24648 # No need to generate the scripts if there are no CONFIG_FILES.
24649 # This happens for instance when ./config.status config.h
24650 if test -n "$CONFIG_FILES"; then
24652 _ACEOF
24656 ac_delim='%!_!# '
24657 for ac_last_try in false false false false false :; do
24658 cat >conf$$subs.sed <<_ACEOF
24659 SHELL!$SHELL$ac_delim
24660 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24661 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24662 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24663 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24664 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24665 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24666 exec_prefix!$exec_prefix$ac_delim
24667 prefix!$prefix$ac_delim
24668 program_transform_name!$program_transform_name$ac_delim
24669 bindir!$bindir$ac_delim
24670 sbindir!$sbindir$ac_delim
24671 libexecdir!$libexecdir$ac_delim
24672 datarootdir!$datarootdir$ac_delim
24673 datadir!$datadir$ac_delim
24674 sysconfdir!$sysconfdir$ac_delim
24675 sharedstatedir!$sharedstatedir$ac_delim
24676 localstatedir!$localstatedir$ac_delim
24677 includedir!$includedir$ac_delim
24678 oldincludedir!$oldincludedir$ac_delim
24679 docdir!$docdir$ac_delim
24680 infodir!$infodir$ac_delim
24681 htmldir!$htmldir$ac_delim
24682 dvidir!$dvidir$ac_delim
24683 pdfdir!$pdfdir$ac_delim
24684 psdir!$psdir$ac_delim
24685 libdir!$libdir$ac_delim
24686 localedir!$localedir$ac_delim
24687 mandir!$mandir$ac_delim
24688 DEFS!$DEFS$ac_delim
24689 ECHO_C!$ECHO_C$ac_delim
24690 ECHO_N!$ECHO_N$ac_delim
24691 ECHO_T!$ECHO_T$ac_delim
24692 LIBS!$LIBS$ac_delim
24693 build_alias!$build_alias$ac_delim
24694 host_alias!$host_alias$ac_delim
24695 target_alias!$target_alias$ac_delim
24696 MAINT!$MAINT$ac_delim
24697 build!$build$ac_delim
24698 build_cpu!$build_cpu$ac_delim
24699 build_vendor!$build_vendor$ac_delim
24700 build_os!$build_os$ac_delim
24701 host!$host$ac_delim
24702 host_cpu!$host_cpu$ac_delim
24703 host_vendor!$host_vendor$ac_delim
24704 host_os!$host_os$ac_delim
24705 CC!$CC$ac_delim
24706 CFLAGS!$CFLAGS$ac_delim
24707 LDFLAGS!$LDFLAGS$ac_delim
24708 CPPFLAGS!$CPPFLAGS$ac_delim
24709 ac_ct_CC!$ac_ct_CC$ac_delim
24710 EXEEXT!$EXEEXT$ac_delim
24711 OBJEXT!$OBJEXT$ac_delim
24712 CPP!$CPP$ac_delim
24713 GREP!$GREP$ac_delim
24714 EGREP!$EGREP$ac_delim
24715 LN_S!$LN_S$ac_delim
24716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24718 INSTALL_DATA!$INSTALL_DATA$ac_delim
24719 RANLIB!$RANLIB$ac_delim
24720 INSTALL_INFO!$INSTALL_INFO$ac_delim
24721 GZIP_PROG!$GZIP_PROG$ac_delim
24722 MAKEINFO!$MAKEINFO$ac_delim
24723 LIBSOUND!$LIBSOUND$ac_delim
24724 PKG_CONFIG!$PKG_CONFIG$ac_delim
24725 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24726 ALSA_LIBS!$ALSA_LIBS$ac_delim
24727 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24728 SET_MAKE!$SET_MAKE$ac_delim
24729 XMKMF!$XMKMF$ac_delim
24730 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24731 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24732 RSVG_LIBS!$RSVG_LIBS$ac_delim
24733 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24734 GTK_LIBS!$GTK_LIBS$ac_delim
24735 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24736 DBUS_LIBS!$DBUS_LIBS$ac_delim
24737 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24738 XFT_LIBS!$XFT_LIBS$ac_delim
24739 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24740 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24741 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24742 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24743 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24744 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24745 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24746 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24747 ALLOCA!$ALLOCA$ac_delim
24748 liblockfile!$liblockfile$ac_delim
24749 LIBOBJS!$LIBOBJS$ac_delim
24750 NEED_SETGID!$NEED_SETGID$ac_delim
24751 KMEM_GROUP!$KMEM_GROUP$ac_delim
24752 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24753 GETOPT_H!$GETOPT_H$ac_delim
24754 GETOPTOBJS!$GETOPTOBJS$ac_delim
24755 version!$version$ac_delim
24756 _ACEOF
24758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24759 break
24760 elif $ac_last_try; then
24761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24763 { (exit 1); exit 1; }; }
24764 else
24765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24767 done
24769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24770 if test -n "$ac_eof"; then
24771 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24772 ac_eof=`expr $ac_eof + 1`
24775 cat >>$CONFIG_STATUS <<_ACEOF
24776 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24778 _ACEOF
24779 sed '
24780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24781 s/^/s,@/; s/!/@,|#_!!_#|/
24784 s/'"$ac_delim"'$/,g/; t
24785 s/$/\\/; p
24786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24787 ' >>$CONFIG_STATUS <conf$$subs.sed
24788 rm -f conf$$subs.sed
24789 cat >>$CONFIG_STATUS <<_ACEOF
24790 CEOF$ac_eof
24791 _ACEOF
24794 ac_delim='%!_!# '
24795 for ac_last_try in false false false false false :; do
24796 cat >conf$$subs.sed <<_ACEOF
24797 configuration!$configuration$ac_delim
24798 canonical!$canonical$ac_delim
24799 srcdir!$srcdir$ac_delim
24800 lispdir!$lispdir$ac_delim
24801 locallisppath!$locallisppath$ac_delim
24802 lisppath!$lisppath$ac_delim
24803 x_default_search_path!$x_default_search_path$ac_delim
24804 etcdir!$etcdir$ac_delim
24805 archlibdir!$archlibdir$ac_delim
24806 bitmapdir!$bitmapdir$ac_delim
24807 gamedir!$gamedir$ac_delim
24808 gameuser!$gameuser$ac_delim
24809 c_switch_system!$c_switch_system$ac_delim
24810 c_switch_machine!$c_switch_machine$ac_delim
24811 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24812 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24813 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24814 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24815 machfile!$machfile$ac_delim
24816 opsysfile!$opsysfile$ac_delim
24817 carbon_appdir!$carbon_appdir$ac_delim
24818 LTLIBOBJS!$LTLIBOBJS$ac_delim
24819 _ACEOF
24821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24822 break
24823 elif $ac_last_try; then
24824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24826 { (exit 1); exit 1; }; }
24827 else
24828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24830 done
24832 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24833 if test -n "$ac_eof"; then
24834 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24835 ac_eof=`expr $ac_eof + 1`
24838 cat >>$CONFIG_STATUS <<_ACEOF
24839 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24841 _ACEOF
24842 sed '
24843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24844 s/^/s,@/; s/!/@,|#_!!_#|/
24847 s/'"$ac_delim"'$/,g/; t
24848 s/$/\\/; p
24849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24850 ' >>$CONFIG_STATUS <conf$$subs.sed
24851 rm -f conf$$subs.sed
24852 cat >>$CONFIG_STATUS <<_ACEOF
24853 :end
24854 s/|#_!!_#|//g
24855 CEOF$ac_eof
24856 _ACEOF
24859 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24861 # trailing colons and then remove the whole line if VPATH becomes empty
24862 # (actually we leave an empty line to preserve line numbers).
24863 if test "x$srcdir" = x.; then
24864 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24865 s/:*\$(srcdir):*/:/
24866 s/:*\${srcdir}:*/:/
24867 s/:*@srcdir@:*/:/
24868 s/^\([^=]*=[ ]*\):*/\1/
24869 s/:*$//
24870 s/^[^=]*=[ ]*$//
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24875 fi # test -n "$CONFIG_FILES"
24878 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24880 case $ac_tag in
24881 :[FHLC]) ac_mode=$ac_tag; continue;;
24882 esac
24883 case $ac_mode$ac_tag in
24884 :[FHL]*:*);;
24885 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24886 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24887 { (exit 1); exit 1; }; };;
24888 :[FH]-) ac_tag=-:-;;
24889 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24890 esac
24891 ac_save_IFS=$IFS
24892 IFS=:
24893 set x $ac_tag
24894 IFS=$ac_save_IFS
24895 shift
24896 ac_file=$1
24897 shift
24899 case $ac_mode in
24900 :L) ac_source=$1;;
24901 :[FH])
24902 ac_file_inputs=
24903 for ac_f
24905 case $ac_f in
24906 -) ac_f="$tmp/stdin";;
24907 *) # Look for the file first in the build tree, then in the source tree
24908 # (if the path is not absolute). The absolute path cannot be DOS-style,
24909 # because $ac_f cannot contain `:'.
24910 test -f "$ac_f" ||
24911 case $ac_f in
24912 [\\/$]*) false;;
24913 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24914 esac ||
24915 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24916 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24917 { (exit 1); exit 1; }; };;
24918 esac
24919 ac_file_inputs="$ac_file_inputs $ac_f"
24920 done
24922 # Let's still pretend it is `configure' which instantiates (i.e., don't
24923 # use $as_me), people would be surprised to read:
24924 # /* config.h. Generated by config.status. */
24925 configure_input="Generated from "`IFS=:
24926 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24927 if test x"$ac_file" != x-; then
24928 configure_input="$ac_file. $configure_input"
24929 { echo "$as_me:$LINENO: creating $ac_file" >&5
24930 echo "$as_me: creating $ac_file" >&6;}
24933 case $ac_tag in
24934 *:-:* | *:-) cat >"$tmp/stdin";;
24935 esac
24937 esac
24939 ac_dir=`$as_dirname -- "$ac_file" ||
24940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941 X"$ac_file" : 'X\(//\)[^/]' \| \
24942 X"$ac_file" : 'X\(//\)$' \| \
24943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24944 echo X"$ac_file" |
24945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24946 s//\1/
24949 /^X\(\/\/\)[^/].*/{
24950 s//\1/
24953 /^X\(\/\/\)$/{
24954 s//\1/
24957 /^X\(\/\).*/{
24958 s//\1/
24961 s/.*/./; q'`
24962 { as_dir="$ac_dir"
24963 case $as_dir in #(
24964 -*) as_dir=./$as_dir;;
24965 esac
24966 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24967 as_dirs=
24968 while :; do
24969 case $as_dir in #(
24970 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24971 *) as_qdir=$as_dir;;
24972 esac
24973 as_dirs="'$as_qdir' $as_dirs"
24974 as_dir=`$as_dirname -- "$as_dir" ||
24975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24976 X"$as_dir" : 'X\(//\)[^/]' \| \
24977 X"$as_dir" : 'X\(//\)$' \| \
24978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24979 echo X"$as_dir" |
24980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24981 s//\1/
24984 /^X\(\/\/\)[^/].*/{
24985 s//\1/
24988 /^X\(\/\/\)$/{
24989 s//\1/
24992 /^X\(\/\).*/{
24993 s//\1/
24996 s/.*/./; q'`
24997 test -d "$as_dir" && break
24998 done
24999 test -z "$as_dirs" || eval "mkdir $as_dirs"
25000 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25001 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25002 { (exit 1); exit 1; }; }; }
25003 ac_builddir=.
25005 case "$ac_dir" in
25006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25009 # A ".." for each directory in $ac_dir_suffix.
25010 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25011 case $ac_top_builddir_sub in
25012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25014 esac ;;
25015 esac
25016 ac_abs_top_builddir=$ac_pwd
25017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25018 # for backward compatibility:
25019 ac_top_builddir=$ac_top_build_prefix
25021 case $srcdir in
25022 .) # We are building in place.
25023 ac_srcdir=.
25024 ac_top_srcdir=$ac_top_builddir_sub
25025 ac_abs_top_srcdir=$ac_pwd ;;
25026 [\\/]* | ?:[\\/]* ) # Absolute name.
25027 ac_srcdir=$srcdir$ac_dir_suffix;
25028 ac_top_srcdir=$srcdir
25029 ac_abs_top_srcdir=$srcdir ;;
25030 *) # Relative name.
25031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25032 ac_top_srcdir=$ac_top_build_prefix$srcdir
25033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25034 esac
25035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25038 case $ac_mode in
25041 # CONFIG_FILE
25044 case $INSTALL in
25045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25047 esac
25048 _ACEOF
25050 cat >>$CONFIG_STATUS <<\_ACEOF
25051 # If the template does not know about datarootdir, expand it.
25052 # FIXME: This hack should be removed a few years after 2.60.
25053 ac_datarootdir_hack=; ac_datarootdir_seen=
25055 case `sed -n '/datarootdir/ {
25059 /@datadir@/p
25060 /@docdir@/p
25061 /@infodir@/p
25062 /@localedir@/p
25063 /@mandir@/p
25064 ' $ac_file_inputs` in
25065 *datarootdir*) ac_datarootdir_seen=yes;;
25066 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25067 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25068 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25069 _ACEOF
25070 cat >>$CONFIG_STATUS <<_ACEOF
25071 ac_datarootdir_hack='
25072 s&@datadir@&$datadir&g
25073 s&@docdir@&$docdir&g
25074 s&@infodir@&$infodir&g
25075 s&@localedir@&$localedir&g
25076 s&@mandir@&$mandir&g
25077 s&\\\${datarootdir}&$datarootdir&g' ;;
25078 esac
25079 _ACEOF
25081 # Neutralize VPATH when `$srcdir' = `.'.
25082 # Shell code in configure.ac might set extrasub.
25083 # FIXME: do we really want to maintain this feature?
25084 cat >>$CONFIG_STATUS <<_ACEOF
25085 sed "$ac_vpsub
25086 $extrasub
25087 _ACEOF
25088 cat >>$CONFIG_STATUS <<\_ACEOF
25090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25091 s&@configure_input@&$configure_input&;t t
25092 s&@top_builddir@&$ac_top_builddir_sub&;t t
25093 s&@srcdir@&$ac_srcdir&;t t
25094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25095 s&@top_srcdir@&$ac_top_srcdir&;t t
25096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25097 s&@builddir@&$ac_builddir&;t t
25098 s&@abs_builddir@&$ac_abs_builddir&;t t
25099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25100 s&@INSTALL@&$ac_INSTALL&;t t
25101 $ac_datarootdir_hack
25102 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25105 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25107 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25108 which seems to be undefined. Please make sure it is defined." >&5
25109 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25110 which seems to be undefined. Please make sure it is defined." >&2;}
25112 rm -f "$tmp/stdin"
25113 case $ac_file in
25114 -) cat "$tmp/out"; rm -f "$tmp/out";;
25115 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25116 esac
25120 # CONFIG_HEADER
25122 _ACEOF
25124 # Transform confdefs.h into a sed script `conftest.defines', that
25125 # substitutes the proper values into config.h.in to produce config.h.
25126 rm -f conftest.defines conftest.tail
25127 # First, append a space to every undef/define line, to ease matching.
25128 echo 's/$/ /' >conftest.defines
25129 # Then, protect against being on the right side of a sed subst, or in
25130 # an unquoted here document, in config.status. If some macros were
25131 # called several times there might be several #defines for the same
25132 # symbol, which is useless. But do not sort them, since the last
25133 # AC_DEFINE must be honored.
25134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25135 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25136 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25137 # PARAMS is the parameter list in the macro definition--in most cases, it's
25138 # just an empty string.
25139 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25140 ac_dB='\\)[ (].*,\\1define\\2'
25141 ac_dC=' '
25142 ac_dD=' ,'
25144 uniq confdefs.h |
25145 sed -n '
25146 t rset
25147 :rset
25148 s/^[ ]*#[ ]*define[ ][ ]*//
25149 t ok
25152 s/[\\&,]/\\&/g
25153 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25154 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25155 ' >>conftest.defines
25157 # Remove the space that was appended to ease matching.
25158 # Then replace #undef with comments. This is necessary, for
25159 # example, in the case of _POSIX_SOURCE, which is predefined and required
25160 # on some systems where configure will not decide to define it.
25161 # (The regexp can be short, since the line contains either #define or #undef.)
25162 echo 's/ $//
25163 s,^[ #]*u.*,/* & */,' >>conftest.defines
25165 # Break up conftest.defines:
25166 ac_max_sed_lines=50
25168 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25169 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25170 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25171 # et cetera.
25172 ac_in='$ac_file_inputs'
25173 ac_out='"$tmp/out1"'
25174 ac_nxt='"$tmp/out2"'
25176 while :
25178 # Write a here document:
25179 cat >>$CONFIG_STATUS <<_ACEOF
25180 # First, check the format of the line:
25181 cat >"\$tmp/defines.sed" <<\\CEOF
25182 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25183 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25185 :def
25186 _ACEOF
25187 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25188 echo 'CEOF
25189 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25190 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25191 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25192 grep . conftest.tail >/dev/null || break
25193 rm -f conftest.defines
25194 mv conftest.tail conftest.defines
25195 done
25196 rm -f conftest.defines conftest.tail
25198 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25199 cat >>$CONFIG_STATUS <<\_ACEOF
25200 if test x"$ac_file" != x-; then
25201 echo "/* $configure_input */" >"$tmp/config.h"
25202 cat "$ac_result" >>"$tmp/config.h"
25203 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25204 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25205 echo "$as_me: $ac_file is unchanged" >&6;}
25206 else
25207 rm -f $ac_file
25208 mv "$tmp/config.h" $ac_file
25210 else
25211 echo "/* $configure_input */"
25212 cat "$ac_result"
25214 rm -f "$tmp/out12"
25217 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25218 echo "$as_me: executing $ac_file commands" >&6;}
25220 esac
25223 case $ac_file$ac_mode in
25224 "default":C)
25226 ### Make the necessary directories, if they don't exist.
25227 for dir in etc lisp ; do
25228 test -d ${dir} || mkdir ${dir}
25229 done
25231 # Build src/Makefile from ${srcdir}/src/Makefile.c
25232 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25233 # This must be done after src/config.h is built, since we rely on that file.
25235 # Now get this: Some word that is part of the ${srcdir} directory name
25236 # or the ${configuration} value might, just might, happen to be an
25237 # identifier like `sun4' or `i386' or something, and be predefined by
25238 # the C preprocessor to some helpful value like 1, or maybe the empty
25239 # string. Needless to say consequent macro substitutions are less
25240 # than conducive to the makefile finding the correct directory.
25241 undefs="`echo $top_srcdir $configuration $canonical |
25242 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25243 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25246 echo creating src/epaths.h
25247 ${MAKE-make} epaths-force
25249 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25250 # `..' to `. .' unless invoked with -traditional
25252 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25253 CPPFLAGS="$CPPFLAGS -traditional"
25256 echo creating lib-src/Makefile
25257 ( cd lib-src
25258 rm -f junk.c junk1.c junk2.c
25259 sed -e '/start of cpp stuff/q' \
25260 < Makefile.c > junk1.c
25261 sed -e '1,/start of cpp stuff/d'\
25262 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25263 < Makefile.c > junk.c
25264 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25265 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25266 cat junk1.c junk2.c > Makefile.new
25267 rm -f junk.c junk1.c junk2.c
25268 chmod 444 Makefile.new
25269 mv -f Makefile.new Makefile
25272 echo creating src/Makefile
25273 ( cd src
25274 rm -f junk.c junk1.c junk2.c
25275 sed -e '/start of cpp stuff/q' \
25276 < Makefile.c > junk1.c
25277 sed -e '1,/start of cpp stuff/d'\
25278 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25279 < Makefile.c > junk.c
25280 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25281 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25283 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25284 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25285 cat junk1.c junk2.c > Makefile.new
25286 rm -f junk.c junk1.c junk2.c
25287 chmod 444 Makefile.new
25288 mv -f Makefile.new Makefile
25291 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25292 echo creating src/.gdbinit
25293 echo source $srcdir/src/.gdbinit > src/.gdbinit
25296 # This is how we know whether to re-run configure in certain cases.
25297 touch src/config.stamp
25301 esac
25302 done # for ac_tag
25305 { (exit 0); exit 0; }
25306 _ACEOF
25307 chmod +x $CONFIG_STATUS
25308 ac_clean_files=$ac_clean_files_save
25311 # configure is writing to config.log, and then calls config.status.
25312 # config.status does its own redirection, appending to config.log.
25313 # Unfortunately, on DOS this fails, as config.log is still kept open
25314 # by configure, so config.status won't be able to write to it; its
25315 # output is simply discarded. So we exec the FD to /dev/null,
25316 # effectively closing config.log, so it can be properly (re)opened and
25317 # appended to by config.status. When coming back to configure, we
25318 # need to make the FD available again.
25319 if test "$no_create" != yes; then
25320 ac_cs_success=:
25321 ac_config_status_args=
25322 test "$silent" = yes &&
25323 ac_config_status_args="$ac_config_status_args --quiet"
25324 exec 5>/dev/null
25325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25326 exec 5>>config.log
25327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25328 # would make configure fail if this is the last instruction.
25329 $ac_cs_success || { (exit 1); exit 1; }