* international/mule-cmds.el (read-char-by-name):
[emacs.git] / configure
blob9b196b25c0135a5eae7f2710bf5fcee0cb1ee51a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 LTLIBOBJS'
742 ac_subst_files=''
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 XMKMF'
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
801 ac_prev=
802 ac_dashdash=
803 for ac_option
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
821 ac_dashdash=yes ;;
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
840 --config-cache | -C)
841 cache_file=config.cache ;;
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 esac
1130 done
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1174 test "$silent" = yes && exec 6>/dev/null
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1205 /^X\(\/\/\)$/{
1206 s//\1/
1209 /^X\(\/\).*/{
1210 s//\1/
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1218 else
1219 ac_srcdir_defaulted=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1310 cat <<\_ACEOF
1312 Program names:
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1317 X features:
1318 --x-includes=DIR X include files are in DIR
1319 --x-libraries=DIR X library files are in DIR
1321 System types:
1322 --build=BUILD configure for building on BUILD [guessed]
1323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324 _ACEOF
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1330 esac
1331 cat <<\_ACEOF
1333 Optional Features:
1334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1337 --disable-ns-self-contained disable self contained build under NS
1338 --enable-asserts compile code with asserts enabled
1339 --enable-maintainer-mode
1340 enable make rules and dependencies not useful (and
1341 sometimes confusing) to the casual installer
1342 --enable-locallisppath=PATH
1343 directories Emacs should search for lisp files
1344 specific to this site
1345 --disable-largefile omit support for large files
1347 Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --without-pop don't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --without-sync-input Process async input synchronously
1356 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1357 motif, gtk, no)
1358 --without-xpm don't compile with XPM image support
1359 --without-jpeg don't compile with JPEG image support
1360 --without-tiff don't compile with TIFF image support
1361 --without-gif don't compile with GIF image support
1362 --without-png don't compile with PNG image support
1363 --without-rsvg don't compile with SVG image support
1364 --without-freetype don't use Freetype for local font support
1365 --without-xft don't use XFT for anti aliased fonts
1366 --without-libotf don't use libotf for OpenType font support
1367 --without-m17n-flt don't use m17n-flt for text shaping
1368 --without-toolkit-scroll-bars
1369 don't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don't use X11 XIM
1372 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1373 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1374 console
1375 --without-dbus don't compile with D-Bus support
1376 --without-makeinfo don't require makeinfo for building manuals
1378 --with-pkg-config-prog=PATH
1379 Path to pkg-config for finding GTK and librsvg
1380 --with-x use the X Window System
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1391 XMKMF Path to xmkmf, Makefile generator for X Window System
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1396 _ACEOF
1397 ac_status=$?
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1404 ac_builddir=.
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 emacs configure 23.0.60
1457 generated by GNU Autoconf 2.61
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464 exit
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1470 It was created by emacs $as_me 23.0.60, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1473 $ $0 $@
1475 _ACEOF
1476 exec 5>>config.log
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1492 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1493 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1496 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1497 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1498 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 _ASUNAME
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1511 } >&5
1513 cat >&5 <<_ACEOF
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1520 _ACEOF
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1534 for ac_arg
1536 case $ac_arg in
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1540 continue ;;
1541 *\'*)
1542 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 esac
1544 case $ac_pass in
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1550 else
1551 case $ac_arg in
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 esac
1560 -* ) ac_must_keep_next=true ;;
1561 esac
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1565 esac
1566 done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1579 echo
1581 cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586 echo
1587 # The following way of writing the cache mishandles newlines in values,
1589 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in #(
1592 *${as_nl}*)
1593 case $ac_var in #(
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 esac
1597 case $ac_var in #(
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1600 esac ;;
1601 esac
1602 done
1603 (set) 2>&1 |
1604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1606 sed -n \
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 ;; #(
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613 esac |
1614 sort
1616 echo
1618 cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1627 case $ac_val in
1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 esac
1630 echo "$ac_var='\''$ac_val'\''"
1631 done | sort
1632 echo
1634 if test -n "$ac_subst_files"; then
1635 cat <<\_ASBOX
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1639 _ASBOX
1640 echo
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1644 case $ac_val in
1645 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646 esac
1647 echo "$ac_var='\''$ac_val'\''"
1648 done | sort
1649 echo
1652 if test -s confdefs.h; then
1653 cat <<\_ASBOX
1654 ## ----------- ##
1655 ## confdefs.h. ##
1656 ## ----------- ##
1657 _ASBOX
1658 echo
1659 cat confdefs.h
1660 echo
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1665 } >&5
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 exit $exit_status
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 done
1673 ac_signal=0
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711 else
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1715 shift
1716 for ac_site_file
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1722 . "$ac_site_file"
1724 done
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1732 case $cache_file in
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1735 esac
1737 else
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1740 >$cache_file
1743 ac_header_list="$ac_header_list sys/time.h"
1744 ac_header_list="$ac_header_list unistd.h"
1745 ac_func_list="$ac_func_list alarm"
1746 # Check that the precious variables saved in the cache have kept the same
1747 # value.
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1755 set,)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,set)
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1763 ,);;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1769 echo "$as_me: former value: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1771 echo "$as_me: current value: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1773 fi;;
1774 esac
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1777 case $ac_new_val in
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1780 esac
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 esac
1786 done
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1789 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s,x,x', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1839 _ACEOF
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 rm -f conftest.sed
1844 lispdir='${datadir}/emacs/${version}/lisp'
1845 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1846 '${datadir}/emacs/site-lisp'
1847 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1848 etcdir='${datadir}/emacs/${version}/etc'
1849 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1850 docdir='${datadir}/emacs/${version}/etc'
1851 gamedir='${localstatedir}/games/emacs'
1853 gameuser=games
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1860 withval=$with_pop;
1861 else
1862 with_pop=yes
1865 if test "$with_pop" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define MAIL_USE_POP 1
1868 _ACEOF
1874 # Check whether --with-kerberos was given.
1875 if test "${with_kerberos+set}" = set; then
1876 withval=$with_kerberos;
1877 else
1878 with_kerberos=no
1881 if test "$with_kerberos" != no; then
1882 cat >>confdefs.h <<\_ACEOF
1883 #define KERBEROS 1
1884 _ACEOF
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5;
1893 else
1894 with_kerberos5=no
1897 if test "${with_kerberos5}" != no; then
1898 if test "${with_kerberos}" = no; then
1899 with_kerberos=yes
1900 cat >>confdefs.h <<\_ACEOF
1901 #define KERBEROS 1
1902 _ACEOF
1906 cat >>confdefs.h <<\_ACEOF
1907 #define KERBEROS5 1
1908 _ACEOF
1913 # Check whether --with-hesiod was given.
1914 if test "${with_hesiod+set}" = set; then
1915 withval=$with_hesiod;
1916 else
1917 with_hesiod=no
1920 if test "$with_hesiod" != no; then
1922 cat >>confdefs.h <<\_ACEOF
1923 #define HESIOD 1
1924 _ACEOF
1929 # Check whether --with-sound was given.
1930 if test "${with_sound+set}" = set; then
1931 withval=$with_sound;
1932 else
1933 with_sound=yes
1938 # Check whether --with-sync-input was given.
1939 if test "${with_sync_input+set}" = set; then
1940 withval=$with_sync_input;
1941 else
1942 with_sync_input=yes
1945 if test "$with_sync_input" = yes; then
1947 cat >>confdefs.h <<\_ACEOF
1948 #define SYNC_INPUT 1
1949 _ACEOF
1954 # Check whether --with-x-toolkit was given.
1955 if test "${with_x_toolkit+set}" = set; then
1956 withval=$with_x_toolkit; case "${withval}" in
1957 y | ye | yes ) val=gtk ;;
1958 n | no ) val=no ;;
1959 l | lu | luc | luci | lucid ) val=lucid ;;
1960 a | at | ath | athe | athen | athena ) val=athena ;;
1961 m | mo | mot | moti | motif ) val=motif ;;
1962 g | gt | gtk ) val=gtk ;;
1964 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1967 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1969 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1970 { (exit 1); exit 1; }; }
1972 esac
1973 with_x_toolkit=$val
1979 # Check whether --with-xpm was given.
1980 if test "${with_xpm+set}" = set; then
1981 withval=$with_xpm;
1982 else
1983 with_xpm=yes
1987 # Check whether --with-jpeg was given.
1988 if test "${with_jpeg+set}" = set; then
1989 withval=$with_jpeg;
1990 else
1991 with_jpeg=yes
1995 # Check whether --with-tiff was given.
1996 if test "${with_tiff+set}" = set; then
1997 withval=$with_tiff;
1998 else
1999 with_tiff=yes
2003 # Check whether --with-gif was given.
2004 if test "${with_gif+set}" = set; then
2005 withval=$with_gif;
2006 else
2007 with_gif=yes
2011 # Check whether --with-png was given.
2012 if test "${with_png+set}" = set; then
2013 withval=$with_png;
2014 else
2015 with_png=yes
2019 # Check whether --with-rsvg was given.
2020 if test "${with_rsvg+set}" = set; then
2021 withval=$with_rsvg;
2022 else
2023 with_rsvg=yes
2028 # Check whether --with-freetype was given.
2029 if test "${with_freetype+set}" = set; then
2030 withval=$with_freetype;
2031 else
2032 with_freetype=yes
2036 # Check whether --with-xft was given.
2037 if test "${with_xft+set}" = set; then
2038 withval=$with_xft;
2039 else
2040 with_xft=yes
2044 # Check whether --with-libotf was given.
2045 if test "${with_libotf+set}" = set; then
2046 withval=$with_libotf;
2047 else
2048 with_libotf=yes
2052 # Check whether --with-m17n-flt was given.
2053 if test "${with_m17n_flt+set}" = set; then
2054 withval=$with_m17n_flt;
2055 else
2056 with_m17n_flt=yes
2061 # Check whether --with-toolkit-scroll-bars was given.
2062 if test "${with_toolkit_scroll_bars+set}" = set; then
2063 withval=$with_toolkit_scroll_bars;
2064 else
2065 with_toolkit_scroll_bars=yes
2069 # Check whether --with-xaw3d was given.
2070 if test "${with_xaw3d+set}" = set; then
2071 withval=$with_xaw3d;
2072 else
2073 with_xaw3d=yes
2077 # Check whether --with-xim was given.
2078 if test "${with_xim+set}" = set; then
2079 withval=$with_xim;
2080 else
2081 with_xim=yes
2085 # Check whether --with-ns was given.
2086 if test "${with_ns+set}" = set; then
2087 withval=$with_ns;
2088 else
2089 with_ns=no
2094 # Check whether --with-gpm was given.
2095 if test "${with_gpm+set}" = set; then
2096 withval=$with_gpm;
2097 else
2098 with_gpm=yes
2102 # Check whether --with-dbus was given.
2103 if test "${with_dbus+set}" = set; then
2104 withval=$with_dbus;
2105 else
2106 with_dbus=yes
2110 ## For the times when you want to build Emacs but don't have
2111 ## a suitable makeinfo, and can live without the manuals.
2113 # Check whether --with-makeinfo was given.
2114 if test "${with_makeinfo+set}" = set; then
2115 withval=$with_makeinfo;
2116 else
2117 with_makeinfo=yes
2122 # Check whether --with-gtk was given.
2123 if test "${with_gtk+set}" = set; then
2124 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&5
2126 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&2;}
2128 { (exit 1); exit 1; }; }
2133 # Check whether --with-gcc was given.
2134 if test "${with_gcc+set}" = set; then
2135 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&5
2137 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&2;}
2139 { (exit 1); exit 1; }; }
2144 # Check whether --with-pkg-config-prog was given.
2145 if test "${with_pkg_config_prog+set}" = set; then
2146 withval=$with_pkg_config_prog;
2149 if test "X${with_pkg_config_prog}" != X; then
2150 if test "${with_pkg_config_prog}" != yes; then
2151 PKG_CONFIG="${with_pkg_config_prog}"
2155 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2156 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2157 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
2158 else
2159 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2163 # Check whether --enable-ns-self-contained was given.
2164 if test "${enable_ns_self_contained+set}" = set; then
2165 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=no
2166 else
2167 EN_NS_SELF_CONTAINED=yes
2171 # Check whether --enable-asserts was given.
2172 if test "${enable_asserts+set}" = set; then
2173 enableval=$enable_asserts; USE_XASSERTS=$enableval
2174 else
2175 USE_XASSERTS=no
2179 # Check whether --enable-maintainer-mode was given.
2180 if test "${enable_maintainer_mode+set}" = set; then
2181 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2182 else
2183 USE_MAINTAINER_MODE=no
2186 if test $USE_MAINTAINER_MODE = yes; then
2187 MAINT=
2188 else
2189 MAINT=#
2193 # Check whether --enable-locallisppath was given.
2194 if test "${enable_locallisppath+set}" = set; then
2195 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2196 locallisppath=
2197 elif test "${enableval}" != "yes"; then
2198 locallisppath=${enableval}
2203 #### Make srcdir absolute, if it isn't already. It's important to
2204 #### avoid running the path through pwd unnecessarily, since pwd can
2205 #### give you automounter prefixes, which can go away. We do all this
2206 #### so Emacs can find its files when run uninstalled.
2207 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2208 unset CDPATH
2209 case "${srcdir}" in
2210 /* ) ;;
2212 ## We may be able to use the $PWD environment variable to make this
2213 ## absolute. But sometimes PWD is inaccurate.
2214 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2215 ## but that tested only for a well-formed and valid PWD,
2216 ## it did not object when PWD was well-formed and valid but just wrong.
2217 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2218 then
2219 srcdir="$PWD"
2220 else
2221 srcdir="`(cd ${srcdir}; pwd)`"
2224 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2225 esac
2227 #### Check if the source directory already has a configured system in it.
2228 if test `pwd` != `(cd ${srcdir} && pwd)` \
2229 && test -f "${srcdir}/src/config.h" ; then
2230 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2231 as a build directory right now; it has been configured in its own
2232 right. To configure in another directory as well, you MUST
2233 use GNU make. If you do not have GNU make, then you must
2234 now do \`make distclean' in ${srcdir},
2235 and then run $0 again." >&5
2236 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&2;}
2244 #### Given the configuration name, set machfile and opsysfile to the
2245 #### names of the m/*.h and s/*.h files we should use.
2247 ### Canonicalize the configuration name.
2249 ac_aux_dir=
2250 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install-sh -c"
2254 break
2255 elif test -f "$ac_dir/install.sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install.sh -c"
2258 break
2259 elif test -f "$ac_dir/shtool"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/shtool install -c"
2262 break
2264 done
2265 if test -z "$ac_aux_dir"; then
2266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2267 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2268 { (exit 1); exit 1; }; }
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: checking build system type" >&5
2287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 ac_build_alias=$build_alias
2292 test "x$ac_build_alias" = x &&
2293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x &&
2295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 echo "${ECHO_T}$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2311 esac
2312 build=$ac_cv_build
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_build
2315 shift
2316 build_cpu=$1
2317 build_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 build_os=$*
2322 IFS=$ac_save_IFS
2323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2326 { echo "$as_me:$LINENO: checking host system type" >&5
2327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test "x$host_alias" = x; then
2332 ac_cv_host=$ac_cv_build
2333 else
2334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6; }
2343 case $ac_cv_host in
2344 *-*-*) ;;
2345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2363 canonical=$host
2364 configuration=${host_alias-${build_alias-$host}}
2368 ### If you add support for a new configuration, add code to this
2369 ### switch statement to recognize your configuration name and select
2370 ### the appropriate operating system and machine description files.
2372 ### You would hope that you could choose an m/*.h file pretty much
2373 ### based on the machine portion of the configuration name, and an s-
2374 ### file based on the operating system portion. However, it turns out
2375 ### that each m/*.h file is pretty manufacturer-specific - for
2376 ### example mips.h is MIPS
2377 ### So we basically have to have a special case for each
2378 ### configuration name.
2380 ### As far as handling version numbers on operating systems is
2381 ### concerned, make sure things will fail in a fixable way. If
2382 ### /etc/MACHINES doesn't say anything about version numbers, be
2383 ### prepared to handle anything reasonably. If version numbers
2384 ### matter, be sure /etc/MACHINES says something about it.
2386 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2387 ### "System V Release 4"; he writes, "The old convention encouraged
2388 ### confusion between `system' and `release' levels'."
2390 machine='' opsys='' unported=no
2391 case "${canonical}" in
2393 ## FreeBSD ports
2394 *-*-freebsd* )
2395 opsys=freebsd
2396 case "${canonical}" in
2397 alpha*-*-freebsd*) machine=alpha ;;
2398 arm*-*-freebsd*) machine=arm ;;
2399 ia64-*-freebsd*) machine=ia64 ;;
2400 sparc-*-freebsd*) machine=sparc ;;
2401 sparc64-*-freebsd*) machine=sparc ;;
2402 powerpc-*-freebsd*) machine=macppc ;;
2403 i[3456]86-*-freebsd*) machine=intel386 ;;
2404 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2405 esac
2408 ## FreeBSD kernel + glibc based userland
2409 *-*-kfreebsd*gnu* )
2410 opsys=gnu-kfreebsd
2411 case "${canonical}" in
2412 alpha*-*-kfreebsd*) machine=alpha ;;
2413 ia64-*-kfreebsd*) machine=ia64 ;;
2414 sparc-*-kfreebsd*) machine=sparc ;;
2415 sparc64-*-kfreebsd*) machine=sparc ;;
2416 powerpc-*-kfreebsd*) machine=macppc ;;
2417 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2418 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2419 esac
2422 ## NetBSD ports
2423 *-*-netbsd* )
2424 opsys=netbsd
2425 if test -f /usr/lib/crti.o; then
2427 cat >>confdefs.h <<\_ACEOF
2428 #define HAVE_CRTIN
2429 _ACEOF
2433 case "${canonical}" in
2434 alpha*-*-netbsd*) machine=alpha ;;
2435 i[3456]86-*-netbsd*) machine=intel386 ;;
2436 powerpc-*-netbsd*) machine=macppc ;;
2437 sparc*-*-netbsd*) machine=sparc ;;
2438 vax-*-netbsd*) machine=vax ;;
2439 arm-*-netbsd*) machine=arm ;;
2440 x86_64-*-netbsd*) machine=amdx86-64 ;;
2441 hppa-*-netbsd*) machine=hp800 ;;
2442 esac
2445 ## OpenBSD ports
2446 *-*-openbsd* )
2447 opsys=openbsd
2448 case "${canonical}" in
2449 alpha*-*-openbsd*) machine=alpha ;;
2450 arm-*-openbsd*) machine=arm ;;
2451 i386-*-openbsd*) machine=intel386 ;;
2452 powerpc-*-openbsd*) machine=macppc ;;
2453 sparc*-*-openbsd*) machine=sparc ;;
2454 vax-*-openbsd*) machine=vax ;;
2455 x86_64-*-openbsd*) machine=amdx86-64 ;;
2456 esac
2459 ## LynxOS ports
2460 *-*-lynxos* )
2461 opsys=lynxos
2462 case "${canonical}" in
2463 i[3456]86-*-lynxos*) machine=intel386 ;;
2464 powerpc-*-lynxos*) machine=powerpc ;;
2465 esac
2468 alpha*-*-linux-gnu* )
2469 machine=alpha opsys=gnu-linux
2472 arm*-*-linux-gnu* )
2473 machine=arm opsys=gnu-linux
2476 ## Apple Darwin / Mac OS X
2477 *-apple-darwin* )
2478 case "${canonical}" in
2479 i[3456]86-* ) machine=intel386 ;;
2480 powerpc-* ) machine=macppc ;;
2481 * ) unported=yes ;;
2482 esac
2483 opsys=darwin
2484 # Define CPP as follows to make autoconf work correctly.
2485 CPP="${CC-cc} -E -no-cpp-precomp"
2486 # Use fink packages if available.
2487 if test -d /sw/include && test -d /sw/lib; then
2488 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2489 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2490 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2494 ## HP 9000 series 700 and 800, running HP/UX
2495 hppa*-hp-hpux10.2* )
2496 machine=hp800 opsys=hpux10-20
2498 hppa*-hp-hpux1[1-9]* )
2499 machine=hp800 opsys=hpux11
2500 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2503 hppa*-*-linux-gnu* )
2504 machine=hp800 opsys=gnu-linux
2507 ## IBM machines
2508 s390-*-linux-gnu* )
2509 machine=ibms390 opsys=gnu-linux
2511 s390x-*-linux-gnu* )
2512 machine=ibms390x opsys=gnu-linux
2514 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2515 machine=ibmrs6000 opsys=aix4-2
2517 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2518 machine=ibmrs6000 opsys=aix4-2
2520 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2521 machine=ibmrs6000 opsys=aix4-2
2523 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2524 machine=ibmrs6000 opsys=aix4-2
2527 ## Macintosh PowerPC
2528 powerpc*-*-linux-gnu* )
2529 machine=macppc opsys=gnu-linux
2532 ## Silicon Graphics machines
2533 ## Iris 4D
2534 mips-sgi-irix6.5 )
2535 machine=iris4d opsys=irix6-5
2536 # Without defining _LANGUAGE_C, things get masked out in the headers
2537 # so that, for instance, grepping for `free' in stdlib.h fails and
2538 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2539 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2540 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2543 ## Suns
2544 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2545 machine=sparc opsys=gnu-linux
2548 *-sun-solaris* \
2549 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2550 | rs6000-*-solaris2*)
2551 case "${canonical}" in
2552 i[3456]86-*-* ) machine=intel386 ;;
2553 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2554 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2555 sparc* ) machine=sparc ;;
2556 * ) unported=yes ;;
2557 esac
2558 case "${canonical}" in
2559 *-sunos5.3* | *-solaris2.3* )
2560 opsys=sol2-3
2561 NON_GNU_CPP=/usr/ccs/lib/cpp
2563 *-sunos5.4* | *-solaris2.4* )
2564 opsys=sol2-4
2565 NON_GNU_CPP=/usr/ccs/lib/cpp
2566 RANLIB="ar -ts"
2568 *-sunos5.5* | *-solaris2.5* )
2569 opsys=sol2-5
2570 NON_GNU_CPP=/usr/ccs/lib/cpp
2571 RANLIB="ar -ts"
2573 *-sunos5.6* | *-solaris2.6* )
2574 opsys=sol2-6
2575 NON_GNU_CPP=/usr/ccs/lib/cpp
2576 RANLIB="ar -ts"
2578 *-sunos5* | *-solaris* )
2579 opsys=sol2-6
2580 emacs_check_sunpro_c=yes
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2583 esac
2584 ## Watch out for a compiler that we know will not work.
2585 case "${canonical}" in
2586 *-solaris* | *-sunos5* )
2587 if [ "x$CC" = x/usr/ucb/cc ]; then
2588 ## /usr/ucb/cc doesn't work;
2589 ## we should find some other compiler that does work.
2590 unset CC
2593 *) ;;
2594 esac
2597 ## Vaxen.
2598 vax-dec-* )
2599 machine=vax
2600 case "${canonical}" in
2601 *-vms* ) opsys=vms ;;
2602 * ) unported=yes
2603 esac
2606 ## IA-64
2607 ia64*-*-linux* )
2608 machine=ia64 opsys=gnu-linux
2611 ## Intel 386 machines where we don't care about the manufacturer
2612 i[3456]86-*-* )
2613 machine=intel386
2614 case "${canonical}" in
2615 *-cygwin ) opsys=cygwin ;;
2616 *-darwin* ) opsys=darwin
2617 CPP="${CC-cc} -E -no-cpp-precomp"
2619 *-linux-gnu* ) opsys=gnu-linux ;;
2620 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2621 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2622 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2623 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2624 esac
2627 ## m68k Linux-based GNU system
2628 m68k-*-linux-gnu* )
2629 machine=m68k opsys=gnu-linux
2632 ## Mips Linux-based GNU system
2633 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2634 machine=mips opsys=gnu-linux
2637 ## AMD x86-64 Linux-based GNU system
2638 x86_64-*-linux-gnu* )
2639 machine=amdx86-64 opsys=gnu-linux
2642 ## Tensilica Xtensa Linux-based GNU system
2643 xtensa*-*-linux-gnu* )
2644 machine=xtensa opsys=gnu-linux
2648 unported=yes
2650 esac
2652 ### If the code above didn't choose an operating system, just choose
2653 ### an operating system based on the configuration name. You really
2654 ### only want to use this when you have no idea what the right
2655 ### operating system is; if you know what operating systems a machine
2656 ### runs, it's cleaner to make it explicit in the case statement
2657 ### above.
2658 if test x"${opsys}" = x; then
2659 case "${canonical}" in
2660 *-gnu* ) opsys=gnu ;;
2661 *-sysv4.2uw* ) opsys=unixware ;;
2662 *-sysv5uw* ) opsys=unixware ;;
2663 *-sysv5OpenUNIX* ) opsys=unixware ;;
2664 *-sysv4.1* | *-sysvr4.1* )
2665 NON_GNU_CPP=/usr/lib/cpp
2666 opsys=usg5-4 ;;
2667 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2668 if [ x$NON_GNU_CPP = x ]; then
2669 if [ -f /usr/ccs/lib/cpp ]; then
2670 NON_GNU_CPP=/usr/ccs/lib/cpp
2671 else
2672 NON_GNU_CPP=/lib/cpp
2675 opsys=usg5-4-2 ;;
2676 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2678 unported=yes
2680 esac
2685 if test $unported = yes; then
2686 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2687 Check \`etc/MACHINES' for recognized configuration names." >&5
2688 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2690 { (exit 1); exit 1; }; }
2693 machfile="m/${machine}.h"
2694 opsysfile="s/${opsys}.h"
2697 #### Choose a compiler.
2698 test -n "$CC" && cc_specified=yes
2700 # Save the value of CFLAGS that the user specified.
2701 SPECIFIED_CFLAGS="$CFLAGS"
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2740 else
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2748 ac_ct_CC=$CC
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x; then
2786 CC=""
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 CC=$ac_ct_CC
2800 else
2801 CC="$ac_cv_prog_CC"
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes
2866 continue
2868 ac_cv_prog_CC="cc"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC
2879 shift
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2884 shift
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2894 else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2936 else
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2943 done
2945 if test -z "$CC"; then
2946 ac_ct_CC=$CC
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2980 else
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2987 done
2989 if test "x$ac_ct_CC" = x; then
2990 CC=""
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002 CC=$ac_ct_CC
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (ac_try="$ac_compiler --version >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try="$ac_compiler -V >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3057 main ()
3061 return 0;
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3081 ac_rmfiles=
3082 for ac_file in $ac_files
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087 esac
3088 done
3089 rm -f $ac_rmfiles
3091 if { (ac_try="$ac_link_default"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3105 # Autoconf.
3106 for ac_file in $ac_files ''
3108 test -f "$ac_file" || continue
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3112 [ab].out )
3113 # We found the default executable, but exeext='' is most
3114 # certainly right.
3115 break;;
3116 *.* )
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 then :; else
3119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3125 # actually working.
3126 break;;
3128 break;;
3129 esac
3130 done
3131 test "$ac_cv_exeext" = no && ac_cv_exeext=
3133 else
3134 ac_file=''
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 cross_compiling=no
3170 else
3171 if test "$cross_compiling" = maybe; then
3172 cross_compiling=yes
3173 else
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: cannot run C compiled programs.
3178 If you meant to cross compile, use \`--host'.
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe'), while it won't with
3211 # `rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 break;;
3218 * ) break;;
3219 esac
3220 done
3221 else
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3249 main ()
3253 return 0;
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274 done
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3305 main ()
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3312 return 0;
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_compiler_gnu=yes
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 ac_compiler_gnu=no
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3356 ac_cv_prog_cc_g=no
3357 CFLAGS="-g"
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_prog_cc_g=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 CFLAGS=""
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3404 main ()
3408 return 0;
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 CFLAGS="-g"
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3443 main ()
3447 return 0;
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3467 ac_cv_prog_cc_g=yes
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3490 CFLAGS="-g -O2"
3491 else
3492 CFLAGS="-g"
3494 else
3495 if test "$GCC" = yes; then
3496 CFLAGS="-O2"
3497 else
3498 CFLAGS=
3501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 ac_cv_prog_cc_c89=no
3507 ac_save_CC=$CC
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <stdarg.h>
3515 #include <stdio.h>
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3522 char **p;
3523 int i;
3525 return p[i];
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3529 char *s;
3530 va_list v;
3531 va_start (v,p);
3532 s = g (p, va_arg (v,int));
3533 va_end (v);
3534 return s;
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3548 #define FOO(x) 'x'
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 int argc;
3556 char **argv;
3558 main ()
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 return 0;
3564 _ACEOF
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 done
3597 rm -f conftest.$ac_ext
3598 CC=$ac_save_CC
3601 # AC_CACHE_VAL
3602 case "x$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result: none needed" >&5
3605 echo "${ECHO_T}none needed" >&6; } ;;
3606 xno)
3607 { echo "$as_me:$LINENO: result: unsupported" >&5
3608 echo "${ECHO_T}unsupported" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3613 esac
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3625 CPP=
3628 ## If not using gcc, and on Solaris, and no CPP specified, see if
3629 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3630 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3631 test x"$CPP" = x; then
3632 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3633 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3635 if test "${emacs_cv_sunpro_c+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3646 main ()
3648 #ifndef __SUNPRO_C
3649 fail;
3650 #endif
3653 return 0;
3655 _ACEOF
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest$ac_exeext &&
3673 $as_test_x conftest$ac_exeext; then
3674 emacs_cv_sunpro_c=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 emacs_cv_sunpro_c=no
3682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 conftest$ac_exeext conftest.$ac_ext
3686 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3687 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3689 if test x"$emacs_cv_sunpro_c" = xyes; then
3690 NON_GNU_CPP="$CC -E -Xs"
3694 #### Some systems specify a CPP to use unless we are using GCC.
3695 #### Now that we know whether we are using GCC, we can decide whether
3696 #### to use that one.
3697 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3698 then
3699 CPP="$NON_GNU_CPP"
3702 #### Some systems specify a CC to use unless we are using GCC.
3703 #### Now that we know whether we are using GCC, we can decide whether
3704 #### to use that one.
3705 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3706 test x$cc_specified != xyes
3707 then
3708 CC="$NON_GNU_CC"
3711 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3712 then
3713 CC="$CC $GCC_TEST_OPTIONS"
3716 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3717 then
3718 CC="$CC $NON_GCC_TEST_OPTIONS"
3722 cat >>confdefs.h <<\_ACEOF
3723 #define _GNU_SOURCE 1
3724 _ACEOF
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3736 CPP=
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3745 ac_preproc_ok=false
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 #ifdef __STDC__
3761 # include <limits.h>
3762 #else
3763 # include <assert.h>
3764 #endif
3765 Syntax error
3766 _ACEOF
3767 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 }; then
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Broken: fails on valid input.
3789 continue
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3803 _ACEOF
3804 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 # Broken: success on invalid input.
3821 continue
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3831 rm -f conftest.err conftest.$ac_ext
3833 done
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3837 break
3840 done
3841 ac_cv_prog_CPP=$CPP
3844 CPP=$ac_cv_prog_CPP
3845 else
3846 ac_cv_prog_CPP=$CPP
3848 { echo "$as_me:$LINENO: result: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3850 ac_preproc_ok=false
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870 Syntax error
3871 _ACEOF
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 }; then
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3894 continue
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 # Broken: success on invalid input.
3926 continue
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3932 ac_preproc_ok=:
3933 break
3936 rm -f conftest.err conftest.$ac_ext
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3943 else
3944 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3986 ac_count=0
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 while :
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4009 $ac_path_GREP_found && break 3
4010 done
4011 done
4013 done
4014 IFS=$as_save_IFS
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4026 else
4027 ac_cv_path_GREP=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4044 else
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4068 ac_count=0
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070 while :
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 ac_count=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4086 done
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4091 $ac_path_EGREP_found && break 3
4092 done
4093 done
4095 done
4096 IFS=$as_save_IFS
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4108 else
4109 ac_cv_path_EGREP=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for AIX" >&5
4122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #ifdef _AIX
4131 #endif
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "yes" >/dev/null 2>&1; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 cat >>confdefs.h <<\_ACEOF
4139 #define _ALL_SOURCE 1
4140 _ACEOF
4142 else
4143 { echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6; }
4146 rm -f conftest*
4149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <stdlib.h>
4161 #include <stdarg.h>
4162 #include <string.h>
4163 #include <float.h>
4166 main ()
4170 return 0;
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 ac_cv_header_stdc=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_header_stdc=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #include <string.h>
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4214 else
4215 ac_cv_header_stdc=no
4217 rm -f conftest*
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4231 _ACEOF
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4235 else
4236 ac_cv_header_stdc=no
4238 rm -f conftest*
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ctype.h>
4254 #include <stdlib.h>
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4258 #else
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4264 #endif
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4268 main ()
4270 int i;
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4274 return 2;
4275 return 0;
4277 _ACEOF
4278 rm -f conftest$ac_exeext
4279 if { (ac_try="$ac_link"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_link") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4289 { (case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4299 else
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 ( exit $ac_status )
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 cat >>confdefs.h <<\_ACEOF
4318 #define STDC_HEADERS 1
4319 _ACEOF
4323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334 inttypes.h stdint.h unistd.h
4336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4350 #include <$ac_header>
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (ac_try="$ac_compile"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.$ac_objext; then
4369 eval "$as_ac_Header=yes"
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 eval "$as_ac_Header=no"
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 ac_res=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381 echo "${ECHO_T}$ac_res" >&6; }
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385 _ACEOF
4389 done
4392 if test "${ac_cv_header_minix_config_h+set}" = set; then
4393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4395 if test "${ac_cv_header_minix_config_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4400 else
4401 # Is the header compilable?
4402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <minix/config.h>
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_header_compiler=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_header_compiler=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6; }
4442 # Is the header present?
4443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <minix/config.h>
4452 _ACEOF
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null && {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 }; then
4469 ac_header_preproc=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 ac_header_preproc=no
4477 rm -f conftest.err conftest.$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6; }
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483 yes:no: )
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc=yes
4490 no:yes:* )
4491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4505 esac
4506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4508 if test "${ac_cv_header_minix_config_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 ac_cv_header_minix_config_h=$ac_header_preproc
4513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4517 if test $ac_cv_header_minix_config_h = yes; then
4518 MINIX=yes
4519 else
4520 MINIX=
4524 if test "$MINIX" = yes; then
4526 cat >>confdefs.h <<\_ACEOF
4527 #define _POSIX_SOURCE 1
4528 _ACEOF
4531 cat >>confdefs.h <<\_ACEOF
4532 #define _POSIX_1_SOURCE 2
4533 _ACEOF
4536 cat >>confdefs.h <<\_ACEOF
4537 #define _MINIX 1
4538 _ACEOF
4552 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4553 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 # define __EXTENSIONS__ 1
4565 $ac_includes_default
4567 main ()
4571 return 0;
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (ac_try="$ac_compile"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_cv_safe_to_define___extensions__=yes
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_safe_to_define___extensions__=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4602 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4603 test $ac_cv_safe_to_define___extensions__ = yes &&
4604 cat >>confdefs.h <<\_ACEOF
4605 #define __EXTENSIONS__ 1
4606 _ACEOF
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4610 _ACEOF
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4614 _ACEOF
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4631 main ()
4635 return 0;
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 has_option=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 has_option=no
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS="$SAVE_CFLAGS"
4670 unset has_option
4671 unset SAVE_CFLAGS
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4677 LN_S=$as_ln_s
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4695 CPP=
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4704 ac_preproc_ok=false
4705 for ac_c_preproc_warn_flag in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724 Syntax error
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 }; then
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4748 continue
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 }; then
4779 # Broken: success on invalid input.
4780 continue
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4786 ac_preproc_ok=:
4787 break
4790 rm -f conftest.err conftest.$ac_ext
4792 done
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then
4796 break
4799 done
4800 ac_cv_prog_CPP=$CPP
4803 CPP=$ac_cv_prog_CPP
4804 else
4805 ac_cv_prog_CPP=$CPP
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (ac_try="$ac_cpp conftest.$ac_ext"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 }; then
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4853 continue
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 # Broken: success on invalid input.
4885 continue
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then
4902 else
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4922 # AIX /bin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 # Account for people who put trailing slashes in PATH elements.
4941 case $as_dir/ in
4942 ./ | .// | /cC/* | \
4943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4945 /usr/ucb/* ) ;;
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4949 # by default.
4950 for ac_prog in ginstall scoinst install; do
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4961 else
4962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4963 break 3
4966 done
4967 done
4969 esac
4970 done
4971 IFS=$as_save_IFS
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL=$ac_cv_path_install
4977 else
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 RANLIB=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5029 else
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib; ac_word=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5069 else
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x; then
5075 RANLIB=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078 yes:)
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 RANLIB=$ac_ct_RANLIB
5089 else
5090 RANLIB="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 case $INSTALL_INFO in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5122 esac
5124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5128 else
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 case $INSTALL_INFO in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in /usr/sbin
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5162 esac
5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5168 else
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 case $INSTALL_INFO in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in /sbin
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5203 esac
5205 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy gzip; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 case $GZIP_PROG in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5243 esac
5245 GZIP_PROG=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5249 else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo; ac_word=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 case $MAKEINFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5287 esac
5289 MAKEINFO=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5292 echo "${ECHO_T}$MAKEINFO" >&6; }
5293 else
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 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
5301 MAKEINFO=no
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a CVS checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from CVS, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a CVS checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5315 MAKEINFO=off
5316 elif ! test -e $srcdir/info/emacs; then
5317 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " >&5
5321 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5325 { (exit 1); exit 1; }; }
5330 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5331 then
5332 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5335 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5336 then
5337 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5341 late_LDFLAGS=$LDFLAGS
5342 if test "$GCC" = yes; then
5343 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5344 else
5345 LDFLAGS="$LDFLAGS -znocombreloc"
5348 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5349 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5351 main(){return 0;}
5352 _ACEOF
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (ac_try="$ac_link"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 LDFLAGS=$late_LDFLAGS
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5385 #### Extract some information from the operating system and machine files.
5387 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&5
5390 echo "$as_me: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&6;}
5394 ### First figure out CFLAGS (which we use for running the compiler here)
5395 ### and REAL_CFLAGS (which we use for real compilation).
5396 ### The two are the same except on a few systems, where they are made
5397 ### different to work around various lossages. For example,
5398 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5399 ### as implying static linking.
5401 ### If the CFLAGS env var is specified, we use that value
5402 ### instead of the default.
5404 ### It's not important that this name contain the PID; you can't run
5405 ### two configures in the same directory and have anything work
5406 ### anyway.
5407 tempcname="conftest.c"
5409 echo '
5410 #include "'${srcdir}'/src/'${opsysfile}'"
5411 #include "'${srcdir}'/src/'${machfile}'"
5412 #ifndef LIBS_MACHINE
5413 #define LIBS_MACHINE
5414 #endif
5415 #ifndef LIBS_SYSTEM
5416 #define LIBS_SYSTEM
5417 #endif
5418 #ifndef C_SWITCH_SYSTEM
5419 #define C_SWITCH_SYSTEM
5420 #endif
5421 #ifndef C_SWITCH_MACHINE
5422 #define C_SWITCH_MACHINE
5423 #endif
5424 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5425 configure___ c_switch_system=C_SWITCH_SYSTEM
5426 configure___ c_switch_machine=C_SWITCH_MACHINE
5428 #ifndef LIB_X11_LIB
5429 #define LIB_X11_LIB -lX11
5430 #endif
5432 #ifndef LIBX11_SYSTEM
5433 #define LIBX11_SYSTEM
5434 #endif
5435 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5437 #ifdef UNEXEC
5438 configure___ unexec=UNEXEC
5439 #else
5440 configure___ unexec=unexec.o
5441 #endif
5443 #ifdef SYSTEM_MALLOC
5444 configure___ system_malloc=yes
5445 #else
5446 configure___ system_malloc=no
5447 #endif
5449 #ifdef USE_MMAP_FOR_BUFFERS
5450 configure___ use_mmap_for_buffers=yes
5451 #else
5452 configure___ use_mmap_for_buffers=no
5453 #endif
5455 #ifndef C_DEBUG_SWITCH
5456 #define C_DEBUG_SWITCH -g
5457 #endif
5459 #ifndef C_OPTIMIZE_SWITCH
5460 #ifdef __GNUC__
5461 #define C_OPTIMIZE_SWITCH -O2
5462 #else
5463 #define C_OPTIMIZE_SWITCH -O
5464 #endif
5465 #endif
5467 #ifndef C_WARNINGS_SWITCH
5468 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5469 #endif
5471 #ifndef LD_SWITCH_MACHINE
5472 #define LD_SWITCH_MACHINE
5473 #endif
5475 #ifndef LD_SWITCH_SYSTEM
5476 #define LD_SWITCH_SYSTEM
5477 #endif
5479 #ifndef LD_SWITCH_X_SITE_AUX
5480 #define LD_SWITCH_X_SITE_AUX
5481 #endif
5483 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5484 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5486 #ifdef THIS_IS_CONFIGURE
5488 /* Get the CFLAGS for tests in configure. */
5489 #ifdef __GNUC__
5490 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5491 #else
5492 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5493 #endif
5495 #else /* not THIS_IS_CONFIGURE */
5497 /* Get the CFLAGS for real compilation. */
5498 #ifdef __GNUC__
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5500 #else
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5502 #endif
5504 #endif /* not THIS_IS_CONFIGURE */
5505 ' > ${tempcname}
5507 # The value of CPP is a quoted variable reference, so we need to do this
5508 # to get its actual value...
5509 CPP=`eval "echo $CPP"`
5510 eval `${CPP} -Isrc ${tempcname} \
5511 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 if test "x$SPECIFIED_CFLAGS" = x; then
5513 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5514 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5515 else
5516 REAL_CFLAGS="$CFLAGS"
5518 rm ${tempcname}
5520 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5522 ### Make sure subsequent tests use flags consistent with the build flags.
5524 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5525 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5526 else
5527 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5532 # Check whether --enable-largefile was given.
5533 if test "${enable_largefile+set}" = set; then
5534 enableval=$enable_largefile;
5537 if test "$enable_largefile" != no; then
5539 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5540 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 ac_cv_sys_largefile_CC=no
5545 if test "$GCC" != yes; then
5546 ac_save_CC=$CC
5547 while :; do
5548 # IRIX 6.2 and later do not support large files by default,
5549 # so use the C compiler's -n32 option if that helps.
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5564 ? 1 : -1];
5566 main ()
5570 return 0;
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
5590 break
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5598 rm -f core conftest.err conftest.$ac_objext
5599 CC="$CC -n32"
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_largefile_CC=' -n32'; break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f core conftest.err conftest.$ac_objext
5626 break
5627 done
5628 CC=$ac_save_CC
5629 rm -f conftest.$ac_ext
5632 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5634 if test "$ac_cv_sys_largefile_CC" != no; then
5635 CC=$CC$ac_cv_sys_largefile_CC
5638 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 while :; do
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5658 ? 1 : -1];
5660 main ()
5664 return 0;
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_cv_sys_file_offset_bits=no; break
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5708 ? 1 : -1];
5710 main ()
5714 return 0;
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_sys_file_offset_bits=64; break
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_cv_sys_file_offset_bits=unknown
5744 break
5745 done
5747 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5748 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5749 case $ac_cv_sys_file_offset_bits in #(
5750 no | unknown) ;;
5752 cat >>confdefs.h <<_ACEOF
5753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5754 _ACEOF
5756 esac
5757 rm -f conftest*
5758 if test $ac_cv_sys_file_offset_bits = unknown; then
5759 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5760 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5761 if test "${ac_cv_sys_large_files+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 while :; do
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5779 ? 1 : -1];
5781 main ()
5785 return 0;
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.$ac_objext; then
5805 ac_cv_sys_large_files=no; break
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #define _LARGE_FILES 1
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5829 ? 1 : -1];
5831 main ()
5835 return 0;
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_cv_sys_large_files=1; break
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5865 break
5866 done
5868 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5869 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5871 no | unknown) ;;
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5875 _ACEOF
5877 esac
5878 rm -f conftest*
5884 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5885 ### be located in either /usr/lib64 or /usr/lib.
5886 case "${canonical}" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5888 if test -d /usr/lib64; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIB64_DIR 1
5892 _ACEOF
5895 esac
5900 if test "${with_sound}" != "no"; then
5901 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_res=`eval echo '${'$as_ac_Header'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5917 else
5918 # Is the header compilable?
5919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 #include <$ac_header>
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_header_compiler=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_header_compiler=no
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6; }
5959 # Is the header present?
5960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5969 _ACEOF
5970 if { (ac_try="$ac_cpp conftest.$ac_ext"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null && {
5983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 }; then
5986 ac_header_preproc=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_header_preproc=no
5994 rm -f conftest.err conftest.$ac_ext
5995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6; }
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6000 yes:no: )
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005 ac_header_preproc=yes
6007 no:yes:* )
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6022 esac
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 eval "$as_ac_Header=\$ac_header_preproc"
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 _ACEOF
6042 done
6044 # Emulation library used on NetBSD.
6045 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6046 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6047 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lossaudio $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6062 #ifdef __cplusplus
6063 extern "C"
6064 #endif
6065 char _oss_ioctl ();
6067 main ()
6069 return _oss_ioctl ();
6071 return 0;
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (ac_try="$ac_link"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_link") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest$ac_exeext &&
6091 $as_test_x conftest$ac_exeext; then
6092 ac_cv_lib_ossaudio__oss_ioctl=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_lib_ossaudio__oss_ioctl=no
6100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6106 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6107 LIBSOUND=-lossaudio
6108 else
6109 LIBSOUND=
6114 ALSA_REQUIRED=1.0.0
6115 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6117 succeeded=no
6119 # Extract the first word of "pkg-config", so it can be a program name with args.
6120 set dummy pkg-config; ac_word=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 case $PKG_CONFIG in
6127 [\\/]* | ?:[\\/]*)
6128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6142 done
6143 done
6144 IFS=$as_save_IFS
6146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6148 esac
6150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6151 if test -n "$PKG_CONFIG"; then
6152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6154 else
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6161 if test "$PKG_CONFIG" = "no" ; then
6162 HAVE_ALSA=no
6163 else
6164 PKG_CONFIG_MIN_VERSION=0.9.0
6165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6166 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6167 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6169 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6170 { echo "$as_me:$LINENO: result: yes" >&5
6171 echo "${ECHO_T}yes" >&6; }
6172 succeeded=yes
6174 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6175 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6176 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6177 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6178 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6180 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6181 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6182 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6184 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 ALSA_CFLAGS=""
6189 ALSA_LIBS=""
6190 ## If we have a custom action on failure, don't print errors, but
6191 ## do set a variable so people can do so.
6192 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6198 else
6199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6204 if test $succeeded = yes; then
6205 HAVE_ALSA=yes
6206 else
6207 HAVE_ALSA=no
6210 if test $HAVE_ALSA = yes; then
6211 SAVE_CFLAGS="$CFLAGS"
6212 SAVE_LDFLAGS="$LDFLAGS"
6213 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6214 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <asoundlib.h>
6223 main ()
6225 snd_lib_error_set_handler (0);
6227 return 0;
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 emacs_alsa_normal=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 emacs_alsa_normal=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "$emacs_alsa_normal" != yes; then
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6265 main ()
6267 snd_lib_error_set_handler (0);
6269 return 0;
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
6289 emacs_alsa_subdir=yes
6290 else
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6294 emacs_alsa_subdir=no
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 if test "$emacs_alsa_subdir" != yes; then
6299 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6300 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6301 { (exit 1); exit 1; }; }
6303 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6306 CFLAGS="$SAVE_CFLAGS"
6307 LDFLAGS="$SAVE_LDFLAGS"
6308 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6309 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6311 cat >>confdefs.h <<\_ACEOF
6312 #define HAVE_ALSA 1
6313 _ACEOF
6344 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6345 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6346 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6347 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6348 sys/utsname.h pwd.h
6350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_res=`eval echo '${'$as_ac_Header'}'`
6358 { echo "$as_me:$LINENO: result: $ac_res" >&5
6359 echo "${ECHO_T}$ac_res" >&6; }
6360 else
6361 # Is the header compilable?
6362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_header_compiler=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6400 echo "${ECHO_T}$ac_header_compiler" >&6; }
6402 # Is the header present?
6403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <$ac_header>
6412 _ACEOF
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev/null && {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 }; then
6429 ac_header_preproc=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_header_preproc=no
6437 rm -f conftest.err conftest.$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6; }
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6443 yes:no: )
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc=yes
6450 no:yes:* )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6465 esac
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 eval "$as_ac_Header=\$ac_header_preproc"
6473 ac_res=`eval echo '${'$as_ac_Header'}'`
6474 { echo "$as_me:$LINENO: result: $ac_res" >&5
6475 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 _ACEOF
6485 done
6488 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6489 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/personality.h>
6498 main ()
6500 personality (PER_LINUX32)
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (ac_try="$ac_compile"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_cv_personality_linux32=yes
6523 else
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 emacs_cv_personality_linux32=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6532 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6534 if test $emacs_cv_personality_linux32 = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_PERSONALITY_LINUX32 1
6538 _ACEOF
6543 for ac_header in term.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <$ac_header>
6558 _ACEOF
6559 if { (ac_try="$ac_cpp conftest.$ac_ext"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev/null && {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 }; then
6575 eval "$as_ac_Header=yes"
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 eval "$as_ac_Header=no"
6583 rm -f conftest.err conftest.$ac_ext
6585 ac_res=`eval echo '${'$as_ac_Header'}'`
6586 { echo "$as_me:$LINENO: result: $ac_res" >&5
6587 echo "${ECHO_T}$ac_res" >&6; }
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6595 done
6597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <stdlib.h>
6609 #include <stdarg.h>
6610 #include <string.h>
6611 #include <float.h>
6614 main ()
6618 return 0;
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6623 case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 ac_cv_header_stdc=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test $ac_cv_header_stdc = yes; then
6649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <string.h>
6658 _ACEOF
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then
6662 else
6663 ac_cv_header_stdc=no
6665 rm -f conftest*
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <stdlib.h>
6679 _ACEOF
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "free" >/dev/null 2>&1; then
6683 else
6684 ac_cv_header_stdc=no
6686 rm -f conftest*
6690 if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692 if test "$cross_compiling" = yes; then
6694 else
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 #include <ctype.h>
6702 #include <stdlib.h>
6703 #if ((' ' & 0x0FF) == 0x020)
6704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6706 #else
6707 # define ISLOWER(c) \
6708 (('a' <= (c) && (c) <= 'i') \
6709 || ('j' <= (c) && (c) <= 'r') \
6710 || ('s' <= (c) && (c) <= 'z'))
6711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6712 #endif
6714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6716 main ()
6718 int i;
6719 for (i = 0; i < 256; i++)
6720 if (XOR (islower (i), ISLOWER (i))
6721 || toupper (i) != TOUPPER (i))
6722 return 2;
6723 return 0;
6725 _ACEOF
6726 rm -f conftest$ac_exeext
6727 if { (ac_try="$ac_link"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_link") 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6737 { (case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_try") 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6747 else
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ( exit $ac_status )
6753 ac_cv_header_stdc=no
6755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6763 if test $ac_cv_header_stdc = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STDC_HEADERS 1
6767 _ACEOF
6771 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_time+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/time.h>
6784 #include <time.h>
6787 main ()
6789 if ((struct tm *) 0)
6790 return 0;
6792 return 0;
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_header_time=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_header_time=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6823 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6824 if test $ac_cv_header_time = yes; then
6826 cat >>confdefs.h <<\_ACEOF
6827 #define TIME_WITH_SYS_TIME 1
6828 _ACEOF
6832 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6845 main ()
6847 #ifndef sys_siglist
6848 (void) sys_siglist;
6849 #endif
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl_sys_siglist=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_have_decl_sys_siglist=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6884 if test $ac_cv_have_decl_sys_siglist = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_SYS_SIGLIST 1
6888 _ACEOF
6891 else
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 0
6894 _ACEOF
6900 if test $ac_cv_have_decl_sys_siglist != yes; then
6901 # For Tru64, at least:
6902 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6903 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6904 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6915 main ()
6917 #ifndef __sys_siglist
6918 (void) __sys_siglist;
6919 #endif
6922 return 0;
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.$ac_objext; then
6942 ac_cv_have_decl___sys_siglist=yes
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6947 ac_cv_have_decl___sys_siglist=no
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6953 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6954 if test $ac_cv_have_decl___sys_siglist = yes; then
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_DECL___SYS_SIGLIST 1
6958 _ACEOF
6961 else
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 0
6964 _ACEOF
6970 if test $ac_cv_have_decl___sys_siglist = yes; then
6972 cat >>confdefs.h <<\_ACEOF
6973 #define sys_siglist __sys_siglist
6974 _ACEOF
6978 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/wait.h>
6991 #ifndef WEXITSTATUS
6992 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6993 #endif
6994 #ifndef WIFEXITED
6995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6996 #endif
6999 main ()
7001 int s;
7002 wait (&s);
7003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7005 return 0;
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_sys_wait_h=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_header_sys_wait_h=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7037 if test $ac_cv_header_sys_wait_h = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_SYS_WAIT_H 1
7041 _ACEOF
7046 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7047 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7048 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #ifdef TIME_WITH_SYS_TIME
7058 #include <sys/time.h>
7059 #include <time.h>
7060 #else
7061 #ifdef HAVE_SYS_TIME_H
7062 #include <sys/time.h>
7063 #else
7064 #include <time.h>
7065 #endif
7066 #endif
7067 #ifdef HAVE_UTIME_H
7068 #include <utime.h>
7069 #endif
7071 main ()
7073 static struct utimbuf x; x.actime = x.modtime;
7075 return 0;
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
7095 emacs_cv_struct_utimbuf=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7100 emacs_cv_struct_utimbuf=no
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7106 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7107 if test $emacs_cv_struct_utimbuf = yes; then
7109 cat >>confdefs.h <<\_ACEOF
7110 #define HAVE_STRUCT_UTIMBUF 1
7111 _ACEOF
7115 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7116 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_signal+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7127 #include <signal.h>
7130 main ()
7132 return *(signal (0, 0)) (0) == 1;
7134 return 0;
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7139 case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_type_signal=int
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_type_signal=void
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7165 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7167 cat >>confdefs.h <<_ACEOF
7168 #define RETSIGTYPE $ac_cv_type_signal
7169 _ACEOF
7173 { echo "$as_me:$LINENO: checking for speed_t" >&5
7174 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7175 if test "${emacs_cv_speed_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <termios.h>
7186 main ()
7188 speed_t x = 1;
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 emacs_cv_speed_t=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 emacs_cv_speed_t=no
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7221 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7222 if test $emacs_cv_speed_t = yes; then
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_SPEED_T 1
7226 _ACEOF
7230 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7231 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7232 if test "${emacs_cv_struct_timeval+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #ifdef TIME_WITH_SYS_TIME
7242 #include <sys/time.h>
7243 #include <time.h>
7244 #else
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7247 #else
7248 #include <time.h>
7249 #endif
7250 #endif
7252 main ()
7254 static struct timeval x; x.tv_sec = x.tv_usec;
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_timeval=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 emacs_cv_struct_timeval=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7288 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7289 if test $emacs_cv_struct_timeval = yes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_TIMEVAL 1
7293 _ACEOF
7297 { echo "$as_me:$LINENO: checking for struct exception" >&5
7298 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7299 if test "${emacs_cv_struct_exception+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <math.h>
7310 main ()
7312 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7314 return 0;
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 emacs_cv_struct_exception=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7339 emacs_cv_struct_exception=no
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7345 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7346 HAVE_EXCEPTION=$emacs_cv_struct_exception
7347 if test $emacs_cv_struct_exception != yes; then
7349 cat >>confdefs.h <<\_ACEOF
7350 #define NO_MATHERR 1
7351 _ACEOF
7356 for ac_header in sys/socket.h
7358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_res=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7368 else
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7420 _ACEOF
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7422 case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev/null && {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 }; then
7437 ac_header_preproc=yes
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_header_preproc=no
7445 rm -f conftest.err conftest.$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7451 yes:no: )
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc=yes
7458 no:yes:* )
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7473 esac
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 eval "$as_ac_Header=\$ac_header_preproc"
7481 ac_res=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7489 _ACEOF
7493 done
7496 for ac_header in net/if.h
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7513 #endif
7515 #include <$ac_header>
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (ac_try="$ac_compile"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 eval "$as_ac_Header=yes"
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 eval "$as_ac_Header=no"
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7550 _ACEOF
7554 done
7557 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7559 if test "${ac_cv_struct_tm+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7569 #include <time.h>
7572 main ()
7574 struct tm tm;
7575 int *p = &tm.tm_sec;
7576 return !p;
7578 return 0;
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7583 case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7598 ac_cv_struct_tm=time.h
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 ac_cv_struct_tm=sys/time.h
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7609 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7610 if test $ac_cv_struct_tm = sys/time.h; then
7612 cat >>confdefs.h <<\_ACEOF
7613 #define TM_IN_SYS_TIME 1
7614 _ACEOF
7618 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7619 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7620 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <$ac_cv_struct_tm>
7634 main ()
7636 static struct tm ac_aggr;
7637 if (ac_aggr.tm_zone)
7638 return 0;
7640 return 0;
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (ac_try="$ac_compile"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_member_struct_tm_tm_zone=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <$ac_cv_struct_tm>
7676 main ()
7678 static struct tm ac_aggr;
7679 if (sizeof ac_aggr.tm_zone)
7680 return 0;
7682 return 0;
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_cv_member_struct_tm_tm_zone=yes
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_member_struct_tm_tm_zone=no
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_STRUCT_TM_TM_ZONE 1
7721 _ACEOF
7726 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_TM_ZONE 1
7730 _ACEOF
7732 else
7733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7734 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7735 if test "${ac_cv_have_decl_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <time.h>
7747 main ()
7749 #ifndef tzname
7750 (void) tzname;
7751 #endif
7754 return 0;
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_have_decl_tzname=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_have_decl_tzname=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7786 if test $ac_cv_have_decl_tzname = yes; then
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_TZNAME 1
7790 _ACEOF
7793 else
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 0
7796 _ACEOF
7802 { echo "$as_me:$LINENO: checking for tzname" >&5
7803 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7804 if test "${ac_cv_var_tzname+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h. */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 #include <time.h>
7814 #if !HAVE_DECL_TZNAME
7815 extern char *tzname[];
7816 #endif
7819 main ()
7821 return tzname[0][0];
7823 return 0;
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest$ac_exeext &&
7843 $as_test_x conftest$ac_exeext; then
7844 ac_cv_var_tzname=yes
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7849 ac_cv_var_tzname=no
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7856 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7857 if test $ac_cv_var_tzname = yes; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_TZNAME 1
7861 _ACEOF
7866 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7867 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7868 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #include <time.h>
7880 main ()
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_gmtoff)
7884 return 0;
7886 return 0;
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_gmtoff=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <time.h>
7920 main ()
7922 static struct tm ac_aggr;
7923 if (sizeof ac_aggr.tm_gmtoff)
7924 return 0;
7926 return 0;
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_tm_tm_gmtoff=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 ac_cv_member_struct_tm_tm_gmtoff=no
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7961 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7963 cat >>confdefs.h <<\_ACEOF
7964 #define HAVE_TM_GMTOFF 1
7965 _ACEOF
7969 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7970 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7971 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #if HAVE_SYS_SOCKET_H
7982 #include <sys/socket.h>
7983 #endif
7984 #if HAVE_NET_IF_H
7985 #include <net/if.h>
7986 #endif
7989 main ()
7991 static struct ifreq ac_aggr;
7992 if (ac_aggr.ifr_flags)
7993 return 0;
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_cv_member_struct_ifreq_ifr_flags=yes
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8029 #endif
8030 #if HAVE_NET_IF_H
8031 #include <net/if.h>
8032 #endif
8035 main ()
8037 static struct ifreq ac_aggr;
8038 if (sizeof ac_aggr.ifr_flags)
8039 return 0;
8041 return 0;
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_flags=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_member_struct_ifreq_ifr_flags=no
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8076 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8080 _ACEOF
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8098 #endif
8099 #if HAVE_NET_IF_H
8100 #include <net/if.h>
8101 #endif
8104 main ()
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_hwaddr)
8108 return 0;
8110 return 0;
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8150 main ()
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_hwaddr)
8154 return 0;
8156 return 0;
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8195 _ACEOF
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8213 #endif
8214 #if HAVE_NET_IF_H
8215 #include <net/if.h>
8216 #endif
8219 main ()
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_netmask)
8223 return 0;
8225 return 0;
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_netmask=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8265 main ()
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_netmask)
8269 return 0;
8271 return 0;
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_netmask=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_netmask=no
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8310 _ACEOF
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8328 #endif
8329 #if HAVE_NET_IF_H
8330 #include <net/if.h>
8331 #endif
8334 main ()
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_broadaddr)
8338 return 0;
8340 return 0;
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8380 main ()
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_broadaddr)
8384 return 0;
8386 return 0;
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8425 _ACEOF
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8449 main ()
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_addr)
8453 return 0;
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_addr=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8489 #endif
8490 #if HAVE_NET_IF_H
8491 #include <net/if.h>
8492 #endif
8495 main ()
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_addr)
8499 return 0;
8501 return 0;
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_addr=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_addr=no
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8540 _ACEOF
8547 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8549 if test "$ac_cv_prog_cc_c89" != no; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8553 cat >>confdefs.h <<\_ACEOF
8554 #define PROTOTYPES 1
8555 _ACEOF
8558 cat >>confdefs.h <<\_ACEOF
8559 #define __PROTOTYPES 1
8560 _ACEOF
8562 else
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8567 { echo "$as_me:$LINENO: checking for working volatile" >&5
8568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_volatile+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8580 main ()
8583 volatile int x;
8584 int * volatile y = (int *) 0;
8585 return !x && !y;
8587 return 0;
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_c_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_c_volatile=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_cv_c_volatile=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8618 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 cat >>confdefs.h <<\_ACEOF
8622 #define volatile
8623 _ACEOF
8627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_const+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8640 main ()
8642 /* FIXME: Include the comments suggested by Paul. */
8643 #ifndef __cplusplus
8644 /* Ultrix mips cc rejects this. */
8645 typedef int charset[2];
8646 const charset cs;
8647 /* SunOS 4.1.1 cc rejects this. */
8648 char const *const *pcpcc;
8649 char **ppc;
8650 /* NEC SVR4.0.2 mips cc rejects this. */
8651 struct point {int x, y;};
8652 static struct point const zero = {0,0};
8653 /* AIX XL C 1.02.0.0 rejects this.
8654 It does not let you subtract one const X* pointer from another in
8655 an arm of an if-expression whose if-part is not a constant
8656 expression */
8657 const char *g = "string";
8658 pcpcc = &g + (g ? g-g : 0);
8659 /* HPUX 7.0 cc rejects these. */
8660 ++pcpcc;
8661 ppc = (char**) pcpcc;
8662 pcpcc = (char const *const *) ppc;
8663 { /* SCO 3.2v4 cc rejects this. */
8664 char *t;
8665 char const *s = 0 ? (char *) 0 : (char const *) 0;
8667 *t++ = 0;
8668 if (s) return 0;
8670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8671 int x[] = {25, 17};
8672 const int *foo = &x[0];
8673 ++foo;
8675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8676 typedef const int *iptr;
8677 iptr p = 0;
8678 ++p;
8680 { /* AIX XL C 1.02.0.0 rejects this saying
8681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8682 struct s { int j; const int *ap[3]; };
8683 struct s *b; b->j = 5;
8685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8686 const int foo = 10;
8687 if (!foo) return 0;
8689 return !cs[0] && !zero.x;
8690 #endif
8693 return 0;
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 ac_cv_c_const=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8718 ac_cv_c_const=no
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8725 if test $ac_cv_c_const = no; then
8727 cat >>confdefs.h <<\_ACEOF
8728 #define const
8729 _ACEOF
8733 { echo "$as_me:$LINENO: checking for void * support" >&5
8734 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8735 if test "${emacs_cv_void_star+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8746 main ()
8748 void * foo;
8750 return 0;
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (ac_try="$ac_compile"
8755 case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 emacs_cv_void_star=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 emacs_cv_void_star=no
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8781 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8782 if test $emacs_cv_void_star = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define POINTER_TYPE void
8785 _ACEOF
8787 else
8788 cat >>confdefs.h <<\_ACEOF
8789 #define POINTER_TYPE char
8790 _ACEOF
8798 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8800 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 cat >conftest.make <<\_ACEOF
8805 SHELL = /bin/sh
8806 all:
8807 @echo '@@@%%%=$(MAKE)=@@@%%%'
8808 _ACEOF
8809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8810 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8811 *@@@%%%=?*=@@@%%%*)
8812 eval ac_cv_prog_make_${ac_make}_set=yes;;
8814 eval ac_cv_prog_make_${ac_make}_set=no;;
8815 esac
8816 rm -f conftest.make
8818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8821 SET_MAKE=
8822 else
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 SET_MAKE="MAKE=${MAKE-make}"
8829 { echo "$as_me:$LINENO: checking for long file names" >&5
8830 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8831 if test "${ac_cv_sys_long_file_names+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_cv_sys_long_file_names=yes
8835 # Test for long file names in all the places we know might matter:
8836 # . the current directory, where building will happen
8837 # $prefix/lib where we will be installing things
8838 # $exec_prefix/lib likewise
8839 # $TMPDIR if set, where it might want to write temporary files
8840 # /tmp where it might want to write temporary files
8841 # /var/tmp likewise
8842 # /usr/tmp likewise
8843 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8844 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8845 # in the usual case where exec_prefix is '${prefix}'.
8846 case $ac_dir in #(
8847 . | /* | ?:[\\/]*) ;; #(
8848 *) continue;;
8849 esac
8850 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8851 ac_xdir=$ac_dir/cf$$
8852 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8853 ac_tf1=$ac_xdir/conftest9012345
8854 ac_tf2=$ac_xdir/conftest9012346
8855 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8856 ac_cv_sys_long_file_names=no
8857 rm -f -r "$ac_xdir" 2>/dev/null
8858 test $ac_cv_sys_long_file_names = no && break
8859 done
8861 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8862 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8863 if test $ac_cv_sys_long_file_names = yes; then
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_LONG_FILE_NAMES 1
8867 _ACEOF
8872 #### Choose a window system.
8874 { echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8878 # Check whether --with-x was given.
8879 if test "${with_x+set}" = set; then
8880 withval=$with_x;
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8886 have_x=disabled
8887 else
8888 case $x_includes,$x_libraries in #(
8889 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8890 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8891 { (exit 1); exit 1; }; };; #(
8892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -f -r conftest.dir
8898 if mkdir conftest.dir; then
8899 cd conftest.dir
8900 cat >Imakefile <<'_ACEOF'
8901 incroot:
8902 @echo incroot='${INCROOT}'
8903 usrlibdir:
8904 @echo usrlibdir='${USRLIBDIR}'
8905 libdir:
8906 @echo libdir='${LIBDIR}'
8907 _ACEOF
8908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8910 for ac_var in incroot usrlibdir libdir; do
8911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8912 done
8913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8914 for ac_extension in a so sl; do
8915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8917 ac_im_usrlibdir=$ac_im_libdir; break
8919 done
8920 # Screen out bogus values from the imake configuration. They are
8921 # bogus both because they are the default anyway, and because
8922 # using them would break gcc on systems where it needs fixed includes.
8923 case $ac_im_incroot in
8924 /usr/include) ac_x_includes= ;;
8925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8926 esac
8927 case $ac_im_usrlibdir in
8928 /usr/lib | /lib) ;;
8929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8930 esac
8932 cd ..
8933 rm -f -r conftest.dir
8936 # Standard set of common directories for X headers.
8937 # Check X11 before X11Rn because it is often a symlink to the current release.
8938 ac_x_header_dirs='
8939 /usr/X11/include
8940 /usr/X11R6/include
8941 /usr/X11R5/include
8942 /usr/X11R4/include
8944 /usr/include/X11
8945 /usr/include/X11R6
8946 /usr/include/X11R5
8947 /usr/include/X11R4
8949 /usr/local/X11/include
8950 /usr/local/X11R6/include
8951 /usr/local/X11R5/include
8952 /usr/local/X11R4/include
8954 /usr/local/include/X11
8955 /usr/local/include/X11R6
8956 /usr/local/include/X11R5
8957 /usr/local/include/X11R4
8959 /usr/X386/include
8960 /usr/x386/include
8961 /usr/XFree86/include/X11
8963 /usr/include
8964 /usr/local/include
8965 /usr/unsupported/include
8966 /usr/athena/include
8967 /usr/local/x11r5/include
8968 /usr/lpp/Xamples/include
8970 /usr/openwin/include
8971 /usr/openwin/share/include'
8973 if test "$ac_x_includes" = no; then
8974 # Guess where to find include files, by looking for Xlib.h.
8975 # First, try using that file with no special directory specified.
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <X11/Xlib.h>
8983 _ACEOF
8984 if { (ac_try="$ac_cpp conftest.$ac_ext"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev/null && {
8997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 }; then
9000 # We can compile using X headers with no special include directory.
9001 ac_x_includes=
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 for ac_dir in $ac_x_header_dirs; do
9007 if test -r "$ac_dir/X11/Xlib.h"; then
9008 ac_x_includes=$ac_dir
9009 break
9011 done
9014 rm -f conftest.err conftest.$ac_ext
9015 fi # $ac_x_includes = no
9017 if test "$ac_x_libraries" = no; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9021 ac_save_LIBS=$LIBS
9022 LIBS="-lX11 $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Xlib.h>
9031 main ()
9033 XrmInitialize ()
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9056 LIBS=$ac_save_LIBS
9057 # We can link X programs with no special library path.
9058 ac_x_libraries=
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 LIBS=$ac_save_LIBS
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r "$ac_dir/libX11.$ac_extension"; then
9069 ac_x_libraries=$ac_dir
9070 break 2
9072 done
9073 done
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi # $ac_x_libraries = no
9080 case $ac_x_includes,$ac_x_libraries in #(
9081 no,* | *,no | *\'*)
9082 # Didn't find X, or a directory has "'" in its name.
9083 ac_cv_have_x="have_x=no";; #(
9085 # Record where we found X for the cache.
9086 ac_cv_have_x="have_x=yes\
9087 ac_x_includes='$ac_x_includes'\
9088 ac_x_libraries='$ac_x_libraries'"
9089 esac
9091 ;; #(
9092 *) have_x=yes;;
9093 esac
9094 eval "$ac_cv_have_x"
9095 fi # $with_x != no
9097 if test "$have_x" != yes; then
9098 { echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6; }
9100 no_x=yes
9101 else
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes\
9107 ac_x_includes='$x_includes'\
9108 ac_x_libraries='$x_libraries'"
9109 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9110 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9113 if test "$no_x" = yes; then
9114 window_system=none
9115 else
9116 window_system=x11
9119 ## Workaround for bug in autoconf <= 2.62.
9120 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9121 ## No need to do anything special for these standard directories.
9122 ## This is an experiment, take it out if it causes problems.
9123 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9125 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9129 if test "${x_libraries}" != NONE; then
9130 if test -n "${x_libraries}"; then
9131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9134 x_default_search_path=""
9135 x_search_path=${x_libraries}
9136 if test -z "${x_search_path}"; then
9137 x_search_path=/usr/lib
9139 for x_library in `echo ${x_search_path}: | \
9140 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9141 x_search_path="\
9142 ${x_library}/X11/%L/%T/%N%C%S:\
9143 ${x_library}/X11/%l/%T/%N%C%S:\
9144 ${x_library}/X11/%T/%N%C%S:\
9145 ${x_library}/X11/%L/%T/%N%S:\
9146 ${x_library}/X11/%l/%T/%N%S:\
9147 ${x_library}/X11/%T/%N%S"
9148 if test x"${x_default_search_path}" = x; then
9149 x_default_search_path=${x_search_path}
9150 else
9151 x_default_search_path="${x_search_path}:${x_default_search_path}"
9153 done
9155 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9156 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9159 if test x"${x_includes}" = x; then
9160 bitmapdir=/usr/include/X11/bitmaps
9161 else
9162 # accumulate include directories that have X11 bitmap subdirectories
9163 bmd_acc="dummyval"
9164 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9165 if test -d "${bmd}/X11/bitmaps"; then
9166 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9168 if test -d "${bmd}/bitmaps"; then
9169 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9171 done
9172 if test ${bmd_acc} != "dummyval"; then
9173 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9177 HAVE_NS=no
9178 NS_IMPL_COCOA=no
9179 NS_IMPL_GNUSTEP=no
9180 tmp_CPPFLAGS="$CPPFLAGS"
9181 tmp_CFLAGS="$CFLAGS"
9182 CPPFLAGS="$CPPFLAGS -x objective-c"
9183 CFLAGS="$CFLAGS -x objective-c"
9184 if test "${with_ns}" != no; then
9185 if test "${opsys}" = darwin; then
9186 NS_IMPL_COCOA=yes
9187 ns_appdir=`pwd`/nextstep/Emacs.app
9188 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9189 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9190 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9191 elif test -f /etc/GNUstep/GNUstep.conf; then
9192 NS_IMPL_GNUSTEP=yes
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9196 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9197 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9198 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9199 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9200 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9201 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9202 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9205 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9206 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9207 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9208 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9213 else
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9216 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <AppKit/AppKit.h>
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.$ac_objext; then
9243 ac_header_compiler=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_header_compiler=no
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6; }
9255 # Is the header present?
9256 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9257 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <AppKit/AppKit.h>
9265 _ACEOF
9266 if { (ac_try="$ac_cpp conftest.$ac_ext"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null && {
9279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9281 }; then
9282 ac_header_preproc=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9296 yes:no: )
9297 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9303 no:yes:* )
9304 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9318 esac
9319 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9320 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9330 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9331 HAVE_NS=yes
9336 if test "${HAVE_NS}" = yes; then
9337 window_system=nextstep
9338 with_xft=no
9339 with_freetype=no
9340 # set up packaging dirs
9341 exec_prefix=${ns_appbindir}
9342 libexecdir=${ns_appbindir}/libexec
9343 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9344 prefix=${ns_appresdir}
9347 CFLAGS="$tmp_CFLAGS"
9348 CPPFLAGS="$tmp_CPPFLAGS"
9350 case "${window_system}" in
9351 x11 )
9352 HAVE_X_WINDOWS=yes
9353 HAVE_X11=yes
9354 case "${with_x_toolkit}" in
9355 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9356 motif ) USE_X_TOOLKIT=MOTIF ;;
9357 gtk ) with_gtk=yes
9358 USE_X_TOOLKIT=none ;;
9359 no ) USE_X_TOOLKIT=none ;;
9360 * ) USE_X_TOOLKIT=maybe ;;
9361 esac
9363 nextstep | none )
9364 HAVE_X_WINDOWS=no
9365 HAVE_X11=no
9366 USE_X_TOOLKIT=none
9368 esac
9370 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9371 # Extract the first word of "X", so it can be a program name with args.
9372 set dummy X; ac_word=$2
9373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9375 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 if test -n "$HAVE_XSERVER"; then
9379 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9380 else
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9384 IFS=$as_save_IFS
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_HAVE_XSERVER="true"
9389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 break 2
9392 done
9393 done
9394 IFS=$as_save_IFS
9396 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9399 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9400 if test -n "$HAVE_XSERVER"; then
9401 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9402 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9403 else
9404 { echo "$as_me:$LINENO: result: no" >&5
9405 echo "${ECHO_T}no" >&6; }
9409 if test "$HAVE_XSERVER" = true ||
9410 test -n "$DISPLAY" ||
9411 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9412 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9413 were found. You should install the relevant development files for X
9414 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9415 sure you have development files for image handling, i.e.
9416 tiff, gif, jpeg, png and xpm.
9417 If you are sure you want Emacs compiled without X window support, pass
9418 --without-x
9419 to configure." >&5
9420 echo "$as_me: error: You seem to be running X, but no X development libraries
9421 were found. You should install the relevant development files for X
9422 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9423 sure you have development files for image handling, i.e.
9424 tiff, gif, jpeg, png and xpm.
9425 If you are sure you want Emacs compiled without X window support, pass
9426 --without-x
9427 to configure." >&2;}
9428 { (exit 1); exit 1; }; }
9432 ### If we're using X11, we should use the X menu package.
9433 HAVE_MENUS=no
9434 case ${HAVE_X11} in
9435 yes ) HAVE_MENUS=yes ;;
9436 esac
9438 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9439 # Assume not, until told otherwise.
9440 GNU_MALLOC=yes
9441 doug_lea_malloc=yes
9442 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9443 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9444 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455 #define malloc_get_state innocuous_malloc_get_state
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char malloc_get_state (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9462 #ifdef __STDC__
9463 # include <limits.h>
9464 #else
9465 # include <assert.h>
9466 #endif
9468 #undef malloc_get_state
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char malloc_get_state ();
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9481 choke me
9482 #endif
9485 main ()
9487 return malloc_get_state ();
9489 return 0;
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9494 case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext &&
9509 $as_test_x conftest$ac_exeext; then
9510 ac_cv_func_malloc_get_state=yes
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_func_malloc_get_state=no
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519 conftest$ac_exeext conftest.$ac_ext
9521 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9522 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9523 if test $ac_cv_func_malloc_get_state = yes; then
9525 else
9526 doug_lea_malloc=no
9529 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9530 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define malloc_set_state innocuous_malloc_set_state
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char malloc_set_state (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9549 #ifdef __STDC__
9550 # include <limits.h>
9551 #else
9552 # include <assert.h>
9553 #endif
9555 #undef malloc_set_state
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char malloc_set_state ();
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9568 choke me
9569 #endif
9572 main ()
9574 return malloc_set_state ();
9576 return 0;
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 ac_cv_func_malloc_set_state=yes
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_func_malloc_set_state=no
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9609 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9610 if test $ac_cv_func_malloc_set_state = yes; then
9612 else
9613 doug_lea_malloc=no
9616 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9617 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9618 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 extern void (* __after_morecore_hook)();
9629 main ()
9631 __after_morecore_hook = 0
9633 return 0;
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9638 case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641 esac
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest$ac_exeext &&
9653 $as_test_x conftest$ac_exeext; then
9654 emacs_cv_var___after_morecore_hook=yes
9655 else
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 emacs_cv_var___after_morecore_hook=no
9662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9663 conftest$ac_exeext conftest.$ac_ext
9665 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9666 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9667 if test $emacs_cv_var___after_morecore_hook = no; then
9668 doug_lea_malloc=no
9670 if test "${system_malloc}" = "yes"; then
9671 GNU_MALLOC=no
9672 GNU_MALLOC_reason="
9673 (The GNU allocators don't work with this system configuration.)"
9675 if test "$doug_lea_malloc" = "yes" ; then
9676 if test "$GNU_MALLOC" = yes ; then
9677 GNU_MALLOC_reason="
9678 (Using Doug Lea's new malloc from the GNU C Library.)"
9681 cat >>confdefs.h <<\_ACEOF
9682 #define DOUG_LEA_MALLOC 1
9683 _ACEOF
9687 if test x"${REL_ALLOC}" = x; then
9688 REL_ALLOC=${GNU_MALLOC}
9694 for ac_header in stdlib.h unistd.h
9696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 ac_res=`eval echo '${'$as_ac_Header'}'`
9704 { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9706 else
9707 # Is the header compilable?
9708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 #include <$ac_header>
9718 _ACEOF
9719 rm -f conftest.$ac_objext
9720 if { (ac_try="$ac_compile"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_compile") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest.$ac_objext; then
9736 ac_header_compiler=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 echo "${ECHO_T}$ac_header_compiler" >&6; }
9748 # Is the header present?
9749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <$ac_header>
9758 _ACEOF
9759 if { (ac_try="$ac_cpp conftest.$ac_ext"
9760 case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } >/dev/null && {
9772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 }; then
9775 ac_header_preproc=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 ac_header_preproc=no
9783 rm -f conftest.err conftest.$ac_ext
9784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9785 echo "${ECHO_T}$ac_header_preproc" >&6; }
9787 # So? What about this header?
9788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9789 yes:no: )
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9794 ac_header_preproc=yes
9796 no:yes:* )
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9811 esac
9812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817 eval "$as_ac_Header=\$ac_header_preproc"
9819 ac_res=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h <<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 _ACEOF
9831 done
9834 for ac_func in getpagesize
9836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850 #define $ac_func innocuous_$ac_func
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9857 #ifdef __STDC__
9858 # include <limits.h>
9859 #else
9860 # include <assert.h>
9861 #endif
9863 #undef $ac_func
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9868 #ifdef __cplusplus
9869 extern "C"
9870 #endif
9871 char $ac_func ();
9872 /* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875 #if defined __stub_$ac_func || defined __stub___$ac_func
9876 choke me
9877 #endif
9880 main ()
9882 return $ac_func ();
9884 return 0;
9886 _ACEOF
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9889 case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892 esac
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 eval "$as_ac_var=yes"
9906 else
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 eval "$as_ac_var=no"
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9916 ac_res=`eval echo '${'$as_ac_var'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918 echo "${ECHO_T}$ac_res" >&6; }
9919 if test `eval echo '${'$as_ac_var'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9922 _ACEOF
9925 done
9927 { echo "$as_me:$LINENO: checking for working mmap" >&5
9928 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9929 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932 if test "$cross_compiling" = yes; then
9933 ac_cv_func_mmap_fixed_mapped=no
9934 else
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h. */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 $ac_includes_default
9942 /* malloc might have been renamed as rpl_malloc. */
9943 #undef malloc
9945 /* Thanks to Mike Haertel and Jim Avera for this test.
9946 Here is a matrix of mmap possibilities:
9947 mmap private not fixed
9948 mmap private fixed at somewhere currently unmapped
9949 mmap private fixed at somewhere already mapped
9950 mmap shared not fixed
9951 mmap shared fixed at somewhere currently unmapped
9952 mmap shared fixed at somewhere already mapped
9953 For private mappings, we should verify that changes cannot be read()
9954 back from the file, nor mmap's back from the file at a different
9955 address. (There have been systems where private was not correctly
9956 implemented like the infamous i386 svr4.0, and systems where the
9957 VM page cache was not coherent with the file system buffer cache
9958 like early versions of FreeBSD and possibly contemporary NetBSD.)
9959 For shared mappings, we should conversely verify that changes get
9960 propagated back to all the places they're supposed to be.
9962 Grep wants private fixed already mapped.
9963 The main things grep needs to know about mmap are:
9964 * does it exist and is it safe to write into the mmap'd area
9965 * how to use it (BSD variants) */
9967 #include <fcntl.h>
9968 #include <sys/mman.h>
9970 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9971 char *malloc ();
9972 #endif
9974 /* This mess was copied from the GNU getpagesize.h. */
9975 #ifndef HAVE_GETPAGESIZE
9976 /* Assume that all systems that can run configure have sys/param.h. */
9977 # ifndef HAVE_SYS_PARAM_H
9978 # define HAVE_SYS_PARAM_H 1
9979 # endif
9981 # ifdef _SC_PAGESIZE
9982 # define getpagesize() sysconf(_SC_PAGESIZE)
9983 # else /* no _SC_PAGESIZE */
9984 # ifdef HAVE_SYS_PARAM_H
9985 # include <sys/param.h>
9986 # ifdef EXEC_PAGESIZE
9987 # define getpagesize() EXEC_PAGESIZE
9988 # else /* no EXEC_PAGESIZE */
9989 # ifdef NBPG
9990 # define getpagesize() NBPG * CLSIZE
9991 # ifndef CLSIZE
9992 # define CLSIZE 1
9993 # endif /* no CLSIZE */
9994 # else /* no NBPG */
9995 # ifdef NBPC
9996 # define getpagesize() NBPC
9997 # else /* no NBPC */
9998 # ifdef PAGESIZE
9999 # define getpagesize() PAGESIZE
10000 # endif /* PAGESIZE */
10001 # endif /* no NBPC */
10002 # endif /* no NBPG */
10003 # endif /* no EXEC_PAGESIZE */
10004 # else /* no HAVE_SYS_PARAM_H */
10005 # define getpagesize() 8192 /* punt totally */
10006 # endif /* no HAVE_SYS_PARAM_H */
10007 # endif /* no _SC_PAGESIZE */
10009 #endif /* no HAVE_GETPAGESIZE */
10012 main ()
10014 char *data, *data2, *data3;
10015 int i, pagesize;
10016 int fd;
10018 pagesize = getpagesize ();
10020 /* First, make a file with some known garbage in it. */
10021 data = (char *) malloc (pagesize);
10022 if (!data)
10023 return 1;
10024 for (i = 0; i < pagesize; ++i)
10025 *(data + i) = rand ();
10026 umask (0);
10027 fd = creat ("conftest.mmap", 0600);
10028 if (fd < 0)
10029 return 1;
10030 if (write (fd, data, pagesize) != pagesize)
10031 return 1;
10032 close (fd);
10034 /* Next, try to mmap the file at a fixed address which already has
10035 something else allocated at it. If we can, also make sure that
10036 we see the same garbage. */
10037 fd = open ("conftest.mmap", O_RDWR);
10038 if (fd < 0)
10039 return 1;
10040 data2 = (char *) malloc (2 * pagesize);
10041 if (!data2)
10042 return 1;
10043 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10044 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10045 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10046 return 1;
10047 for (i = 0; i < pagesize; ++i)
10048 if (*(data + i) != *(data2 + i))
10049 return 1;
10051 /* Finally, make sure that changes to the mapped area do not
10052 percolate back to the file as seen by read(). (This is a bug on
10053 some variants of i386 svr4.0.) */
10054 for (i = 0; i < pagesize; ++i)
10055 *(data2 + i) = *(data2 + i) + 1;
10056 data3 = (char *) malloc (pagesize);
10057 if (!data3)
10058 return 1;
10059 if (read (fd, data3, pagesize) != pagesize)
10060 return 1;
10061 for (i = 0; i < pagesize; ++i)
10062 if (*(data + i) != *(data3 + i))
10063 return 1;
10064 close (fd);
10065 return 0;
10067 _ACEOF
10068 rm -f conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10085 ac_status=$?
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func_mmap_fixed_mapped=yes
10089 else
10090 echo "$as_me: program exited with status $ac_status" >&5
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ( exit $ac_status )
10095 ac_cv_func_mmap_fixed_mapped=no
10097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10103 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10104 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_MMAP 1
10108 _ACEOF
10111 rm -f conftest.mmap
10113 if test $use_mmap_for_buffers = yes; then
10114 REL_ALLOC=no
10117 LIBS="$libsrc_libs $LIBS"
10120 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10121 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-ldnet $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char dnet_ntoa ();
10142 main ()
10144 return dnet_ntoa ();
10146 return 0;
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest$ac_exeext &&
10166 $as_test_x conftest$ac_exeext; then
10167 ac_cv_lib_dnet_dnet_ntoa=yes
10168 else
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_cv_lib_dnet_dnet_ntoa=no
10175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10181 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10182 cat >>confdefs.h <<_ACEOF
10183 #define HAVE_LIBDNET 1
10184 _ACEOF
10186 LIBS="-ldnet $LIBS"
10191 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10192 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 ac_check_lib_save_LIBS=$LIBS
10197 LIBS="-lXbsd $LIBS"
10198 cat >conftest.$ac_ext <<_ACEOF
10199 /* confdefs.h. */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10207 main ()
10209 return main ();
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext &&
10231 $as_test_x conftest$ac_exeext; then
10232 ac_cv_lib_Xbsd_main=yes
10233 else
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_lib_Xbsd_main=no
10240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10245 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10246 if test $ac_cv_lib_Xbsd_main = yes; then
10247 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10252 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10253 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lpthreads $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char cma_open ();
10274 main ()
10276 return cma_open ();
10278 return 0;
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest$ac_exeext &&
10298 $as_test_x conftest$ac_exeext; then
10299 ac_cv_lib_pthreads_cma_open=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_cv_lib_pthreads_cma_open=no
10307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10312 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10313 if test $ac_cv_lib_pthreads_cma_open = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_LIBPTHREADS 1
10316 _ACEOF
10318 LIBS="-lpthreads $LIBS"
10324 case ${host_os} in
10325 aix*)
10326 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10327 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10328 if test "${gdb_cv_bigtoc+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 else
10332 case $GCC in
10333 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10334 *) gdb_cv_bigtoc=-bbigtoc ;;
10335 esac
10337 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10338 cat >conftest.$ac_ext <<_ACEOF
10339 /* confdefs.h. */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10346 main ()
10348 int i;
10350 return 0;
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 gdb_cv_bigtoc=
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10384 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10386 esac
10388 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10389 # used for the tests that follow. We set them back to REAL_CFLAGS and
10390 # REAL_CPPFLAGS later on.
10392 REAL_CPPFLAGS="$CPPFLAGS"
10394 if test "${HAVE_X11}" = "yes"; then
10395 DEFS="$C_SWITCH_X_SITE $DEFS"
10396 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10397 LIBS="$LIBX $LIBS"
10398 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10399 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10401 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10402 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10403 # but it's more convenient here to set LD_RUN_PATH
10404 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10405 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10406 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10407 export LD_RUN_PATH
10410 if test "${opsys}" = "gnu-linux"; then
10411 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10412 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10421 main ()
10423 XOpenDisplay ("foo");
10425 return 0;
10427 _ACEOF
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10433 esac
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_link") 2>conftest.er1
10436 ac_status=$?
10437 grep -v '^ *+' conftest.er1 >conftest.err
10438 rm -f conftest.er1
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && {
10442 test -z "$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10444 } && test -s conftest$ac_exeext &&
10445 $as_test_x conftest$ac_exeext; then
10446 xlinux_first_failure=no
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 xlinux_first_failure=yes
10454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10455 conftest$ac_exeext conftest.$ac_ext
10456 if test "${xlinux_first_failure}" = "yes"; then
10457 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10458 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10459 OLD_CPPFLAGS="$CPPFLAGS"
10460 OLD_LIBS="$LIBS"
10461 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10462 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10463 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10464 LIBS="$LIBS -b i486-linuxaout"
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10473 main ()
10475 XOpenDisplay ("foo");
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10488 ac_status=$?
10489 grep -v '^ *+' conftest.er1 >conftest.err
10490 rm -f conftest.er1
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 xlinux_second_failure=no
10499 else
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 xlinux_second_failure=yes
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 if test "${xlinux_second_failure}" = "yes"; then
10509 # If we get the same failure with -b, there is no use adding -b.
10510 # So take it out. This plays safe.
10511 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10512 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10513 CPPFLAGS="$OLD_CPPFLAGS"
10514 LIBS="$OLD_LIBS"
10515 { echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6; }
10517 else
10518 { echo "$as_me:$LINENO: result: yes" >&5
10519 echo "${ECHO_T}yes" >&6; }
10521 else
10522 { echo "$as_me:$LINENO: result: no" >&5
10523 echo "${ECHO_T}no" >&6; }
10527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10528 # header files included from there.
10529 { echo "$as_me:$LINENO: checking for Xkb" >&5
10530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <X11/Xlib.h>
10538 #include <X11/XKBlib.h>
10540 main ()
10542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext &&
10564 $as_test_x conftest$ac_exeext; then
10565 emacs_xkb=yes
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 emacs_xkb=no
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574 conftest$ac_exeext conftest.$ac_ext
10575 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10576 echo "${ECHO_T}$emacs_xkb" >&6; }
10577 if test $emacs_xkb = yes; then
10579 cat >>confdefs.h <<\_ACEOF
10580 #define HAVE_XKBGETKEYBOARD 1
10581 _ACEOF
10589 for ac_func in XrmSetDatabase XScreenResourceString \
10590 XScreenNumberOfScreen XSetWMProtocols
10592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598 cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h. */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10606 #define $ac_func innocuous_$ac_func
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char $ac_func (); below.
10610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611 <limits.h> exists even on freestanding compilers. */
10613 #ifdef __STDC__
10614 # include <limits.h>
10615 #else
10616 # include <assert.h>
10617 #endif
10619 #undef $ac_func
10621 /* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10624 #ifdef __cplusplus
10625 extern "C"
10626 #endif
10627 char $ac_func ();
10628 /* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631 #if defined __stub_$ac_func || defined __stub___$ac_func
10632 choke me
10633 #endif
10636 main ()
10638 return $ac_func ();
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (ac_try="$ac_link"
10645 case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10651 ac_status=$?
10652 grep -v '^ *+' conftest.er1 >conftest.err
10653 rm -f conftest.er1
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 eval "$as_ac_var=yes"
10662 else
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 eval "$as_ac_var=no"
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10672 ac_res=`eval echo '${'$as_ac_var'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 if test `eval echo '${'$as_ac_var'}'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10678 _ACEOF
10681 done
10685 if test "${window_system}" = "x11"; then
10686 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10687 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10688 if test "${emacs_cv_x11_version_6+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h. */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <X11/Xlib.h>
10699 main ()
10701 #if XlibSpecificationRelease < 6
10702 fail;
10703 #endif
10706 return 0;
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext &&
10726 $as_test_x conftest$ac_exeext; then
10727 emacs_cv_x11_version_6=yes
10728 else
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10732 emacs_cv_x11_version_6=no
10735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10736 conftest$ac_exeext conftest.$ac_ext
10739 if test $emacs_cv_x11_version_6 = yes; then
10740 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10741 echo "${ECHO_T}6 or newer" >&6; }
10743 cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_X11R6 1
10745 _ACEOF
10747 else
10748 { echo "$as_me:$LINENO: result: before 6" >&5
10749 echo "${ECHO_T}before 6" >&6; }
10754 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10755 HAVE_RSVG=no
10756 if test "${HAVE_X11}" = "yes"; then
10757 if test "${with_rsvg}" != "no"; then
10758 RSVG_REQUIRED=2.0.0
10759 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10762 succeeded=no
10764 # Extract the first word of "pkg-config", so it can be a program name with args.
10765 set dummy pkg-config; ac_word=$2
10766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771 case $PKG_CONFIG in
10772 [\\/]* | ?:[\\/]*)
10773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 for ac_exec_ext in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10785 break 2
10787 done
10788 done
10789 IFS=$as_save_IFS
10791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10793 esac
10795 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10796 if test -n "$PKG_CONFIG"; then
10797 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10798 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10799 else
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10806 if test "$PKG_CONFIG" = "no" ; then
10808 else
10809 PKG_CONFIG_MIN_VERSION=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10812 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10814 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10815 { echo "$as_me:$LINENO: result: yes" >&5
10816 echo "${ECHO_T}yes" >&6; }
10817 succeeded=yes
10819 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10820 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10821 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10822 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10823 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10825 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10826 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10827 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10828 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10829 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10830 else
10831 { echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6; }
10833 RSVG_CFLAGS=""
10834 RSVG_LIBS=""
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10843 else
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10849 if test $succeeded = yes; then
10851 else
10858 if test ".${RSVG_CFLAGS}" != "."; then
10859 HAVE_RSVG=yes
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_RSVG 1
10863 _ACEOF
10865 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10866 LIBS="$RSVG_LIBS $LIBS"
10872 HAVE_GTK=no
10873 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10874 GLIB_REQUIRED=2.6
10875 GTK_REQUIRED=2.6
10876 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10879 succeeded=no
10881 # Extract the first word of "pkg-config", so it can be a program name with args.
10882 set dummy pkg-config; ac_word=$2
10883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888 case $PKG_CONFIG in
10889 [\\/]* | ?:[\\/]*)
10890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10894 for as_dir in $PATH
10896 IFS=$as_save_IFS
10897 test -z "$as_dir" && as_dir=.
10898 for ac_exec_ext in '' $ac_executable_extensions; do
10899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 break 2
10904 done
10905 done
10906 IFS=$as_save_IFS
10908 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10910 esac
10912 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10913 if test -n "$PKG_CONFIG"; then
10914 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10915 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10916 else
10917 { echo "$as_me:$LINENO: result: no" >&5
10918 echo "${ECHO_T}no" >&6; }
10923 if test "$PKG_CONFIG" = "no" ; then
10924 pkg_check_gtk=no
10925 else
10926 PKG_CONFIG_MIN_VERSION=0.9.0
10927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10928 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10929 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10931 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10932 { echo "$as_me:$LINENO: result: yes" >&5
10933 echo "${ECHO_T}yes" >&6; }
10934 succeeded=yes
10936 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10937 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10938 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10939 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10940 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10942 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10943 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10944 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10945 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10946 echo "${ECHO_T}$GTK_LIBS" >&6; }
10947 else
10948 { echo "$as_me:$LINENO: result: no" >&5
10949 echo "${ECHO_T}no" >&6; }
10950 GTK_CFLAGS=""
10951 GTK_LIBS=""
10952 ## If we have a custom action on failure, don't print errors, but
10953 ## do set a variable so people can do so.
10954 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10960 else
10961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10966 if test $succeeded = yes; then
10967 pkg_check_gtk=yes
10968 else
10969 pkg_check_gtk=no
10972 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10973 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10974 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10975 { (exit 1); exit 1; }; }
10980 if test x"$pkg_check_gtk" = xyes; then
10984 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10985 CFLAGS="$CFLAGS $GTK_CFLAGS"
10986 LIBS="$GTK_LIBS $LIBS"
10987 GTK_COMPILES=no
10989 for ac_func in gtk_main
10991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11012 #ifdef __STDC__
11013 # include <limits.h>
11014 #else
11015 # include <assert.h>
11016 #endif
11018 #undef $ac_func
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char $ac_func ();
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 choke me
11032 #endif
11035 main ()
11037 return $ac_func ();
11039 return 0;
11041 _ACEOF
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060 eval "$as_ac_var=yes"
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 eval "$as_ac_var=no"
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11071 ac_res=`eval echo '${'$as_ac_var'}'`
11072 { echo "$as_me:$LINENO: result: $ac_res" >&5
11073 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_var'}'` = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11077 _ACEOF
11078 GTK_COMPILES=yes
11080 done
11082 if test "${GTK_COMPILES}" != "yes"; then
11083 if test "$USE_X_TOOLKIT" != "maybe"; then
11084 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11085 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11086 { (exit 1); exit 1; }; };
11088 else
11089 HAVE_GTK=yes
11091 cat >>confdefs.h <<\_ACEOF
11092 #define USE_GTK 1
11093 _ACEOF
11095 USE_X_TOOLKIT=none
11096 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11098 else
11099 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11100 closing open displays. This is no problem if you just use
11101 one display, but if you use more than one and close one of them
11102 Emacs may crash." >&5
11103 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11104 closing open displays. This is no problem if you just use
11105 one display, but if you use more than one and close one of them
11106 Emacs may crash." >&2;}
11107 sleep 3
11114 if test "${HAVE_GTK}" = "yes"; then
11116 if test "$with_toolkit_scroll_bars" != no; then
11117 with_toolkit_scroll_bars=yes
11120 HAVE_GTK_MULTIDISPLAY=no
11122 for ac_func in gdk_display_open
11124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11138 #define $ac_func innocuous_$ac_func
11140 /* System header to define __stub macros and hopefully few prototypes,
11141 which can conflict with char $ac_func (); below.
11142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11143 <limits.h> exists even on freestanding compilers. */
11145 #ifdef __STDC__
11146 # include <limits.h>
11147 #else
11148 # include <assert.h>
11149 #endif
11151 #undef $ac_func
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char $ac_func ();
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined __stub_$ac_func || defined __stub___$ac_func
11164 choke me
11165 #endif
11168 main ()
11170 return $ac_func ();
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11183 ac_status=$?
11184 grep -v '^ *+' conftest.er1 >conftest.err
11185 rm -f conftest.er1
11186 cat conftest.err >&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest$ac_exeext &&
11192 $as_test_x conftest$ac_exeext; then
11193 eval "$as_ac_var=yes"
11194 else
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 eval "$as_ac_var=no"
11201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11204 ac_res=`eval echo '${'$as_ac_var'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11207 if test `eval echo '${'$as_ac_var'}'` = yes; then
11208 cat >>confdefs.h <<_ACEOF
11209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11210 _ACEOF
11211 HAVE_GTK_MULTIDISPLAY=yes
11213 done
11215 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11217 cat >>confdefs.h <<\_ACEOF
11218 #define HAVE_GTK_MULTIDISPLAY 1
11219 _ACEOF
11223 HAVE_GTK_FILE_SELECTION=no
11225 for ac_func in gtk_file_selection_new
11227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h. */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11241 #define $ac_func innocuous_$ac_func
11243 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $ac_func (); below.
11245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11246 <limits.h> exists even on freestanding compilers. */
11248 #ifdef __STDC__
11249 # include <limits.h>
11250 #else
11251 # include <assert.h>
11252 #endif
11254 #undef $ac_func
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char $ac_func ();
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined __stub_$ac_func || defined __stub___$ac_func
11267 choke me
11268 #endif
11271 main ()
11273 return $ac_func ();
11275 return 0;
11277 _ACEOF
11278 rm -f conftest.$ac_objext conftest$ac_exeext
11279 if { (ac_try="$ac_link"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_link") 2>conftest.er1
11286 ac_status=$?
11287 grep -v '^ *+' conftest.er1 >conftest.err
11288 rm -f conftest.er1
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } && {
11292 test -z "$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 } && test -s conftest$ac_exeext &&
11295 $as_test_x conftest$ac_exeext; then
11296 eval "$as_ac_var=yes"
11297 else
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 eval "$as_ac_var=no"
11304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11305 conftest$ac_exeext conftest.$ac_ext
11307 ac_res=`eval echo '${'$as_ac_var'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310 if test `eval echo '${'$as_ac_var'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11313 _ACEOF
11314 HAVE_GTK_FILE_SELECTION=yes
11316 done
11319 HAVE_GTK_FILE_CHOOSER=no
11321 for ac_func in gtk_file_chooser_dialog_new
11323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11344 #ifdef __STDC__
11345 # include <limits.h>
11346 #else
11347 # include <assert.h>
11348 #endif
11350 #undef $ac_func
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char $ac_func ();
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11363 choke me
11364 #endif
11367 main ()
11369 return $ac_func ();
11371 return 0;
11373 _ACEOF
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379 esac
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest$ac_exeext &&
11391 $as_test_x conftest$ac_exeext; then
11392 eval "$as_ac_var=yes"
11393 else
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 eval "$as_ac_var=no"
11400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11401 conftest$ac_exeext conftest.$ac_ext
11403 ac_res=`eval echo '${'$as_ac_var'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 if test `eval echo '${'$as_ac_var'}'` = yes; then
11407 cat >>confdefs.h <<_ACEOF
11408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11409 _ACEOF
11410 HAVE_GTK_FILE_CHOOSER=yes
11412 done
11415 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11416 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11418 cat >>confdefs.h <<\_ACEOF
11419 #define HAVE_GTK_FILE_BOTH 1
11420 _ACEOF
11424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11425 HAVE_GTK_AND_PTHREAD=no
11427 for ac_header in pthread.h
11429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_res=`eval echo '${'$as_ac_Header'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11439 else
11440 # Is the header compilable?
11441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11443 cat >conftest.$ac_ext <<_ACEOF
11444 /* confdefs.h. */
11445 _ACEOF
11446 cat confdefs.h >>conftest.$ac_ext
11447 cat >>conftest.$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11451 _ACEOF
11452 rm -f conftest.$ac_objext
11453 if { (ac_try="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11460 ac_status=$?
11461 grep -v '^ *+' conftest.er1 >conftest.err
11462 rm -f conftest.er1
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_compiler=no
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 echo "${ECHO_T}$ac_header_compiler" >&6; }
11481 # Is the header present?
11482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h. */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11491 _ACEOF
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } >/dev/null && {
11505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 }; then
11508 ac_header_preproc=yes
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_preproc=no
11516 rm -f conftest.err conftest.$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6; }
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11522 yes:no: )
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc=yes
11529 no:yes:* )
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11544 esac
11545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550 eval "$as_ac_Header=\$ac_header_preproc"
11552 ac_res=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554 echo "${ECHO_T}$ac_res" >&6; }
11557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558 cat >>confdefs.h <<_ACEOF
11559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560 _ACEOF
11564 done
11566 if test "$ac_cv_header_pthread_h"; then
11567 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11568 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11569 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-lpthread $LIBS"
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h. */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char pthread_self ();
11589 main ()
11591 return pthread_self ();
11593 return 0;
11595 _ACEOF
11596 rm -f conftest.$ac_objext conftest$ac_exeext
11597 if { (ac_try="$ac_link"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11601 esac
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_link") 2>conftest.er1
11604 ac_status=$?
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest$ac_exeext &&
11613 $as_test_x conftest$ac_exeext; then
11614 ac_cv_lib_pthread_pthread_self=yes
11615 else
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_lib_pthread_pthread_self=no
11622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11627 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11628 if test $ac_cv_lib_pthread_pthread_self = yes; then
11629 HAVE_GTK_AND_PTHREAD=yes
11633 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11634 case "${canonical}" in
11635 *-hpux*) ;;
11636 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11637 esac
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_GTK_AND_PTHREAD 1
11641 _ACEOF
11647 HAVE_DBUS=no
11648 if test "${with_dbus}" = "yes"; then
11650 succeeded=no
11652 # Extract the first word of "pkg-config", so it can be a program name with args.
11653 set dummy pkg-config; ac_word=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 case $PKG_CONFIG in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11673 break 2
11675 done
11676 done
11677 IFS=$as_save_IFS
11679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11681 esac
11683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11684 if test -n "$PKG_CONFIG"; then
11685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11687 else
11688 { echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6; }
11694 if test "$PKG_CONFIG" = "no" ; then
11695 HAVE_DBUS=no
11696 else
11697 PKG_CONFIG_MIN_VERSION=0.9.0
11698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11699 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11700 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11702 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11703 { echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6; }
11705 succeeded=yes
11707 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11708 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11709 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11710 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11711 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11713 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11714 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11715 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11716 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11717 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11718 else
11719 { echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6; }
11721 DBUS_CFLAGS=""
11722 DBUS_LIBS=""
11723 ## If we have a custom action on failure, don't print errors, but
11724 ## do set a variable so people can do so.
11725 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11731 else
11732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11737 if test $succeeded = yes; then
11738 HAVE_DBUS=yes
11739 else
11740 HAVE_DBUS=no
11743 if test "$HAVE_DBUS" = yes; then
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_DBUS 1
11747 _ACEOF
11752 HAVE_XAW3D=no
11753 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11754 if test "$with_xaw3d" != no; then
11755 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11756 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11757 if test "${emacs_cv_xaw3d+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 #include <X11/Intrinsic.h>
11768 #include <X11/Xaw3d/Simple.h>
11770 main ()
11774 return 0;
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 emacs_cv_xaw3d=yes
11796 else
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 emacs_cv_xaw3d=no
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11807 else
11808 emacs_cv_xaw3d=no
11810 if test $emacs_cv_xaw3d = yes; then
11811 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11812 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11813 USE_X_TOOLKIT=LUCID
11814 HAVE_XAW3D=yes
11816 cat >>confdefs.h <<\_ACEOF
11817 #define HAVE_XAW3D 1
11818 _ACEOF
11820 else
11821 { echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6; }
11823 { echo "$as_me:$LINENO: checking for libXaw" >&5
11824 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11825 if test "${emacs_cv_xaw+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h. */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 #include <X11/Intrinsic.h>
11836 #include <X11/Xaw/Simple.h>
11838 main ()
11842 return 0;
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest$ac_exeext &&
11862 $as_test_x conftest$ac_exeext; then
11863 emacs_cv_xaw=yes
11864 else
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 emacs_cv_xaw=no
11871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11872 conftest$ac_exeext conftest.$ac_ext
11875 if test $emacs_cv_xaw = yes; then
11876 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11877 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11878 USE_X_TOOLKIT=LUCID
11879 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11880 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11881 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11882 { (exit 1); exit 1; }; }
11883 else
11884 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11885 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11886 USE_X_TOOLKIT=none
11891 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11893 if test "${USE_X_TOOLKIT}" != "none"; then
11894 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11895 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11896 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899 cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h. */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <X11/Intrinsic.h>
11907 main ()
11909 #if XtSpecificationRelease < 6
11910 fail;
11911 #endif
11914 return 0;
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11925 ac_status=$?
11926 grep -v '^ *+' conftest.er1 >conftest.err
11927 rm -f conftest.er1
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext &&
11934 $as_test_x conftest$ac_exeext; then
11935 emacs_cv_x11_toolkit_version_6=yes
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 emacs_cv_x11_toolkit_version_6=no
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944 conftest$ac_exeext conftest.$ac_ext
11947 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11948 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11949 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11950 echo "${ECHO_T}6 or newer" >&6; }
11952 cat >>confdefs.h <<\_ACEOF
11953 #define HAVE_X11XTR6 1
11954 _ACEOF
11956 else
11957 { echo "$as_me:$LINENO: result: before 6" >&5
11958 echo "${ECHO_T}before 6" >&6; }
11961 OLDLIBS="$LIBS"
11962 if test x$HAVE_X11XTR6 = xyes; then
11963 LIBS="-lXt -lSM -lICE $LIBS"
11964 else
11965 LIBS="-lXt $LIBS"
11968 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11969 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11970 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973 ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-lXmu $LIBS"
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char XmuConvertStandardSelection ();
11990 main ()
11992 return XmuConvertStandardSelection ();
11994 return 0;
11996 _ACEOF
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12016 else
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12029 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_LIBXMU 1
12032 _ACEOF
12034 LIBS="-lXmu $LIBS"
12038 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12041 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12042 if test "${HAVE_X11}" = "yes"; then
12043 if test "${USE_X_TOOLKIT}" != "none"; then
12045 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12046 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXext $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char XShapeQueryExtension ();
12067 main ()
12069 return XShapeQueryExtension ();
12071 return 0;
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest$ac_exeext &&
12091 $as_test_x conftest$ac_exeext; then
12092 ac_cv_lib_Xext_XShapeQueryExtension=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_Xext_XShapeQueryExtension=no
12100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12106 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_LIBXEXT 1
12109 _ACEOF
12111 LIBS="-lXext $LIBS"
12118 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12119 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12120 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12121 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 else
12124 cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h. */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 #include <Xm/Xm.h>
12132 main ()
12134 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12135 int x = 5;
12136 #else
12137 Motif version prior to 2.1.
12138 #endif
12140 return 0;
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (ac_try="$ac_compile"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148 esac
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_compile") 2>conftest.er1
12151 ac_status=$?
12152 grep -v '^ *+' conftest.er1 >conftest.err
12153 rm -f conftest.er1
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest.$ac_objext; then
12160 emacs_cv_motif_version_2_1=yes
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 emacs_cv_motif_version_2_1=no
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12171 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12172 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12173 if test $emacs_cv_motif_version_2_1 = yes; then
12174 HAVE_LIBXP=no
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_MOTIF_2_1 1
12178 _ACEOF
12180 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12181 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12182 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185 ac_check_lib_save_LIBS=$LIBS
12186 LIBS="-lXp $LIBS"
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h. */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 char XpCreateContext ();
12202 main ()
12204 return XpCreateContext ();
12206 return 0;
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest$ac_exeext &&
12226 $as_test_x conftest$ac_exeext; then
12227 ac_cv_lib_Xp_XpCreateContext=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_lib_Xp_XpCreateContext=no
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12240 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12241 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12242 HAVE_LIBXP=yes
12245 if test ${HAVE_LIBXP} = yes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_LIBXP 1
12249 _ACEOF
12252 else
12253 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12254 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12255 if test "${emacs_cv_lesstif+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258 # We put this in CFLAGS temporarily to precede other -I options
12259 # that might be in CFLAGS temporarily.
12260 # We put this in CPPFLAGS where it precedes the other -I options.
12261 OLD_CPPFLAGS=$CPPFLAGS
12262 OLD_CFLAGS=$CFLAGS
12263 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12264 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12273 main ()
12275 int x = 5;
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (ac_try="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest.$ac_objext; then
12297 emacs_cv_lesstif=yes
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 emacs_cv_lesstif=no
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12308 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12309 if test $emacs_cv_lesstif = yes; then
12310 # Make sure this -I option remains in CPPFLAGS after it is set
12311 # back to REAL_CPPFLAGS.
12312 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12313 # have those other -I options anyway. Ultimately, having this
12314 # directory ultimately in CPPFLAGS will be enough.
12315 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12316 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12317 else
12318 CFLAGS=$OLD_CFLAGS
12319 CPPFLAGS=$OLD_CPPFLAGS
12326 USE_TOOLKIT_SCROLL_BARS=no
12327 if test "${with_toolkit_scroll_bars}" != "no"; then
12328 if test "${USE_X_TOOLKIT}" != "none"; then
12329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12330 cat >>confdefs.h <<\_ACEOF
12331 #define USE_TOOLKIT_SCROLL_BARS 1
12332 _ACEOF
12334 HAVE_XAW3D=no
12335 USE_TOOLKIT_SCROLL_BARS=yes
12336 elif test "${HAVE_XAW3D}" = "yes"; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define USE_TOOLKIT_SCROLL_BARS 1
12339 _ACEOF
12341 USE_TOOLKIT_SCROLL_BARS=yes
12343 elif test "${HAVE_GTK}" = "yes"; then
12344 cat >>confdefs.h <<\_ACEOF
12345 #define USE_TOOLKIT_SCROLL_BARS 1
12346 _ACEOF
12348 USE_TOOLKIT_SCROLL_BARS=yes
12349 elif test "${HAVE_NS}" = "yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define USE_TOOLKIT_SCROLL_BARS 1
12352 _ACEOF
12354 USE_TOOLKIT_SCROLL_BARS=yes
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h. */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 #include <X11/Xlib.h>
12366 #include <X11/Xresource.h>
12368 main ()
12370 XIMProc callback;
12372 return 0;
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 HAVE_XIM=yes
12394 cat >>confdefs.h <<\_ACEOF
12395 #define HAVE_XIM 1
12396 _ACEOF
12398 else
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 HAVE_XIM=no
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 if test "${with_xim}" != "no"; then
12410 cat >>confdefs.h <<\_ACEOF
12411 #define USE_XIM 1
12412 _ACEOF
12417 if test "${HAVE_XIM}" != "no"; then
12418 late_CFLAGS=$CFLAGS
12419 if test "$GCC" = yes; then
12420 CFLAGS="$CFLAGS --pedantic-errors"
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 #include <X11/Xlib.h>
12430 #include <X11/Xresource.h>
12432 main ()
12434 Display *display;
12435 XrmDatabase db;
12436 char *res_name;
12437 char *res_class;
12438 XIMProc callback;
12439 XPointer *client_data;
12440 #ifndef __GNUC__
12441 /* If we're not using GCC, it's probably not XFree86, and this is
12442 probably right, but we can't use something like --pedantic-errors. */
12443 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12444 char*, XIMProc, XPointer*);
12445 #endif
12446 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12447 client_data);
12449 return 0;
12451 _ACEOF
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12457 esac
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 emacs_cv_arg6_star=yes
12470 else
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 if test "$emacs_cv_arg6_star" = yes; then
12480 cat >>confdefs.h <<\_ACEOF
12481 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12482 _ACEOF
12484 else
12485 cat >>confdefs.h <<\_ACEOF
12486 #define XRegisterIMInstantiateCallback_arg6 XPointer
12487 _ACEOF
12490 CFLAGS=$late_CFLAGS
12493 ### Start of font-backend section.
12495 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12496 HAVE_XFT=maybe
12497 if test "x${with_freetype}" = "xno"; then
12498 with_xft="no";
12500 if test "x${with_xft}" != "xno"; then
12503 succeeded=no
12505 # Extract the first word of "pkg-config", so it can be a program name with args.
12506 set dummy pkg-config; ac_word=$2
12507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512 case $PKG_CONFIG in
12513 [\\/]* | ?:[\\/]*)
12514 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12518 for as_dir in $PATH
12520 IFS=$as_save_IFS
12521 test -z "$as_dir" && as_dir=.
12522 for ac_exec_ext in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12526 break 2
12528 done
12529 done
12530 IFS=$as_save_IFS
12532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12534 esac
12536 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12537 if test -n "$PKG_CONFIG"; then
12538 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12539 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12540 else
12541 { echo "$as_me:$LINENO: result: no" >&5
12542 echo "${ECHO_T}no" >&6; }
12547 if test "$PKG_CONFIG" = "no" ; then
12548 HAVE_XFT=no
12549 else
12550 PKG_CONFIG_MIN_VERSION=0.9.0
12551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12552 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12553 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12555 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12556 { echo "$as_me:$LINENO: result: yes" >&5
12557 echo "${ECHO_T}yes" >&6; }
12558 succeeded=yes
12560 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12561 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12562 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12563 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12564 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12566 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12567 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12568 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12569 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12570 echo "${ECHO_T}$XFT_LIBS" >&6; }
12571 else
12572 { echo "$as_me:$LINENO: result: no" >&5
12573 echo "${ECHO_T}no" >&6; }
12574 XFT_CFLAGS=""
12575 XFT_LIBS=""
12576 ## If we have a custom action on failure, don't print errors, but
12577 ## do set a variable so people can do so.
12578 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12584 else
12585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12590 if test $succeeded = yes; then
12592 else
12593 HAVE_XFT=no
12596 if test "$HAVE_XFT" != no; then
12597 OLD_CPPFLAGS="$CPPFLAGS"
12598 OLD_CFLAGS="$CFLAGS"
12599 OLD_LIBS="$LIBS"
12600 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12601 CFLAGS="$CFLAGS $XFT_CFLAGS"
12602 LIBS="$XFT_LIBS $LIBS"
12603 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12604 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12605 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12606 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12610 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12611 else
12612 # Is the header compilable?
12613 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12614 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 #include <X11/Xft/Xft.h>
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 ac_header_compiler=yes
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_compiler=no
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12651 echo "${ECHO_T}$ac_header_compiler" >&6; }
12653 # Is the header present?
12654 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12655 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 #include <X11/Xft/Xft.h>
12663 _ACEOF
12664 if { (ac_try="$ac_cpp conftest.$ac_ext"
12665 case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668 esac
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12671 ac_status=$?
12672 grep -v '^ *+' conftest.er1 >conftest.err
12673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } >/dev/null && {
12677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12679 }; then
12680 ac_header_preproc=yes
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_header_preproc=no
12688 rm -f conftest.err conftest.$ac_ext
12689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12690 echo "${ECHO_T}$ac_header_preproc" >&6; }
12692 # So? What about this header?
12693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12694 yes:no: )
12695 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12696 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12698 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12699 ac_header_preproc=yes
12701 no:yes:* )
12702 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12703 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12704 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12705 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12707 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12709 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12711 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12713 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12716 esac
12717 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12718 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12719 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 else
12722 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12724 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12728 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12729 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12730 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12731 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734 ac_check_lib_save_LIBS=$LIBS
12735 LIBS="-lXft $XFT_LIBS $LIBS"
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char XftFontOpen ();
12751 main ()
12753 return XftFontOpen ();
12755 return 0;
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12763 esac
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest$ac_exeext &&
12775 $as_test_x conftest$ac_exeext; then
12776 ac_cv_lib_Xft_XftFontOpen=yes
12777 else
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_cv_lib_Xft_XftFontOpen=no
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12789 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12790 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12791 HAVE_XFT=yes
12798 if test "${HAVE_XFT}" = "yes"; then
12800 cat >>confdefs.h <<\_ACEOF
12801 #define HAVE_XFT 1
12802 _ACEOF
12805 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12806 else
12807 CPPFLAGS="$OLD_CPPFLAGS"
12808 CFLAGS="$OLD_CFLAGS"
12809 LIBS="$OLD_LIBS"
12810 fi # "${HAVE_XFT}" = "yes"
12811 fi # "$HAVE_XFT" != no
12812 fi # "x${with_xft}" != "xno"
12814 if test "$HAVE_XFT" != "yes"; then
12815 HAVE_XFT=no
12819 HAVE_FREETYPE=no
12820 ### Use -lfreetype if available, unless `--with-freetype=no'.
12821 if test "${HAVE_XFT}" = "yes"; then
12822 HAVE_FREETYPE=yes
12823 elif test "x${with_freetype}" != "xno"; then
12826 succeeded=no
12828 # Extract the first word of "pkg-config", so it can be a program name with args.
12829 set dummy pkg-config; ac_word=$2
12830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835 case $PKG_CONFIG in
12836 [\\/]* | ?:[\\/]*)
12837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 break 2
12851 done
12852 done
12853 IFS=$as_save_IFS
12855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12857 esac
12859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12860 if test -n "$PKG_CONFIG"; then
12861 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12862 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12863 else
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12870 if test "$PKG_CONFIG" = "no" ; then
12871 HAVE_FREETYPE=no
12872 else
12873 PKG_CONFIG_MIN_VERSION=0.9.0
12874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12875 { echo "$as_me:$LINENO: checking for freetype2" >&5
12876 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12878 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12879 { echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6; }
12881 succeeded=yes
12883 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12884 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12885 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12886 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12887 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12889 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12890 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12891 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12892 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12893 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12894 else
12895 { echo "$as_me:$LINENO: result: no" >&5
12896 echo "${ECHO_T}no" >&6; }
12897 FREETYPE_CFLAGS=""
12898 FREETYPE_LIBS=""
12899 ## If we have a custom action on failure, don't print errors, but
12900 ## do set a variable so people can do so.
12901 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12907 else
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12914 HAVE_FREETYPE=yes
12915 else
12916 HAVE_FREETYPE=no
12919 if test "${HAVE_FREETYPE}" = "yes"; then
12921 succeeded=no
12923 # Extract the first word of "pkg-config", so it can be a program name with args.
12924 set dummy pkg-config; ac_word=$2
12925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930 case $PKG_CONFIG in
12931 [\\/]* | ?:[\\/]*)
12932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12946 done
12947 done
12948 IFS=$as_save_IFS
12950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12952 esac
12954 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12955 if test -n "$PKG_CONFIG"; then
12956 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12957 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12958 else
12959 { echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6; }
12965 if test "$PKG_CONFIG" = "no" ; then
12966 HAVE_FC=no
12967 else
12968 PKG_CONFIG_MIN_VERSION=0.9.0
12969 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12970 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12971 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12973 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12974 { echo "$as_me:$LINENO: result: yes" >&5
12975 echo "${ECHO_T}yes" >&6; }
12976 succeeded=yes
12978 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12979 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12980 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12981 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12982 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12984 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12985 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12986 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12987 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12988 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12989 else
12990 { echo "$as_me:$LINENO: result: no" >&5
12991 echo "${ECHO_T}no" >&6; }
12992 FONTCONFIG_CFLAGS=""
12993 FONTCONFIG_LIBS=""
12994 ## If we have a custom action on failure, don't print errors, but
12995 ## do set a variable so people can do so.
12996 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13002 else
13003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13008 if test $succeeded = yes; then
13009 HAVE_FC=yes
13010 else
13011 HAVE_FC=no
13014 if test "${HAVE_FC}" = "no"; then
13015 HAVE_FREETYPE=no
13020 HAVE_LIBOTF=no
13021 if test "${HAVE_FREETYPE}" = "yes"; then
13023 cat >>confdefs.h <<\_ACEOF
13024 #define HAVE_FREETYPE 1
13025 _ACEOF
13027 if test "${with_libotf}" != "no"; then
13029 succeeded=no
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032 set dummy pkg-config; ac_word=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 else
13038 case $PKG_CONFIG in
13039 [\\/]* | ?:[\\/]*)
13040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13044 for as_dir in $PATH
13046 IFS=$as_save_IFS
13047 test -z "$as_dir" && as_dir=.
13048 for ac_exec_ext in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13052 break 2
13054 done
13055 done
13056 IFS=$as_save_IFS
13058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13060 esac
13062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13063 if test -n "$PKG_CONFIG"; then
13064 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13065 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13066 else
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13073 if test "$PKG_CONFIG" = "no" ; then
13074 HAVE_LIBOTF=no
13075 else
13076 PKG_CONFIG_MIN_VERSION=0.9.0
13077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13078 { echo "$as_me:$LINENO: checking for libotf" >&5
13079 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13081 if $PKG_CONFIG --exists "libotf" 2>&5; then
13082 { echo "$as_me:$LINENO: result: yes" >&5
13083 echo "${ECHO_T}yes" >&6; }
13084 succeeded=yes
13086 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13087 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13088 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13089 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13090 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13092 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13093 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13094 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13095 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13096 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13097 else
13098 { echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6; }
13100 LIBOTF_CFLAGS=""
13101 LIBOTF_LIBS=""
13102 ## If we have a custom action on failure, don't print errors, but
13103 ## do set a variable so people can do so.
13104 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13110 else
13111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13116 if test $succeeded = yes; then
13117 HAVE_LIBOTF=yes
13118 else
13119 HAVE_LIBOTF=no
13122 if test "$HAVE_LIBOTF" = "yes"; then
13124 cat >>confdefs.h <<\_ACEOF
13125 #define HAVE_LIBOTF 1
13126 _ACEOF
13132 HAVE_M17N_FLT=no
13133 if test "${with_m17n_flt}" != "no"; then
13135 succeeded=no
13137 # Extract the first word of "pkg-config", so it can be a program name with args.
13138 set dummy pkg-config; ac_word=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 else
13144 case $PKG_CONFIG in
13145 [\\/]* | ?:[\\/]*)
13146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13160 done
13161 done
13162 IFS=$as_save_IFS
13164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13166 esac
13168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13169 if test -n "$PKG_CONFIG"; then
13170 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13171 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13172 else
13173 { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13179 if test "$PKG_CONFIG" = "no" ; then
13180 HAVE_M17N_FLT=no
13181 else
13182 PKG_CONFIG_MIN_VERSION=0.9.0
13183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13184 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13185 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13187 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13188 { echo "$as_me:$LINENO: result: yes" >&5
13189 echo "${ECHO_T}yes" >&6; }
13190 succeeded=yes
13192 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13193 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13194 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13195 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13196 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13198 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13199 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13200 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13201 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13202 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13203 else
13204 { echo "$as_me:$LINENO: result: no" >&5
13205 echo "${ECHO_T}no" >&6; }
13206 M17N_FLT_CFLAGS=""
13207 M17N_FLT_LIBS=""
13208 ## If we have a custom action on failure, don't print errors, but
13209 ## do set a variable so people can do so.
13210 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13216 else
13217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13222 if test $succeeded = yes; then
13223 HAVE_M17N_FLT=yes
13224 else
13225 HAVE_M17N_FLT=no
13228 if test "$HAVE_M17N_FLT" = "yes"; then
13230 cat >>confdefs.h <<\_ACEOF
13231 #define HAVE_M17N_FLT 1
13232 _ACEOF
13246 ### End of font-backend section.
13248 ### Use -lXpm if available, unless `--with-xpm=no'.
13249 HAVE_XPM=no
13250 if test "${HAVE_X11}" = "yes"; then
13251 if test "${with_xpm}" != "no"; then
13252 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13253 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13254 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13255 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13259 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13260 else
13261 # Is the header compilable?
13262 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13263 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h. */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <X11/xpm.h>
13272 _ACEOF
13273 rm -f conftest.$ac_objext
13274 if { (ac_try="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278 esac
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13291 else
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_compiler=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
13302 # Is the header present?
13303 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13304 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <X11/xpm.h>
13312 _ACEOF
13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null && {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 }; then
13329 ac_header_preproc=yes
13330 else
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_header_preproc=no
13337 rm -f conftest.err conftest.$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13343 yes:no: )
13344 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13345 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13347 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc=yes
13350 no:yes:* )
13351 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13356 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13358 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13360 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13362 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13365 esac
13366 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13367 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13368 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371 ac_cv_header_X11_xpm_h=$ac_header_preproc
13373 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13377 if test $ac_cv_header_X11_xpm_h = yes; then
13378 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13379 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13380 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 ac_check_lib_save_LIBS=$LIBS
13384 LIBS="-lXpm -lX11 $LIBS"
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h. */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13395 #ifdef __cplusplus
13396 extern "C"
13397 #endif
13398 char XpmReadFileToPixmap ();
13400 main ()
13402 return XpmReadFileToPixmap ();
13404 return 0;
13406 _ACEOF
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest$ac_exeext &&
13424 $as_test_x conftest$ac_exeext; then
13425 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13426 else
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13438 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13439 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13440 HAVE_XPM=yes
13446 if test "${HAVE_XPM}" = "yes"; then
13447 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13448 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 #include "X11/xpm.h"
13456 #ifndef XpmReturnAllocPixels
13457 no_return_alloc_pixels
13458 #endif
13460 _ACEOF
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13463 HAVE_XPM=no
13464 else
13465 HAVE_XPM=yes
13467 rm -f conftest*
13470 if test "${HAVE_XPM}" = "yes"; then
13471 { echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6; }
13473 else
13474 { echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6; }
13480 if test "${HAVE_XPM}" = "yes"; then
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_XPM 1
13484 _ACEOF
13489 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13490 HAVE_JPEG=no
13491 if test "${HAVE_X11}" = "yes"; then
13492 if test "${with_jpeg}" != "no"; then
13493 if test "${ac_cv_header_jerror_h+set}" = set; then
13494 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13495 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13496 if test "${ac_cv_header_jerror_h+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13500 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13501 else
13502 # Is the header compilable?
13503 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13504 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13506 /* confdefs.h. */
13507 _ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13512 #include <jerror.h>
13513 _ACEOF
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_compile") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest.$ac_objext; then
13531 ac_header_compiler=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 ac_header_compiler=no
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541 echo "${ECHO_T}$ac_header_compiler" >&6; }
13543 # Is the header present?
13544 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13545 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <jerror.h>
13553 _ACEOF
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null && {
13567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 }; then
13570 ac_header_preproc=yes
13571 else
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_header_preproc=no
13578 rm -f conftest.err conftest.$ac_ext
13579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6; }
13582 # So? What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584 yes:no: )
13585 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13588 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13589 ac_header_preproc=yes
13591 no:yes:* )
13592 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13601 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13606 esac
13607 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13608 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13609 if test "${ac_cv_header_jerror_h+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 else
13612 ac_cv_header_jerror_h=$ac_header_preproc
13614 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13615 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13618 if test $ac_cv_header_jerror_h = yes; then
13619 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13620 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13621 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624 ac_check_lib_save_LIBS=$LIBS
13625 LIBS="-ljpeg $LIBS"
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13636 #ifdef __cplusplus
13637 extern "C"
13638 #endif
13639 char jpeg_destroy_compress ();
13641 main ()
13643 return jpeg_destroy_compress ();
13645 return 0;
13647 _ACEOF
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (ac_try="$ac_link"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_link") 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && {
13662 test -z "$ac_c_werror_flag" ||
13663 test ! -s conftest.err
13664 } && test -s conftest$ac_exeext &&
13665 $as_test_x conftest$ac_exeext; then
13666 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13667 else
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13679 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13680 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13681 HAVE_JPEG=yes
13690 if test "${HAVE_JPEG}" = "yes"; then
13691 cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_JPEG 1
13693 _ACEOF
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <jpeglib.h>
13702 version=JPEG_LIB_VERSION
13704 _ACEOF
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_JPEG 1
13709 _ACEOF
13711 else
13712 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13713 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13714 HAVE_JPEG=no
13716 rm -f conftest*
13721 ### Use -lpng if available, unless `--with-png=no'.
13722 HAVE_PNG=no
13723 if test "${HAVE_X11}" = "yes"; then
13724 if test "${with_png}" != "no"; then
13725 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13726 # in /usr/include/libpng.
13729 for ac_header in png.h libpng/png.h
13731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 ac_res=`eval echo '${'$as_ac_Header'}'`
13739 { echo "$as_me:$LINENO: result: $ac_res" >&5
13740 echo "${ECHO_T}$ac_res" >&6; }
13741 else
13742 # Is the header compilable?
13743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 #include <$ac_header>
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_header_compiler=yes
13772 else
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h. */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13793 _ACEOF
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798 esac
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev/null && {
13807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 }; then
13810 ac_header_preproc=yes
13811 else
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_header_preproc=no
13818 rm -f conftest.err conftest.$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6; }
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13824 yes:no: )
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc=yes
13831 no:yes:* )
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13846 esac
13847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852 eval "$as_ac_Header=\$ac_header_preproc"
13854 ac_res=`eval echo '${'$as_ac_Header'}'`
13855 { echo "$as_me:$LINENO: result: $ac_res" >&5
13856 echo "${ECHO_T}$ac_res" >&6; }
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h <<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862 _ACEOF
13866 done
13868 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13869 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13870 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lpng -lz -lm $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char png_get_channels ();
13891 main ()
13893 return png_get_channels ();
13895 return 0;
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_png_png_get_channels=yes
13917 else
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_lib_png_png_get_channels=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13929 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13930 if test $ac_cv_lib_png_png_get_channels = yes; then
13931 HAVE_PNG=yes
13937 if test "${HAVE_PNG}" = "yes"; then
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_PNG 1
13941 _ACEOF
13946 ### Use -ltiff if available, unless `--with-tiff=no'.
13947 HAVE_TIFF=no
13948 if test "${HAVE_X11}" = "yes"; then
13949 if test "${with_tiff}" != "no"; then
13950 if test "${ac_cv_header_tiffio_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13952 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_tiffio_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13958 else
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13961 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13969 #include <tiffio.h>
13970 _ACEOF
13971 rm -f conftest.$ac_objext
13972 if { (ac_try="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14002 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14004 /* confdefs.h. */
14005 _ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <tiffio.h>
14010 _ACEOF
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14015 esac
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14018 ac_status=$?
14019 grep -v '^ *+' conftest.er1 >conftest.err
14020 rm -f conftest.er1
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null && {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14026 }; then
14027 ac_header_preproc=yes
14028 else
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_header_preproc=no
14035 rm -f conftest.err conftest.$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14041 yes:no: )
14042 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14045 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc=yes
14048 no:yes:* )
14049 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14058 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14063 esac
14064 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14065 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_tiffio_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 else
14069 ac_cv_header_tiffio_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14075 if test $ac_cv_header_tiffio_h = yes; then
14076 tifflibs="-lz -lm"
14077 # At least one tiff package requires the jpeg library.
14078 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14079 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14080 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-ltiff $tifflibs $LIBS"
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14096 #ifdef __cplusplus
14097 extern "C"
14098 #endif
14099 char TIFFGetVersion ();
14101 main ()
14103 return TIFFGetVersion ();
14105 return 0;
14107 _ACEOF
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (ac_try="$ac_link"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_tiff_TIFFGetVersion=yes
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_tiff_TIFFGetVersion=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14139 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14140 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14141 HAVE_TIFF=yes
14149 if test "${HAVE_TIFF}" = "yes"; then
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_TIFF 1
14153 _ACEOF
14158 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14159 HAVE_GIF=no
14160 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14161 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14169 else
14170 # Is the header compilable?
14171 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14172 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 #include <gif_lib.h>
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (ac_try="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14187 esac
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14190 ac_status=$?
14191 grep -v '^ *+' conftest.er1 >conftest.err
14192 rm -f conftest.er1
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_header_compiler=yes
14200 else
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_header_compiler=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14209 echo "${ECHO_T}$ac_header_compiler" >&6; }
14211 # Is the header present?
14212 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14213 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <gif_lib.h>
14221 _ACEOF
14222 if { (ac_try="$ac_cpp conftest.$ac_ext"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14226 esac
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } >/dev/null && {
14235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 }; then
14238 ac_header_preproc=yes
14239 else
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_header_preproc=no
14246 rm -f conftest.err conftest.$ac_ext
14247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 echo "${ECHO_T}$ac_header_preproc" >&6; }
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14252 yes:no: )
14253 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14254 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14256 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14257 ac_header_preproc=yes
14259 no:yes:* )
14260 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14261 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14263 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14265 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14267 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14269 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14271 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14274 esac
14275 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14276 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280 ac_cv_header_gif_lib_h=$ac_header_preproc
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14283 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14286 if test $ac_cv_header_gif_lib_h = yes; then
14287 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14288 # Earlier versions can crash Emacs.
14289 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14290 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14291 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294 ac_check_lib_save_LIBS=$LIBS
14295 LIBS="-lgif $LIBS"
14296 cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h. */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char EGifPutExtensionLast ();
14311 main ()
14313 return EGifPutExtensionLast ();
14315 return 0;
14317 _ACEOF
14318 rm -f conftest.$ac_objext conftest$ac_exeext
14319 if { (ac_try="$ac_link"
14320 case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14326 ac_status=$?
14327 grep -v '^ *+' conftest.er1 >conftest.err
14328 rm -f conftest.er1
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && {
14332 test -z "$ac_c_werror_flag" ||
14333 test ! -s conftest.err
14334 } && test -s conftest$ac_exeext &&
14335 $as_test_x conftest$ac_exeext; then
14336 ac_cv_lib_gif_EGifPutExtensionLast=yes
14337 else
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_lib_gif_EGifPutExtensionLast=no
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14349 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14350 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14351 HAVE_GIF=yes
14352 else
14353 try_libungif=yes
14360 if test "$HAVE_GIF" = yes; then
14361 ac_gif_lib_name="-lgif"
14364 # If gif_lib.h but no libgif, try libungif.
14365 if test x"$try_libungif" = xyes; then
14366 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14367 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14368 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371 ac_check_lib_save_LIBS=$LIBS
14372 LIBS="-lungif $LIBS"
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14383 #ifdef __cplusplus
14384 extern "C"
14385 #endif
14386 char EGifPutExtensionLast ();
14388 main ()
14390 return EGifPutExtensionLast ();
14392 return 0;
14394 _ACEOF
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest$ac_exeext &&
14412 $as_test_x conftest$ac_exeext; then
14413 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ac_cv_lib_ungif_EGifPutExtensionLast=no
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422 conftest$ac_exeext conftest.$ac_ext
14423 LIBS=$ac_check_lib_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14426 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14427 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14428 HAVE_GIF=yes
14432 if test "$HAVE_GIF" = yes; then
14434 cat >>confdefs.h <<\_ACEOF
14435 #define LIBGIF -lungif
14436 _ACEOF
14438 ac_gif_lib_name="-lungif"
14442 if test "${HAVE_GIF}" = "yes"; then
14444 cat >>confdefs.h <<\_ACEOF
14445 #define HAVE_GIF 1
14446 _ACEOF
14451 if test "${HAVE_X11}" = "yes"; then
14452 MISSING=""
14453 WITH_NO=""
14454 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14455 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14456 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14457 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14458 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14459 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14460 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14461 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14462 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14463 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14465 if test "X${MISSING}" != X; then
14466 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14467 $MISSING
14468 Maybe some development libraries/packages are missing?
14469 If you don't want to link with them give
14470 $WITH_NO
14471 as options to configure" >&5
14472 echo "$as_me: error: The following required libraries were not found:
14473 $MISSING
14474 Maybe some development libraries/packages are missing?
14475 If you don't want to link with them give
14476 $WITH_NO
14477 as options to configure" >&2;}
14478 { (exit 1); exit 1; }; }
14482 ### Use -lgpm if available, unless `--with-gpm=no'.
14483 HAVE_GPM=no
14484 if test "${with_gpm}" != "no"; then
14485 if test "${ac_cv_header_gpm_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14487 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_gpm_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14493 else
14494 # Is the header compilable?
14495 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14496 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14504 #include <gpm.h>
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (ac_try="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14511 esac
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14514 ac_status=$?
14515 grep -v '^ *+' conftest.er1 >conftest.err
14516 rm -f conftest.er1
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.$ac_objext; then
14523 ac_header_compiler=yes
14524 else
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_header_compiler=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14533 echo "${ECHO_T}$ac_header_compiler" >&6; }
14535 # Is the header present?
14536 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14537 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <gpm.h>
14545 _ACEOF
14546 if { (ac_try="$ac_cpp conftest.$ac_ext"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14550 esac
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } >/dev/null && {
14559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14561 }; then
14562 ac_header_preproc=yes
14563 else
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.$ac_ext >&5
14567 ac_header_preproc=no
14570 rm -f conftest.err conftest.$ac_ext
14571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14572 echo "${ECHO_T}$ac_header_preproc" >&6; }
14574 # So? What about this header?
14575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14576 yes:no: )
14577 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14578 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14580 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14581 ac_header_preproc=yes
14583 no:yes:* )
14584 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14585 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14587 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14589 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14591 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14593 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14595 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14598 esac
14599 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14600 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14601 if test "${ac_cv_header_gpm_h+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604 ac_cv_header_gpm_h=$ac_header_preproc
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14610 if test $ac_cv_header_gpm_h = yes; then
14611 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14612 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14613 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616 ac_check_lib_save_LIBS=$LIBS
14617 LIBS="-lgpm $LIBS"
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14625 /* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
14628 #ifdef __cplusplus
14629 extern "C"
14630 #endif
14631 char Gpm_Open ();
14633 main ()
14635 return Gpm_Open ();
14637 return 0;
14639 _ACEOF
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (ac_try="$ac_link"
14642 case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645 esac
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest$ac_exeext &&
14657 $as_test_x conftest$ac_exeext; then
14658 ac_cv_lib_gpm_Gpm_Open=yes
14659 else
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_lib_gpm_Gpm_Open=no
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14668 LIBS=$ac_check_lib_save_LIBS
14670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14671 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14672 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14673 HAVE_GPM=yes
14681 if test "${HAVE_GPM}" = "yes"; then
14683 cat >>confdefs.h <<\_ACEOF
14684 #define HAVE_GPM 1
14685 _ACEOF
14689 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14690 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14691 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14692 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14696 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14697 else
14698 # Is the header compilable?
14699 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14700 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14702 /* confdefs.h. */
14703 _ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 #include <malloc/malloc.h>
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714 *) ac_try_echo=$ac_try;;
14715 esac
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.$ac_objext; then
14727 ac_header_compiler=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_header_compiler=no
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 echo "${ECHO_T}$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14741 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <malloc/malloc.h>
14749 _ACEOF
14750 if { (ac_try="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } >/dev/null && {
14763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 }; then
14766 ac_header_preproc=yes
14767 else
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_preproc=no
14774 rm -f conftest.err conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776 echo "${ECHO_T}$ac_header_preproc" >&6; }
14778 # So? What about this header?
14779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14780 yes:no: )
14781 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14782 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14784 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14785 ac_header_preproc=yes
14787 no:yes:* )
14788 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14789 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14791 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14793 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14795 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14797 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14799 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14802 esac
14803 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14804 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14805 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14810 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14811 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14814 if test $ac_cv_header_malloc_malloc_h = yes; then
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_MALLOC_MALLOC_H 1
14818 _ACEOF
14824 ### Use NeXTstep API to implement GUI.
14825 if test "${HAVE_NS}" = "yes"; then
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_NS 1
14829 _ACEOF
14831 if test "${NS_IMPL_COCOA}" = "yes"; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define NS_IMPL_COCOA 1
14835 _ACEOF
14838 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define COCOA_EXPERIMENTAL_CTRL_G 1
14842 _ACEOF
14845 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14847 cat >>confdefs.h <<\_ACEOF
14848 #define NS_IMPL_GNUSTEP 1
14849 _ACEOF
14852 # We also have mouse menus.
14853 HAVE_MENUS=yes
14857 ### Use session management (-lSM -lICE) if available
14858 HAVE_X_SM=no
14859 if test "${HAVE_X11}" = "yes"; then
14860 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14861 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14862 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14863 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14867 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14868 else
14869 # Is the header compilable?
14870 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14871 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <X11/SM/SMlib.h>
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (ac_try="$ac_compile"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14886 esac
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest.$ac_objext; then
14898 ac_header_compiler=yes
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_header_compiler=no
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14908 echo "${ECHO_T}$ac_header_compiler" >&6; }
14910 # Is the header present?
14911 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14912 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14913 cat >conftest.$ac_ext <<_ACEOF
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <X11/SM/SMlib.h>
14920 _ACEOF
14921 if { (ac_try="$ac_cpp conftest.$ac_ext"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } >/dev/null && {
14934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 }; then
14937 ac_header_preproc=yes
14938 else
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_preproc=no
14945 rm -f conftest.err conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14947 echo "${ECHO_T}$ac_header_preproc" >&6; }
14949 # So? What about this header?
14950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14951 yes:no: )
14952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14953 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14956 ac_header_preproc=yes
14958 no:yes:* )
14959 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14960 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14962 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14964 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14966 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14968 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14970 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14973 esac
14974 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14975 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14976 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14981 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14982 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14985 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14986 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14987 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14988 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-lSM -lICE $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14994 /* confdefs.h. */
14995 _ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 char SmcOpenConnection ();
15008 main ()
15010 return SmcOpenConnection ();
15012 return 0;
15014 _ACEOF
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (ac_try="$ac_link"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_link") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && {
15029 test -z "$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 } && test -s conftest$ac_exeext &&
15032 $as_test_x conftest$ac_exeext; then
15033 ac_cv_lib_SM_SmcOpenConnection=yes
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_lib_SM_SmcOpenConnection=no
15041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15042 conftest$ac_exeext conftest.$ac_ext
15043 LIBS=$ac_check_lib_save_LIBS
15045 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15046 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15047 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15048 HAVE_X_SM=yes
15055 if test "${HAVE_X_SM}" = "yes"; then
15057 cat >>confdefs.h <<\_ACEOF
15058 #define HAVE_X_SM 1
15059 _ACEOF
15061 case "$LIBS" in
15062 *-lSM*) ;;
15063 *) LIBS="-lSM -lICE $LIBS" ;;
15064 esac
15068 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15069 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15070 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15071 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <netdb.h>
15082 main ()
15084 return h_errno;
15086 return 0;
15088 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
15107 emacs_cv_netdb_declares_h_errno=yes
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 emacs_cv_netdb_declares_h_errno=no
15115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15116 conftest$ac_exeext conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15119 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15120 if test $emacs_cv_netdb_declares_h_errno = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define HAVE_H_ERRNO 1
15124 _ACEOF
15128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15129 # for constant arguments. Useless!
15130 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15132 if test "${ac_cv_working_alloca_h+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h. */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <alloca.h>
15143 main ()
15145 char *p = (char *) alloca (2 * sizeof (int));
15146 if (p) return 0;
15148 return 0;
15150 _ACEOF
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (ac_try="$ac_link"
15153 case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_link") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest$ac_exeext &&
15168 $as_test_x conftest$ac_exeext; then
15169 ac_cv_working_alloca_h=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15174 ac_cv_working_alloca_h=no
15177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15178 conftest$ac_exeext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15181 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15182 if test $ac_cv_working_alloca_h = yes; then
15184 cat >>confdefs.h <<\_ACEOF
15185 #define HAVE_ALLOCA_H 1
15186 _ACEOF
15190 { echo "$as_me:$LINENO: checking for alloca" >&5
15191 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15192 if test "${ac_cv_func_alloca_works+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 else
15195 cat >conftest.$ac_ext <<_ACEOF
15196 /* confdefs.h. */
15197 _ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 #ifdef __GNUC__
15202 # define alloca __builtin_alloca
15203 #else
15204 # ifdef _MSC_VER
15205 # include <malloc.h>
15206 # define alloca _alloca
15207 # else
15208 # ifdef HAVE_ALLOCA_H
15209 # include <alloca.h>
15210 # else
15211 # ifdef _AIX
15212 #pragma alloca
15213 # else
15214 # ifndef alloca /* predefined by HP cc +Olibcalls */
15215 char *alloca ();
15216 # endif
15217 # endif
15218 # endif
15219 # endif
15220 #endif
15223 main ()
15225 char *p = (char *) alloca (1);
15226 if (p) return 0;
15228 return 0;
15230 _ACEOF
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_link") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext &&
15248 $as_test_x conftest$ac_exeext; then
15249 ac_cv_func_alloca_works=yes
15250 else
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_func_alloca_works=no
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258 conftest$ac_exeext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15261 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15263 if test $ac_cv_func_alloca_works = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_ALLOCA 1
15267 _ACEOF
15269 else
15270 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15271 # that cause trouble. Some versions do not even contain alloca or
15272 # contain a buggy version. If you still want to use their alloca,
15273 # use ar to extract alloca.o from them instead of compiling alloca.c.
15275 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15277 cat >>confdefs.h <<\_ACEOF
15278 #define C_ALLOCA 1
15279 _ACEOF
15282 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15283 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15284 if test "${ac_cv_os_cray+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #if defined CRAY && ! defined CRAY2
15294 webecray
15295 #else
15296 wenotbecray
15297 #endif
15299 _ACEOF
15300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15301 $EGREP "webecray" >/dev/null 2>&1; then
15302 ac_cv_os_cray=yes
15303 else
15304 ac_cv_os_cray=no
15306 rm -f conftest*
15309 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15310 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15311 if test $ac_cv_os_cray = yes; then
15312 for ac_func in _getb67 GETB67 getb67; do
15313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15327 #define $ac_func innocuous_$ac_func
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15334 #ifdef __STDC__
15335 # include <limits.h>
15336 #else
15337 # include <assert.h>
15338 #endif
15340 #undef $ac_func
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 char $ac_func ();
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined __stub_$ac_func || defined __stub___$ac_func
15353 choke me
15354 #endif
15357 main ()
15359 return $ac_func ();
15361 return 0;
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15372 ac_status=$?
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 eval "$as_ac_var=yes"
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 eval "$as_ac_var=no"
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15393 ac_res=`eval echo '${'$as_ac_var'}'`
15394 { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 #define CRAY_STACKSEG_END $ac_func
15400 _ACEOF
15402 break
15405 done
15408 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15409 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15410 if test "${ac_cv_c_stack_direction+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 if test "$cross_compiling" = yes; then
15414 ac_cv_c_stack_direction=0
15415 else
15416 cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h. */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422 $ac_includes_default
15424 find_stack_direction ()
15426 static char *addr = 0;
15427 auto char dummy;
15428 if (addr == 0)
15430 addr = &dummy;
15431 return find_stack_direction ();
15433 else
15434 return (&dummy > addr) ? 1 : -1;
15438 main ()
15440 return find_stack_direction () < 0;
15442 _ACEOF
15443 rm -f conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_link") 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15457 esac
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_c_stack_direction=1
15464 else
15465 echo "$as_me: program exited with status $ac_status" >&5
15466 echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ( exit $ac_status )
15470 ac_cv_c_stack_direction=-1
15472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15480 cat >>confdefs.h <<_ACEOF
15481 #define STACK_DIRECTION $ac_cv_c_stack_direction
15482 _ACEOF
15488 if test x"$ac_cv_func_alloca_works" != xyes; then
15489 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15490 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15491 { (exit 1); exit 1; }; }
15494 # fmod, logb, and frexp are found in -lm on most systems.
15495 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15497 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15498 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15499 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 ac_check_lib_save_LIBS=$LIBS
15503 LIBS="-lm $LIBS"
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15514 #ifdef __cplusplus
15515 extern "C"
15516 #endif
15517 char sqrt ();
15519 main ()
15521 return sqrt ();
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (ac_try="$ac_link"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_link") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } && {
15540 test -z "$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 } && test -s conftest$ac_exeext &&
15543 $as_test_x conftest$ac_exeext; then
15544 ac_cv_lib_m_sqrt=yes
15545 else
15546 echo "$as_me: failed program was:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 ac_cv_lib_m_sqrt=no
15552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15557 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15558 if test $ac_cv_lib_m_sqrt = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_LIBM 1
15561 _ACEOF
15563 LIBS="-lm $LIBS"
15568 # Check for mail-locking functions in a "mail" library. Probably this should
15569 # have the same check as for liblockfile below.
15571 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15572 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15573 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lmail $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h. */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any GCC internal prototype to avoid an error.
15586 Use char because int might match the return type of a GCC
15587 builtin and then its argument prototype would still apply. */
15588 #ifdef __cplusplus
15589 extern "C"
15590 #endif
15591 char maillock ();
15593 main ()
15595 return maillock ();
15597 return 0;
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15608 ac_status=$?
15609 grep -v '^ *+' conftest.er1 >conftest.err
15610 rm -f conftest.er1
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest$ac_exeext &&
15617 $as_test_x conftest$ac_exeext; then
15618 ac_cv_lib_mail_maillock=yes
15619 else
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_cv_lib_mail_maillock=no
15626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15630 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15631 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15632 if test $ac_cv_lib_mail_maillock = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define HAVE_LIBMAIL 1
15635 _ACEOF
15637 LIBS="-lmail $LIBS"
15642 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15643 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15644 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 else
15647 ac_check_lib_save_LIBS=$LIBS
15648 LIBS="-llockfile $LIBS"
15649 cat >conftest.$ac_ext <<_ACEOF
15650 /* confdefs.h. */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15656 /* Override any GCC internal prototype to avoid an error.
15657 Use char because int might match the return type of a GCC
15658 builtin and then its argument prototype would still apply. */
15659 #ifdef __cplusplus
15660 extern "C"
15661 #endif
15662 char maillock ();
15664 main ()
15666 return maillock ();
15668 return 0;
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_link") 2>conftest.er1
15679 ac_status=$?
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest$ac_exeext &&
15688 $as_test_x conftest$ac_exeext; then
15689 ac_cv_lib_lockfile_maillock=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_lockfile_maillock=no
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15702 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15703 if test $ac_cv_lib_lockfile_maillock = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_LIBLOCKFILE 1
15706 _ACEOF
15708 LIBS="-llockfile $LIBS"
15712 # If we have the shared liblockfile, assume we must use it for mail
15713 # locking (e.g. Debian). If we couldn't link against liblockfile
15714 # (no liblockfile.a installed), ensure that we don't need to.
15715 if test "$ac_cv_lib_lockfile_maillock" = no; then
15716 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15717 set dummy liblockfile.so; ac_word=$2
15718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15720 if test "${ac_cv_prog_liblockfile+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 else
15723 if test -n "$liblockfile"; then
15724 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15725 else
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15728 for as_dir in $as_dummy
15730 IFS=$as_save_IFS
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15734 ac_cv_prog_liblockfile="yes"
15735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15736 break 2
15738 done
15739 done
15740 IFS=$as_save_IFS
15742 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15745 liblockfile=$ac_cv_prog_liblockfile
15746 if test -n "$liblockfile"; then
15747 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15748 echo "${ECHO_T}$liblockfile" >&6; }
15749 else
15750 { echo "$as_me:$LINENO: result: no" >&5
15751 echo "${ECHO_T}no" >&6; }
15755 if test $ac_cv_prog_liblockfile = yes; then
15756 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15757 This probably means that movemail could lose mail.
15758 There may be a \`development' package to install containing liblockfile." >&5
15759 echo "$as_me: error: Shared liblockfile found but can't link against it.
15760 This probably means that movemail could lose mail.
15761 There may be a \`development' package to install containing liblockfile." >&2;}
15762 { (exit 1); exit 1; }; }
15763 else :
15767 for ac_func in touchlock
15769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 cat >conftest.$ac_ext <<_ACEOF
15776 /* confdefs.h. */
15777 _ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15783 #define $ac_func innocuous_$ac_func
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char $ac_func (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15790 #ifdef __STDC__
15791 # include <limits.h>
15792 #else
15793 # include <assert.h>
15794 #endif
15796 #undef $ac_func
15798 /* Override any GCC internal prototype to avoid an error.
15799 Use char because int might match the return type of a GCC
15800 builtin and then its argument prototype would still apply. */
15801 #ifdef __cplusplus
15802 extern "C"
15803 #endif
15804 char $ac_func ();
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined __stub_$ac_func || defined __stub___$ac_func
15809 choke me
15810 #endif
15813 main ()
15815 return $ac_func ();
15817 return 0;
15819 _ACEOF
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15825 esac
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 eval "$as_ac_var=yes"
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 eval "$as_ac_var=no"
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15849 ac_res=`eval echo '${'$as_ac_var'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852 if test `eval echo '${'$as_ac_var'}'` = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15855 _ACEOF
15858 done
15861 for ac_header in maillock.h
15863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15873 else
15874 # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 #include <$ac_header>
15885 _ACEOF
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest.$ac_objext; then
15903 ac_header_compiler=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_compiler=no
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15913 echo "${ECHO_T}$ac_header_compiler" >&6; }
15915 # Is the header present?
15916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15919 /* confdefs.h. */
15920 _ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <$ac_header>
15925 _ACEOF
15926 if { (ac_try="$ac_cpp conftest.$ac_ext"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15933 ac_status=$?
15934 grep -v '^ *+' conftest.er1 >conftest.err
15935 rm -f conftest.er1
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } >/dev/null && {
15939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15941 }; then
15942 ac_header_preproc=yes
15943 else
15944 echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 yes:no: )
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15963 no:yes:* )
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15978 esac
15979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984 eval "$as_ac_Header=\$ac_header_preproc"
15986 ac_res=`eval echo '${'$as_ac_Header'}'`
15987 { echo "$as_me:$LINENO: result: $ac_res" >&5
15988 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15994 _ACEOF
15998 done
16072 for ac_func in gethostname getdomainname dup2 \
16073 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16074 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16075 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16076 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16077 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16078 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16079 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16080 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16081 cfmakeraw cfsetspeed
16083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16104 #ifdef __STDC__
16105 # include <limits.h>
16106 #else
16107 # include <assert.h>
16108 #endif
16110 #undef $ac_func
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16115 #ifdef __cplusplus
16116 extern "C"
16117 #endif
16118 char $ac_func ();
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined __stub_$ac_func || defined __stub___$ac_func
16123 choke me
16124 #endif
16127 main ()
16129 return $ac_func ();
16131 return 0;
16133 _ACEOF
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (ac_try="$ac_link"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16139 esac
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_link") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext &&
16151 $as_test_x conftest$ac_exeext; then
16152 eval "$as_ac_var=yes"
16153 else
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 eval "$as_ac_var=no"
16160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16161 conftest$ac_exeext conftest.$ac_ext
16163 ac_res=`eval echo '${'$as_ac_var'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166 if test `eval echo '${'$as_ac_var'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16169 _ACEOF
16172 done
16176 for ac_header in sys/un.h
16178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16188 else
16189 # Is the header compilable?
16190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h. */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16199 #include <$ac_header>
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16206 esac
16207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest.$ac_objext; then
16218 ac_header_compiler=yes
16219 else
16220 echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_compiler=no
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16228 echo "${ECHO_T}$ac_header_compiler" >&6; }
16230 # Is the header present?
16231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h. */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <$ac_header>
16240 _ACEOF
16241 if { (ac_try="$ac_cpp conftest.$ac_ext"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16245 esac
16246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16248 ac_status=$?
16249 grep -v '^ *+' conftest.er1 >conftest.err
16250 rm -f conftest.er1
16251 cat conftest.err >&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } >/dev/null && {
16254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16255 test ! -s conftest.err
16256 }; then
16257 ac_header_preproc=yes
16258 else
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_header_preproc=no
16265 rm -f conftest.err conftest.$ac_ext
16266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6; }
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 yes:no: )
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16276 ac_header_preproc=yes
16278 no:yes:* )
16279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293 esac
16294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 else
16299 eval "$as_ac_Header=\$ac_header_preproc"
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16309 _ACEOF
16313 done
16320 for ac_header in $ac_header_list
16322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16332 else
16333 # Is the header compilable?
16334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $ac_includes_default
16343 #include <$ac_header>
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16350 esac
16351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } && {
16359 test -z "$ac_c_werror_flag" ||
16360 test ! -s conftest.err
16361 } && test -s conftest.$ac_objext; then
16362 ac_header_compiler=yes
16363 else
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_header_compiler=no
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6; }
16374 # Is the header present?
16375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16384 _ACEOF
16385 if { (ac_try="$ac_cpp conftest.$ac_ext"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } >/dev/null && {
16398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16400 }; then
16401 ac_header_preproc=yes
16402 else
16403 echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 ac_header_preproc=no
16409 rm -f conftest.err conftest.$ac_ext
16410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16411 echo "${ECHO_T}$ac_header_preproc" >&6; }
16413 # So? What about this header?
16414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16415 yes:no: )
16416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16420 ac_header_preproc=yes
16422 no:yes:* )
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16437 esac
16438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443 eval "$as_ac_Header=\$ac_header_preproc"
16445 ac_res=`eval echo '${'$as_ac_Header'}'`
16446 { echo "$as_me:$LINENO: result: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16453 _ACEOF
16457 done
16467 for ac_func in $ac_func_list
16469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h. */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16483 #define $ac_func innocuous_$ac_func
16485 /* System header to define __stub macros and hopefully few prototypes,
16486 which can conflict with char $ac_func (); below.
16487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16488 <limits.h> exists even on freestanding compilers. */
16490 #ifdef __STDC__
16491 # include <limits.h>
16492 #else
16493 # include <assert.h>
16494 #endif
16496 #undef $ac_func
16498 /* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16501 #ifdef __cplusplus
16502 extern "C"
16503 #endif
16504 char $ac_func ();
16505 /* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508 #if defined __stub_$ac_func || defined __stub___$ac_func
16509 choke me
16510 #endif
16513 main ()
16515 return $ac_func ();
16517 return 0;
16519 _ACEOF
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext &&
16537 $as_test_x conftest$ac_exeext; then
16538 eval "$as_ac_var=yes"
16539 else
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 eval "$as_ac_var=no"
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16549 ac_res=`eval echo '${'$as_ac_var'}'`
16550 { echo "$as_me:$LINENO: result: $ac_res" >&5
16551 echo "${ECHO_T}$ac_res" >&6; }
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16555 _ACEOF
16558 done
16576 { echo "$as_me:$LINENO: checking for working mktime" >&5
16577 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16578 if test "${ac_cv_func_working_mktime+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 else
16581 if test "$cross_compiling" = yes; then
16582 ac_cv_func_working_mktime=no
16583 else
16584 cat >conftest.$ac_ext <<_ACEOF
16585 /* confdefs.h. */
16586 _ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 /* Test program from Paul Eggert and Tony Leneis. */
16591 #ifdef TIME_WITH_SYS_TIME
16592 # include <sys/time.h>
16593 # include <time.h>
16594 #else
16595 # ifdef HAVE_SYS_TIME_H
16596 # include <sys/time.h>
16597 # else
16598 # include <time.h>
16599 # endif
16600 #endif
16602 #include <stdlib.h>
16604 #ifdef HAVE_UNISTD_H
16605 # include <unistd.h>
16606 #endif
16608 #ifndef HAVE_ALARM
16609 # define alarm(X) /* empty */
16610 #endif
16612 /* Work around redefinition to rpl_putenv by other config tests. */
16613 #undef putenv
16615 static time_t time_t_max;
16616 static time_t time_t_min;
16618 /* Values we'll use to set the TZ environment variable. */
16619 static char *tz_strings[] = {
16620 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16621 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16623 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16625 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16626 Based on a problem report from Andreas Jaeger. */
16627 static int
16628 spring_forward_gap ()
16630 /* glibc (up to about 1998-10-07) failed this test. */
16631 struct tm tm;
16633 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16634 instead of "TZ=America/Vancouver" in order to detect the bug even
16635 on systems that don't support the Olson extension, or don't have the
16636 full zoneinfo tables installed. */
16637 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16639 tm.tm_year = 98;
16640 tm.tm_mon = 3;
16641 tm.tm_mday = 5;
16642 tm.tm_hour = 2;
16643 tm.tm_min = 0;
16644 tm.tm_sec = 0;
16645 tm.tm_isdst = -1;
16646 return mktime (&tm) != (time_t) -1;
16649 static int
16650 mktime_test1 (now)
16651 time_t now;
16653 struct tm *lt;
16654 return ! (lt = localtime (&now)) || mktime (lt) == now;
16657 static int
16658 mktime_test (now)
16659 time_t now;
16661 return (mktime_test1 (now)
16662 && mktime_test1 ((time_t) (time_t_max - now))
16663 && mktime_test1 ((time_t) (time_t_min + now)));
16666 static int
16667 irix_6_4_bug ()
16669 /* Based on code from Ariel Faigon. */
16670 struct tm tm;
16671 tm.tm_year = 96;
16672 tm.tm_mon = 3;
16673 tm.tm_mday = 0;
16674 tm.tm_hour = 0;
16675 tm.tm_min = 0;
16676 tm.tm_sec = 0;
16677 tm.tm_isdst = -1;
16678 mktime (&tm);
16679 return tm.tm_mon == 2 && tm.tm_mday == 31;
16682 static int
16683 bigtime_test (j)
16684 int j;
16686 struct tm tm;
16687 time_t now;
16688 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16689 now = mktime (&tm);
16690 if (now != (time_t) -1)
16692 struct tm *lt = localtime (&now);
16693 if (! (lt
16694 && lt->tm_year == tm.tm_year
16695 && lt->tm_mon == tm.tm_mon
16696 && lt->tm_mday == tm.tm_mday
16697 && lt->tm_hour == tm.tm_hour
16698 && lt->tm_min == tm.tm_min
16699 && lt->tm_sec == tm.tm_sec
16700 && lt->tm_yday == tm.tm_yday
16701 && lt->tm_wday == tm.tm_wday
16702 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16703 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16704 return 0;
16706 return 1;
16709 static int
16710 year_2050_test ()
16712 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16713 ignoring leap seconds. */
16714 unsigned long int answer = 2527315200UL;
16716 struct tm tm;
16717 time_t t;
16718 tm.tm_year = 2050 - 1900;
16719 tm.tm_mon = 2 - 1;
16720 tm.tm_mday = 1;
16721 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16722 tm.tm_isdst = -1;
16724 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16725 instead of "TZ=America/Vancouver" in order to detect the bug even
16726 on systems that don't support the Olson extension, or don't have the
16727 full zoneinfo tables installed. */
16728 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16730 t = mktime (&tm);
16732 /* Check that the result is either a failure, or close enough
16733 to the correct answer that we can assume the discrepancy is
16734 due to leap seconds. */
16735 return (t == (time_t) -1
16736 || (0 < t && answer - 120 <= t && t <= answer + 120));
16740 main ()
16742 time_t t, delta;
16743 int i, j;
16745 /* This test makes some buggy mktime implementations loop.
16746 Give up after 60 seconds; a mktime slower than that
16747 isn't worth using anyway. */
16748 alarm (60);
16750 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16751 continue;
16752 time_t_max--;
16753 if ((time_t) -1 < 0)
16754 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16755 continue;
16756 delta = time_t_max / 997; /* a suitable prime number */
16757 for (i = 0; i < N_STRINGS; i++)
16759 if (tz_strings[i])
16760 putenv (tz_strings[i]);
16762 for (t = 0; t <= time_t_max - delta; t += delta)
16763 if (! mktime_test (t))
16764 return 1;
16765 if (! (mktime_test ((time_t) 1)
16766 && mktime_test ((time_t) (60 * 60))
16767 && mktime_test ((time_t) (60 * 60 * 24))))
16768 return 1;
16770 for (j = 1; 0 < j; j *= 2)
16771 if (! bigtime_test (j))
16772 return 1;
16773 if (! bigtime_test (j - 1))
16774 return 1;
16776 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16778 _ACEOF
16779 rm -f conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784 esac
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_func_working_mktime=yes
16800 else
16801 echo "$as_me: program exited with status $ac_status" >&5
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ( exit $ac_status )
16806 ac_cv_func_working_mktime=no
16808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16814 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16815 if test $ac_cv_func_working_mktime = no; then
16816 case " $LIBOBJS " in
16817 *" mktime.$ac_objext "* ) ;;
16818 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16820 esac
16824 if test "$ac_cv_func_working_mktime" = no; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define BROKEN_MKTIME 1
16828 _ACEOF
16832 ac_have_func=no # yes means we've found a way to get the load average.
16834 # Make sure getloadavg.c is where it belongs, at configure-time.
16835 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16836 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16837 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16838 { (exit 1); exit 1; }; }
16840 ac_save_LIBS=$LIBS
16842 # Check for getloadavg, but be sure not to touch the cache variable.
16843 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16844 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16845 if test "${ac_cv_func_getloadavg+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 else
16848 cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h. */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16856 #define getloadavg innocuous_getloadavg
16858 /* System header to define __stub macros and hopefully few prototypes,
16859 which can conflict with char getloadavg (); below.
16860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16861 <limits.h> exists even on freestanding compilers. */
16863 #ifdef __STDC__
16864 # include <limits.h>
16865 #else
16866 # include <assert.h>
16867 #endif
16869 #undef getloadavg
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16874 #ifdef __cplusplus
16875 extern "C"
16876 #endif
16877 char getloadavg ();
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined __stub_getloadavg || defined __stub___getloadavg
16882 choke me
16883 #endif
16886 main ()
16888 return getloadavg ();
16890 return 0;
16892 _ACEOF
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16901 ac_status=$?
16902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_func_getloadavg=yes
16912 else
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_func_getloadavg=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16923 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16924 if test $ac_cv_func_getloadavg = yes; then
16925 exit 0
16926 else
16927 exit 1
16929 ) && ac_have_func=yes
16931 # On HPUX9, an unprivileged user can get load averages through this function.
16933 for ac_func in pstat_getdynamic
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h. */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16949 #define $ac_func innocuous_$ac_func
16951 /* System header to define __stub macros and hopefully few prototypes,
16952 which can conflict with char $ac_func (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16956 #ifdef __STDC__
16957 # include <limits.h>
16958 #else
16959 # include <assert.h>
16960 #endif
16962 #undef $ac_func
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 char $ac_func ();
16971 /* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16975 choke me
16976 #endif
16979 main ()
16981 return $ac_func ();
16983 return 0;
16985 _ACEOF
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_link") 2>conftest.er1
16994 ac_status=$?
16995 grep -v '^ *+' conftest.er1 >conftest.err
16996 rm -f conftest.er1
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest$ac_exeext &&
17003 $as_test_x conftest$ac_exeext; then
17004 eval "$as_ac_var=yes"
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no"
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021 _ACEOF
17024 done
17027 # Solaris has libkstat which does not require root.
17029 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17030 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17031 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034 ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-lkstat $LIBS"
17036 cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h. */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17046 #ifdef __cplusplus
17047 extern "C"
17048 #endif
17049 char kstat_open ();
17051 main ()
17053 return kstat_open ();
17055 return 0;
17057 _ACEOF
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } && {
17072 test -z "$ac_c_werror_flag" ||
17073 test ! -s conftest.err
17074 } && test -s conftest$ac_exeext &&
17075 $as_test_x conftest$ac_exeext; then
17076 ac_cv_lib_kstat_kstat_open=yes
17077 else
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 ac_cv_lib_kstat_kstat_open=no
17084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17088 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17089 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17090 if test $ac_cv_lib_kstat_kstat_open = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_LIBKSTAT 1
17093 _ACEOF
17095 LIBS="-lkstat $LIBS"
17099 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17101 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17102 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17103 # to get the right answer into the cache.
17104 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17105 if test $ac_have_func = no; then
17106 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17107 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17108 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-lelf $LIBS"
17113 cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h. */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17123 #ifdef __cplusplus
17124 extern "C"
17125 #endif
17126 char elf_begin ();
17128 main ()
17130 return elf_begin ();
17132 return 0;
17134 _ACEOF
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext &&
17152 $as_test_x conftest$ac_exeext; then
17153 ac_cv_lib_elf_elf_begin=yes
17154 else
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_lib_elf_elf_begin=no
17161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162 conftest$ac_exeext conftest.$ac_ext
17163 LIBS=$ac_check_lib_save_LIBS
17165 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17166 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17167 if test $ac_cv_lib_elf_elf_begin = yes; then
17168 LIBS="-lelf $LIBS"
17172 if test $ac_have_func = no; then
17173 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17174 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17175 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178 ac_check_lib_save_LIBS=$LIBS
17179 LIBS="-lkvm $LIBS"
17180 cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h. */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 /* Override any GCC internal prototype to avoid an error.
17188 Use char because int might match the return type of a GCC
17189 builtin and then its argument prototype would still apply. */
17190 #ifdef __cplusplus
17191 extern "C"
17192 #endif
17193 char kvm_open ();
17195 main ()
17197 return kvm_open ();
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17220 ac_cv_lib_kvm_kvm_open=yes
17221 else
17222 echo "$as_me: failed program was:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_lib_kvm_kvm_open=no
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17233 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17234 if test $ac_cv_lib_kvm_kvm_open = yes; then
17235 LIBS="-lkvm $LIBS"
17238 # Check for the 4.4BSD definition of getloadavg.
17239 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17240 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17241 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244 ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lutil $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h. */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17253 /* Override any GCC internal prototype to avoid an error.
17254 Use char because int might match the return type of a GCC
17255 builtin and then its argument prototype would still apply. */
17256 #ifdef __cplusplus
17257 extern "C"
17258 #endif
17259 char getloadavg ();
17261 main ()
17263 return getloadavg ();
17265 return 0;
17267 _ACEOF
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17286 ac_cv_lib_util_getloadavg=yes
17287 else
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_lib_util_getloadavg=no
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17299 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17300 if test $ac_cv_lib_util_getloadavg = yes; then
17301 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17306 if test $ac_have_func = no; then
17307 # There is a commonly available library for RS/6000 AIX.
17308 # Since it is not a standard part of AIX, it might be installed locally.
17309 ac_getloadavg_LIBS=$LIBS
17310 LIBS="-L/usr/local/lib $LIBS"
17311 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17312 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17313 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316 ac_check_lib_save_LIBS=$LIBS
17317 LIBS="-lgetloadavg $LIBS"
17318 cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h. */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17328 #ifdef __cplusplus
17329 extern "C"
17330 #endif
17331 char getloadavg ();
17333 main ()
17335 return getloadavg ();
17337 return 0;
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 ac_cv_lib_getloadavg_getloadavg=yes
17359 else
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_lib_getloadavg_getloadavg=no
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17371 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17372 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17373 LIBS="-lgetloadavg $LIBS"
17374 else
17375 LIBS=$ac_getloadavg_LIBS
17380 # Make sure it is really in the library, if we think we found it,
17381 # otherwise set up the replacement function.
17383 for ac_func in getloadavg
17385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define $ac_func innocuous_$ac_func
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17406 #ifdef __STDC__
17407 # include <limits.h>
17408 #else
17409 # include <assert.h>
17410 #endif
17412 #undef $ac_func
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17417 #ifdef __cplusplus
17418 extern "C"
17419 #endif
17420 char $ac_func ();
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined __stub_$ac_func || defined __stub___$ac_func
17425 choke me
17426 #endif
17429 main ()
17431 return $ac_func ();
17433 return 0;
17435 _ACEOF
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441 esac
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17444 ac_status=$?
17445 grep -v '^ *+' conftest.er1 >conftest.err
17446 rm -f conftest.er1
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest$ac_exeext &&
17453 $as_test_x conftest$ac_exeext; then
17454 eval "$as_ac_var=yes"
17455 else
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no"
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17471 _ACEOF
17473 else
17474 case " $LIBOBJS " in
17475 *" getloadavg.$ac_objext "* ) ;;
17476 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17478 esac
17481 cat >>confdefs.h <<\_ACEOF
17482 #define C_GETLOADAVG 1
17483 _ACEOF
17485 # Figure out what our getloadavg.c needs.
17486 ac_have_func=no
17487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17488 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17489 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17490 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17494 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17495 else
17496 # Is the header compilable?
17497 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17498 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 #include <sys/dg_sys_info.h>
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17513 esac
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17516 ac_status=$?
17517 grep -v '^ *+' conftest.er1 >conftest.err
17518 rm -f conftest.er1
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 ac_header_compiler=yes
17526 else
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_compiler=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17535 echo "${ECHO_T}$ac_header_compiler" >&6; }
17537 # Is the header present?
17538 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17539 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <sys/dg_sys_info.h>
17547 _ACEOF
17548 if { (ac_try="$ac_cpp conftest.$ac_ext"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } >/dev/null && {
17561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17562 test ! -s conftest.err
17563 }; then
17564 ac_header_preproc=yes
17565 else
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 ac_header_preproc=no
17572 rm -f conftest.err conftest.$ac_ext
17573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17574 echo "${ECHO_T}$ac_header_preproc" >&6; }
17576 # So? What about this header?
17577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17578 yes:no: )
17579 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17580 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17581 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17582 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17583 ac_header_preproc=yes
17585 no:yes:* )
17586 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17587 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17589 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17590 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17591 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17592 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17593 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17594 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17595 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17596 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17597 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17600 esac
17601 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17602 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17603 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17608 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17609 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17612 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17613 ac_have_func=yes
17615 cat >>confdefs.h <<\_ACEOF
17616 #define DGUX 1
17617 _ACEOF
17620 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17621 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17622 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625 ac_check_lib_save_LIBS=$LIBS
17626 LIBS="-ldgc $LIBS"
17627 cat >conftest.$ac_ext <<_ACEOF
17628 /* confdefs.h. */
17629 _ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17637 #ifdef __cplusplus
17638 extern "C"
17639 #endif
17640 char dg_sys_info ();
17642 main ()
17644 return dg_sys_info ();
17646 return 0;
17648 _ACEOF
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (ac_try="$ac_link"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17654 esac
17655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_link") 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest$ac_exeext &&
17666 $as_test_x conftest$ac_exeext; then
17667 ac_cv_lib_dgc_dg_sys_info=yes
17668 else
17669 echo "$as_me: failed program was:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ac_cv_lib_dgc_dg_sys_info=no
17675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17676 conftest$ac_exeext conftest.$ac_ext
17677 LIBS=$ac_check_lib_save_LIBS
17679 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17680 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17681 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_LIBDGC 1
17684 _ACEOF
17686 LIBS="-ldgc $LIBS"
17694 if test "${ac_cv_header_locale_h+set}" = set; then
17695 { echo "$as_me:$LINENO: checking for locale.h" >&5
17696 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17697 if test "${ac_cv_header_locale_h+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17701 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17702 else
17703 # Is the header compilable?
17704 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17705 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 $ac_includes_default
17713 #include <locale.h>
17714 _ACEOF
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_compile") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest.$ac_objext; then
17732 ac_header_compiler=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_compiler=no
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17742 echo "${ECHO_T}$ac_header_compiler" >&6; }
17744 # Is the header present?
17745 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17746 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <locale.h>
17754 _ACEOF
17755 if { (ac_try="$ac_cpp conftest.$ac_ext"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759 esac
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17762 ac_status=$?
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } >/dev/null && {
17768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 }; then
17771 ac_header_preproc=yes
17772 else
17773 echo "$as_me: failed program was:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_header_preproc=no
17779 rm -f conftest.err conftest.$ac_ext
17780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17781 echo "${ECHO_T}$ac_header_preproc" >&6; }
17783 # So? What about this header?
17784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17785 yes:no: )
17786 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17787 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17788 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17789 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17790 ac_header_preproc=yes
17792 no:yes:* )
17793 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17794 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17796 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17798 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17800 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17802 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17804 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17807 esac
17808 { echo "$as_me:$LINENO: checking for locale.h" >&5
17809 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17810 if test "${ac_cv_header_locale_h+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813 ac_cv_header_locale_h=$ac_header_preproc
17815 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17816 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17822 for ac_func in setlocale
17824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829 else
17830 cat >conftest.$ac_ext <<_ACEOF
17831 /* confdefs.h. */
17832 _ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17838 #define $ac_func innocuous_$ac_func
17840 /* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17845 #ifdef __STDC__
17846 # include <limits.h>
17847 #else
17848 # include <assert.h>
17849 #endif
17851 #undef $ac_func
17853 /* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17856 #ifdef __cplusplus
17857 extern "C"
17858 #endif
17859 char $ac_func ();
17860 /* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 choke me
17865 #endif
17868 main ()
17870 return $ac_func ();
17872 return 0;
17874 _ACEOF
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17883 ac_status=$?
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext &&
17892 $as_test_x conftest$ac_exeext; then
17893 eval "$as_ac_var=yes"
17894 else
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 eval "$as_ac_var=no"
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval echo '${'$as_ac_var'}'`
17905 { echo "$as_me:$LINENO: result: $ac_res" >&5
17906 echo "${ECHO_T}$ac_res" >&6; }
17907 if test `eval echo '${'$as_ac_var'}'` = yes; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17910 _ACEOF
17913 done
17916 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17917 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17918 # Irix 4.0.5F has the header but not the library.
17919 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17920 ac_have_func=yes
17922 cat >>confdefs.h <<\_ACEOF
17923 #define SVR4 1
17924 _ACEOF
17928 if test $ac_have_func = no; then
17929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17930 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17931 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17932 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17936 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17937 else
17938 # Is the header compilable?
17939 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17940 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17941 cat >conftest.$ac_ext <<_ACEOF
17942 /* confdefs.h. */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 $ac_includes_default
17948 #include <inq_stats/cpustats.h>
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_header_compiler=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_header_compiler=no
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17977 echo "${ECHO_T}$ac_header_compiler" >&6; }
17979 # Is the header present?
17980 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17981 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <inq_stats/cpustats.h>
17989 _ACEOF
17990 if { (ac_try="$ac_cpp conftest.$ac_ext"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } >/dev/null && {
18003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 }; then
18006 ac_header_preproc=yes
18007 else
18008 echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_header_preproc=no
18014 rm -f conftest.err conftest.$ac_ext
18015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18016 echo "${ECHO_T}$ac_header_preproc" >&6; }
18018 # So? What about this header?
18019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18020 yes:no: )
18021 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18022 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18023 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18024 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18025 ac_header_preproc=yes
18027 no:yes:* )
18028 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18029 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18030 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18031 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18033 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18035 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18036 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18037 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18038 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18039 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18042 esac
18043 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18044 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18045 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18050 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18051 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18054 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18055 ac_have_func=yes
18057 cat >>confdefs.h <<\_ACEOF
18058 #define UMAX 1
18059 _ACEOF
18062 cat >>confdefs.h <<\_ACEOF
18063 #define UMAX4_3 1
18064 _ACEOF
18071 if test $ac_have_func = no; then
18072 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18073 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18074 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18075 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18079 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18080 else
18081 # Is the header compilable?
18082 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18083 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h. */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 #include <sys/cpustats.h>
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (ac_try="$ac_compile"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_compile") 2>conftest.er1
18101 ac_status=$?
18102 grep -v '^ *+' conftest.er1 >conftest.err
18103 rm -f conftest.er1
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && {
18107 test -z "$ac_c_werror_flag" ||
18108 test ! -s conftest.err
18109 } && test -s conftest.$ac_objext; then
18110 ac_header_compiler=yes
18111 else
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_header_compiler=no
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18120 echo "${ECHO_T}$ac_header_compiler" >&6; }
18122 # Is the header present?
18123 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18124 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18125 cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h. */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <sys/cpustats.h>
18132 _ACEOF
18133 if { (ac_try="$ac_cpp conftest.$ac_ext"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137 esac
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18140 ac_status=$?
18141 grep -v '^ *+' conftest.er1 >conftest.err
18142 rm -f conftest.er1
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } >/dev/null && {
18146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18147 test ! -s conftest.err
18148 }; then
18149 ac_header_preproc=yes
18150 else
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_header_preproc=no
18157 rm -f conftest.err conftest.$ac_ext
18158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18159 echo "${ECHO_T}$ac_header_preproc" >&6; }
18161 # So? What about this header?
18162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18163 yes:no: )
18164 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18165 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18166 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18167 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18168 ac_header_preproc=yes
18170 no:yes:* )
18171 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18172 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18173 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18174 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18175 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18176 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18177 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18178 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18179 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18180 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18181 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18182 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18185 esac
18186 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18187 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18188 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18194 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18197 if test $ac_cv_header_sys_cpustats_h = yes; then
18198 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18199 #define UMAX 1
18200 _ACEOF
18207 if test $ac_have_func = no; then
18209 for ac_header in mach/mach.h
18211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18218 ac_res=`eval echo '${'$as_ac_Header'}'`
18219 { echo "$as_me:$LINENO: result: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18221 else
18222 # Is the header compilable?
18223 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 #include <$ac_header>
18233 _ACEOF
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18239 esac
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18242 ac_status=$?
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_header_compiler=yes
18252 else
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18261 echo "${ECHO_T}$ac_header_compiler" >&6; }
18263 # Is the header present?
18264 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18267 /* confdefs.h. */
18268 _ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <$ac_header>
18273 _ACEOF
18274 if { (ac_try="$ac_cpp conftest.$ac_ext"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } >/dev/null && {
18287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18289 }; then
18290 ac_header_preproc=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6; }
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18304 yes:no: )
18305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18309 ac_header_preproc=yes
18311 no:yes:* )
18312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18326 esac
18327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332 eval "$as_ac_Header=\$ac_header_preproc"
18334 ac_res=`eval echo '${'$as_ac_Header'}'`
18335 { echo "$as_me:$LINENO: result: $ac_res" >&5
18336 echo "${ECHO_T}$ac_res" >&6; }
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18342 _ACEOF
18346 done
18351 for ac_header in nlist.h
18353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18363 else
18364 # Is the header compilable?
18365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18367 cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h. */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 $ac_includes_default
18374 #include <$ac_header>
18375 _ACEOF
18376 rm -f conftest.$ac_objext
18377 if { (ac_try="$ac_compile"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381 esac
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_compile") 2>conftest.er1
18384 ac_status=$?
18385 grep -v '^ *+' conftest.er1 >conftest.err
18386 rm -f conftest.er1
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); } && {
18390 test -z "$ac_c_werror_flag" ||
18391 test ! -s conftest.err
18392 } && test -s conftest.$ac_objext; then
18393 ac_header_compiler=yes
18394 else
18395 echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_header_compiler=no
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18403 echo "${ECHO_T}$ac_header_compiler" >&6; }
18405 # Is the header present?
18406 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 #include <$ac_header>
18415 _ACEOF
18416 if { (ac_try="$ac_cpp conftest.$ac_ext"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420 esac
18421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18423 ac_status=$?
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } >/dev/null && {
18429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18431 }; then
18432 ac_header_preproc=yes
18433 else
18434 echo "$as_me: failed program was:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_header_preproc=no
18440 rm -f conftest.err conftest.$ac_ext
18441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18442 echo "${ECHO_T}$ac_header_preproc" >&6; }
18444 # So? What about this header?
18445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18446 yes:no: )
18447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18451 ac_header_preproc=yes
18453 no:yes:* )
18454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18468 esac
18469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474 eval "$as_ac_Header=\$ac_header_preproc"
18476 ac_res=`eval echo '${'$as_ac_Header'}'`
18477 { echo "$as_me:$LINENO: result: $ac_res" >&5
18478 echo "${ECHO_T}$ac_res" >&6; }
18481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18482 cat >>confdefs.h <<_ACEOF
18483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18484 _ACEOF
18485 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18486 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18487 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 else
18490 cat >conftest.$ac_ext <<_ACEOF
18491 /* confdefs.h. */
18492 _ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 #include <nlist.h>
18499 main ()
18501 static struct nlist ac_aggr;
18502 if (ac_aggr.n_un.n_name)
18503 return 0;
18505 return 0;
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_compile") 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest.$ac_objext; then
18525 ac_cv_member_struct_nlist_n_un_n_name=yes
18526 else
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h. */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18536 #include <nlist.h>
18539 main ()
18541 static struct nlist ac_aggr;
18542 if (sizeof ac_aggr.n_un.n_name)
18543 return 0;
18545 return 0;
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553 esac
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_cv_member_struct_nlist_n_un_n_name=yes
18566 else
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_member_struct_nlist_n_un_n_name=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18579 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18580 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18584 _ACEOF
18587 cat >>confdefs.h <<\_ACEOF
18588 #define NLIST_NAME_UNION 1
18589 _ACEOF
18596 done
18599 done
18602 # Some definitions of getloadavg require that the program be installed setgid.
18603 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18604 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18605 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608 cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h. */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18615 #ifdef LDAV_PRIVILEGED
18616 Yowza Am I SETGID yet
18617 #endif
18618 _ACEOF
18619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18620 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18621 ac_cv_func_getloadavg_setgid=yes
18622 else
18623 ac_cv_func_getloadavg_setgid=no
18625 rm -f conftest*
18628 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18629 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18630 if test $ac_cv_func_getloadavg_setgid = yes; then
18631 NEED_SETGID=true
18633 cat >>confdefs.h <<\_ACEOF
18634 #define GETLOADAVG_PRIVILEGED 1
18635 _ACEOF
18637 else
18638 NEED_SETGID=false
18641 if test $ac_cv_func_getloadavg_setgid = yes; then
18642 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18643 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18644 if test "${ac_cv_group_kmem+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18648 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18649 # If we got an error (system does not support symlinks), try without -L.
18650 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18651 ac_cv_group_kmem=`echo $ac_ls_output \
18652 | sed -ne 's/[ ][ ]*/ /g;
18653 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18654 / /s/.* //;p;'`
18657 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18658 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18659 KMEM_GROUP=$ac_cv_group_kmem
18661 if test "x$ac_save_LIBS" = x; then
18662 GETLOADAVG_LIBS=$LIBS
18663 else
18664 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18666 LIBS=$ac_save_LIBS
18670 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18671 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18672 if test "${ac_cv_sys_largefile_source+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675 while :; do
18676 cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h. */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 #include <stdio.h>
18684 main ()
18686 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18688 return 0;
18690 _ACEOF
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_link") 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest$ac_exeext &&
18708 $as_test_x conftest$ac_exeext; then
18709 ac_cv_sys_largefile_source=no; break
18710 else
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #define _LARGEFILE_SOURCE 1
18726 #include <stdio.h>
18728 main ()
18730 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18732 return 0;
18734 _ACEOF
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740 esac
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && {
18749 test -z "$ac_c_werror_flag" ||
18750 test ! -s conftest.err
18751 } && test -s conftest$ac_exeext &&
18752 $as_test_x conftest$ac_exeext; then
18753 ac_cv_sys_largefile_source=1; break
18754 else
18755 echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18762 conftest$ac_exeext conftest.$ac_ext
18763 ac_cv_sys_largefile_source=unknown
18764 break
18765 done
18767 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18769 case $ac_cv_sys_largefile_source in #(
18770 no | unknown) ;;
18772 cat >>confdefs.h <<_ACEOF
18773 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18774 _ACEOF
18776 esac
18777 rm -f conftest*
18779 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18780 # in glibc 2.1.3, but that breaks too many other things.
18781 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18782 if test $ac_cv_sys_largefile_source != unknown; then
18784 cat >>confdefs.h <<\_ACEOF
18785 #define HAVE_FSEEKO 1
18786 _ACEOF
18791 # Configure getopt.
18792 # getopt.m4 serial 10
18794 # The getopt module assume you want GNU getopt, with getopt_long etc,
18795 # rather than vanilla POSIX getopt. This means your your code should
18796 # always include <getopt.h> for the getopt prototypes.
18808 # Prerequisites of lib/getopt*.
18813 GETOPT_H=
18815 for ac_header in getopt.h
18817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 ac_res=`eval echo '${'$as_ac_Header'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 else
18828 # Is the header compilable?
18829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18838 #include <$ac_header>
18839 _ACEOF
18840 rm -f conftest.$ac_objext
18841 if { (ac_try="$ac_compile"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_compile") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest.$ac_objext; then
18857 ac_header_compiler=yes
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_compiler=no
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18867 echo "${ECHO_T}$ac_header_compiler" >&6; }
18869 # Is the header present?
18870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18873 /* confdefs.h. */
18874 _ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <$ac_header>
18879 _ACEOF
18880 if { (ac_try="$ac_cpp conftest.$ac_ext"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18884 esac
18885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18887 ac_status=$?
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } >/dev/null && {
18893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18895 }; then
18896 ac_header_preproc=yes
18897 else
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18904 rm -f conftest.err conftest.$ac_ext
18905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18906 echo "${ECHO_T}$ac_header_preproc" >&6; }
18908 # So? What about this header?
18909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18910 yes:no: )
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18915 ac_header_preproc=yes
18917 no:yes:* )
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18932 esac
18933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938 eval "$as_ac_Header=\$ac_header_preproc"
18940 ac_res=`eval echo '${'$as_ac_Header'}'`
18941 { echo "$as_me:$LINENO: result: $ac_res" >&5
18942 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18948 _ACEOF
18950 else
18951 GETOPT_H=getopt.h
18954 done
18956 if test -z "$GETOPT_H"; then
18958 for ac_func in getopt_long_only
18960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966 cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h. */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define $ac_func innocuous_$ac_func
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18981 #ifdef __STDC__
18982 # include <limits.h>
18983 #else
18984 # include <assert.h>
18985 #endif
18987 #undef $ac_func
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18992 #ifdef __cplusplus
18993 extern "C"
18994 #endif
18995 char $ac_func ();
18996 /* The GNU C library defines this for functions which it implements
18997 to always fail with ENOSYS. Some functions are actually named
18998 something starting with __ and the normal name is an alias. */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19000 choke me
19001 #endif
19004 main ()
19006 return $ac_func ();
19008 return 0;
19010 _ACEOF
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19016 esac
19017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_link") 2>conftest.er1
19019 ac_status=$?
19020 grep -v '^ *+' conftest.er1 >conftest.err
19021 rm -f conftest.er1
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest$ac_exeext &&
19028 $as_test_x conftest$ac_exeext; then
19029 eval "$as_ac_var=yes"
19030 else
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 eval "$as_ac_var=no"
19037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19038 conftest$ac_exeext conftest.$ac_ext
19040 ac_res=`eval echo '${'$as_ac_var'}'`
19041 { echo "$as_me:$LINENO: result: $ac_res" >&5
19042 echo "${ECHO_T}$ac_res" >&6; }
19043 if test `eval echo '${'$as_ac_var'}'` = yes; then
19044 cat >>confdefs.h <<_ACEOF
19045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19046 _ACEOF
19048 else
19049 GETOPT_H=getopt.h
19051 done
19055 if test -z "$GETOPT_H"; then
19056 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19057 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19058 if test "${ac_cv_have_decl_optreset+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 else
19061 cat >conftest.$ac_ext <<_ACEOF
19062 /* confdefs.h. */
19063 _ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <getopt.h>
19070 main ()
19072 #ifndef optreset
19073 (void) optreset;
19074 #endif
19077 return 0;
19079 _ACEOF
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
19082 case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19085 esac
19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_compile") 2>conftest.er1
19088 ac_status=$?
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } && {
19094 test -z "$ac_c_werror_flag" ||
19095 test ! -s conftest.err
19096 } && test -s conftest.$ac_objext; then
19097 ac_cv_have_decl_optreset=yes
19098 else
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_cv_have_decl_optreset=no
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19108 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19109 if test $ac_cv_have_decl_optreset = yes; then
19110 GETOPT_H=getopt.h
19115 if test -z "$GETOPT_H"; then
19116 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19117 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19118 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121 if test "$cross_compiling" = yes; then
19122 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19123 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19124 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19125 echo $ECHO_N "(cached) $ECHO_C" >&6
19126 else
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <getopt.h>
19136 main ()
19138 #ifndef getopt_clip
19139 (void) getopt_clip;
19140 #endif
19143 return 0;
19145 _ACEOF
19146 rm -f conftest.$ac_objext
19147 if { (ac_try="$ac_compile"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_compile") 2>conftest.er1
19154 ac_status=$?
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest.$ac_objext; then
19163 ac_cv_have_decl_getopt_clip=yes
19164 else
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_have_decl_getopt_clip=no
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19174 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19175 if test $ac_cv_have_decl_getopt_clip = yes; then
19176 gl_cv_func_gnu_getopt=no
19177 else
19178 gl_cv_func_gnu_getopt=yes
19181 else
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h. */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 #include <getopt.h>
19190 main ()
19193 char *myargv[3];
19194 myargv[0] = "conftest";
19195 myargv[1] = "-+";
19196 myargv[2] = 0;
19197 return getopt (2, myargv, "+a") != '?';
19200 return 0;
19202 _ACEOF
19203 rm -f conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19217 esac
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 gl_cv_func_gnu_getopt=yes
19224 else
19225 echo "$as_me: program exited with status $ac_status" >&5
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ( exit $ac_status )
19230 gl_cv_func_gnu_getopt=no
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19238 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19239 if test "$gl_cv_func_gnu_getopt" = "no"; then
19240 GETOPT_H=getopt.h
19246 if test -n "$GETOPT_H"; then
19249 GETOPT_H=getopt.h
19251 cat >>confdefs.h <<\_ACEOF
19252 #define __GETOPT_PREFIX rpl_
19253 _ACEOF
19258 GETOPTOBJS='getopt.o getopt1.o'
19265 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19266 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19267 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270 # Use it with a single arg.
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19279 main ()
19281 getpgrp (0);
19283 return 0;
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_compile") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest.$ac_objext; then
19303 ac_cv_func_getpgrp_void=no
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_func_getpgrp_void=yes
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19315 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19316 if test $ac_cv_func_getpgrp_void = yes; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define GETPGRP_VOID 1
19320 _ACEOF
19326 for ac_func in strftime
19328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 else
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h. */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19342 #define $ac_func innocuous_$ac_func
19344 /* System header to define __stub macros and hopefully few prototypes,
19345 which can conflict with char $ac_func (); below.
19346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19347 <limits.h> exists even on freestanding compilers. */
19349 #ifdef __STDC__
19350 # include <limits.h>
19351 #else
19352 # include <assert.h>
19353 #endif
19355 #undef $ac_func
19357 /* Override any GCC internal prototype to avoid an error.
19358 Use char because int might match the return type of a GCC
19359 builtin and then its argument prototype would still apply. */
19360 #ifdef __cplusplus
19361 extern "C"
19362 #endif
19363 char $ac_func ();
19364 /* The GNU C library defines this for functions which it implements
19365 to always fail with ENOSYS. Some functions are actually named
19366 something starting with __ and the normal name is an alias. */
19367 #if defined __stub_$ac_func || defined __stub___$ac_func
19368 choke me
19369 #endif
19372 main ()
19374 return $ac_func ();
19376 return 0;
19378 _ACEOF
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest$ac_exeext &&
19396 $as_test_x conftest$ac_exeext; then
19397 eval "$as_ac_var=yes"
19398 else
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 eval "$as_ac_var=no"
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19408 ac_res=`eval echo '${'$as_ac_var'}'`
19409 { echo "$as_me:$LINENO: result: $ac_res" >&5
19410 echo "${ECHO_T}$ac_res" >&6; }
19411 if test `eval echo '${'$as_ac_var'}'` = yes; then
19412 cat >>confdefs.h <<_ACEOF
19413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19414 _ACEOF
19416 else
19417 # strftime is in -lintl on SCO UNIX.
19418 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19419 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19420 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19421 echo $ECHO_N "(cached) $ECHO_C" >&6
19422 else
19423 ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lintl $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char strftime ();
19440 main ()
19442 return strftime ();
19444 return 0;
19446 _ACEOF
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452 esac
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest$ac_exeext &&
19464 $as_test_x conftest$ac_exeext; then
19465 ac_cv_lib_intl_strftime=yes
19466 else
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_lib_intl_strftime=no
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19477 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19478 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19479 if test $ac_cv_lib_intl_strftime = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_STRFTIME 1
19482 _ACEOF
19484 LIBS="-lintl $LIBS"
19488 done
19491 # UNIX98 PTYs.
19493 for ac_func in grantpt
19495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19509 #define $ac_func innocuous_$ac_func
19511 /* System header to define __stub macros and hopefully few prototypes,
19512 which can conflict with char $ac_func (); below.
19513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19514 <limits.h> exists even on freestanding compilers. */
19516 #ifdef __STDC__
19517 # include <limits.h>
19518 #else
19519 # include <assert.h>
19520 #endif
19522 #undef $ac_func
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19527 #ifdef __cplusplus
19528 extern "C"
19529 #endif
19530 char $ac_func ();
19531 /* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534 #if defined __stub_$ac_func || defined __stub___$ac_func
19535 choke me
19536 #endif
19539 main ()
19541 return $ac_func ();
19543 return 0;
19545 _ACEOF
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19554 ac_status=$?
19555 grep -v '^ *+' conftest.er1 >conftest.err
19556 rm -f conftest.er1
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 eval "$as_ac_var=yes"
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 eval "$as_ac_var=no"
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19575 ac_res=`eval echo '${'$as_ac_var'}'`
19576 { echo "$as_me:$LINENO: result: $ac_res" >&5
19577 echo "${ECHO_T}$ac_res" >&6; }
19578 if test `eval echo '${'$as_ac_var'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19581 _ACEOF
19584 done
19587 # PTY-related GNU extensions.
19589 for ac_func in getpt
19591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h. */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19605 #define $ac_func innocuous_$ac_func
19607 /* System header to define __stub macros and hopefully few prototypes,
19608 which can conflict with char $ac_func (); below.
19609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610 <limits.h> exists even on freestanding compilers. */
19612 #ifdef __STDC__
19613 # include <limits.h>
19614 #else
19615 # include <assert.h>
19616 #endif
19618 #undef $ac_func
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char $ac_func ();
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined __stub_$ac_func || defined __stub___$ac_func
19631 choke me
19632 #endif
19635 main ()
19637 return $ac_func ();
19639 return 0;
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19650 ac_status=$?
19651 grep -v '^ *+' conftest.er1 >conftest.err
19652 rm -f conftest.er1
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 eval "$as_ac_var=yes"
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19671 ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19677 _ACEOF
19680 done
19683 # Check this now, so that we will NOT find the above functions in ncurses.
19684 # That is because we have not set up to link ncurses in lib-src.
19685 # It's better to believe a function is not available
19686 # than to expect to find it in ncurses.
19688 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19689 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19690 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 else
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-lncurses $LIBS"
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 char tparm ();
19710 main ()
19712 return tparm ();
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19722 esac
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_lib_ncurses_tparm=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_ncurses_tparm=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19748 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19749 if test $ac_cv_lib_ncurses_tparm = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBNCURSES 1
19752 _ACEOF
19754 LIBS="-lncurses $LIBS"
19759 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19761 resolv=no
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h. */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <netinet/in.h>
19769 #include <arpa/nameser.h>
19770 #include <resolv.h>
19772 main ()
19774 return res_init();
19776 return 0;
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784 esac
19785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19787 ac_status=$?
19788 grep -v '^ *+' conftest.er1 >conftest.err
19789 rm -f conftest.er1
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); } && {
19793 test -z "$ac_c_werror_flag" ||
19794 test ! -s conftest.err
19795 } && test -s conftest$ac_exeext &&
19796 $as_test_x conftest$ac_exeext; then
19797 have_res_init=yes
19798 else
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19802 have_res_init=no
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806 conftest$ac_exeext conftest.$ac_ext
19807 if test "$have_res_init" = no; then
19808 OLIBS="$LIBS"
19809 LIBS="$LIBS -lresolv"
19810 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19811 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19813 /* confdefs.h. */
19814 _ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <netinet/in.h>
19819 #include <arpa/nameser.h>
19820 #include <resolv.h>
19822 main ()
19824 return res_init();
19826 return 0;
19828 _ACEOF
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest$ac_exeext &&
19846 $as_test_x conftest$ac_exeext; then
19847 have_res_init=yes
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19852 have_res_init=no
19855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19856 conftest$ac_exeext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19858 echo "${ECHO_T}$have_res_init" >&6; }
19859 if test "$have_res_init" = yes ; then
19860 resolv=yes
19862 LIBS="$OLIBS"
19865 if test "$have_res_init" = yes; then
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_RES_INIT 1
19869 _ACEOF
19873 # Do we need the Hesiod library to provide the support routines?
19874 if test "$with_hesiod" != no ; then
19875 # Don't set $LIBS here -- see comments above.
19876 { echo "$as_me:$LINENO: checking for res_send" >&5
19877 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19878 if test "${ac_cv_func_res_send+set}" = set; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 else
19881 cat >conftest.$ac_ext <<_ACEOF
19882 /* confdefs.h. */
19883 _ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19889 #define res_send innocuous_res_send
19891 /* System header to define __stub macros and hopefully few prototypes,
19892 which can conflict with char res_send (); below.
19893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19894 <limits.h> exists even on freestanding compilers. */
19896 #ifdef __STDC__
19897 # include <limits.h>
19898 #else
19899 # include <assert.h>
19900 #endif
19902 #undef res_send
19904 /* Override any GCC internal prototype to avoid an error.
19905 Use char because int might match the return type of a GCC
19906 builtin and then its argument prototype would still apply. */
19907 #ifdef __cplusplus
19908 extern "C"
19909 #endif
19910 char res_send ();
19911 /* The GNU C library defines this for functions which it implements
19912 to always fail with ENOSYS. Some functions are actually named
19913 something starting with __ and the normal name is an alias. */
19914 #if defined __stub_res_send || defined __stub___res_send
19915 choke me
19916 #endif
19919 main ()
19921 return res_send ();
19923 return 0;
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_func_res_send=yes
19945 else
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_func_res_send=no
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19956 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19957 if test $ac_cv_func_res_send = yes; then
19959 else
19960 { echo "$as_me:$LINENO: checking for __res_send" >&5
19961 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19962 if test "${ac_cv_func___res_send+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19964 else
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19973 #define __res_send innocuous___res_send
19975 /* System header to define __stub macros and hopefully few prototypes,
19976 which can conflict with char __res_send (); below.
19977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978 <limits.h> exists even on freestanding compilers. */
19980 #ifdef __STDC__
19981 # include <limits.h>
19982 #else
19983 # include <assert.h>
19984 #endif
19986 #undef __res_send
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19991 #ifdef __cplusplus
19992 extern "C"
19993 #endif
19994 char __res_send ();
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined __stub___res_send || defined __stub_____res_send
19999 choke me
20000 #endif
20003 main ()
20005 return __res_send ();
20007 return 0;
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015 esac
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_func___res_send=yes
20029 else
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_func___res_send=no
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20040 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20041 if test $ac_cv_func___res_send = yes; then
20043 else
20044 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20045 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20046 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20047 echo $ECHO_N "(cached) $ECHO_C" >&6
20048 else
20049 ac_check_lib_save_LIBS=$LIBS
20050 LIBS="-lresolv $LIBS"
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20061 #ifdef __cplusplus
20062 extern "C"
20063 #endif
20064 char res_send ();
20066 main ()
20068 return res_send ();
20070 return 0;
20072 _ACEOF
20073 rm -f conftest.$ac_objext conftest$ac_exeext
20074 if { (ac_try="$ac_link"
20075 case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20078 esac
20079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_link") 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } && {
20087 test -z "$ac_c_werror_flag" ||
20088 test ! -s conftest.err
20089 } && test -s conftest$ac_exeext &&
20090 $as_test_x conftest$ac_exeext; then
20091 ac_cv_lib_resolv_res_send=yes
20092 else
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_cv_lib_resolv_res_send=no
20099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20100 conftest$ac_exeext conftest.$ac_ext
20101 LIBS=$ac_check_lib_save_LIBS
20103 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20104 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20105 if test $ac_cv_lib_resolv_res_send = yes; then
20106 resolv=yes
20107 else
20108 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20109 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20110 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113 ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-lresolv $LIBS"
20115 cat >conftest.$ac_ext <<_ACEOF
20116 /* confdefs.h. */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125 #ifdef __cplusplus
20126 extern "C"
20127 #endif
20128 char __res_send ();
20130 main ()
20132 return __res_send ();
20134 return 0;
20136 _ACEOF
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20145 ac_status=$?
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext &&
20154 $as_test_x conftest$ac_exeext; then
20155 ac_cv_lib_resolv___res_send=yes
20156 else
20157 echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ac_cv_lib_resolv___res_send=no
20163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20164 conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20167 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20168 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20169 if test $ac_cv_lib_resolv___res_send = yes; then
20170 resolv=yes
20179 if test "$resolv" = yes ; then
20180 RESOLVLIB=-lresolv
20181 else
20182 RESOLVLIB=
20184 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20185 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20186 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20197 #define hes_getmailhost innocuous_hes_getmailhost
20199 /* System header to define __stub macros and hopefully few prototypes,
20200 which can conflict with char hes_getmailhost (); below.
20201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20202 <limits.h> exists even on freestanding compilers. */
20204 #ifdef __STDC__
20205 # include <limits.h>
20206 #else
20207 # include <assert.h>
20208 #endif
20210 #undef hes_getmailhost
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char hes_getmailhost ();
20219 /* The GNU C library defines this for functions which it implements
20220 to always fail with ENOSYS. Some functions are actually named
20221 something starting with __ and the normal name is an alias. */
20222 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20223 choke me
20224 #endif
20227 main ()
20229 return hes_getmailhost ();
20231 return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest$ac_exeext &&
20251 $as_test_x conftest$ac_exeext; then
20252 ac_cv_func_hes_getmailhost=yes
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_func_hes_getmailhost=no
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20263 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20264 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20265 if test $ac_cv_func_hes_getmailhost = yes; then
20267 else
20268 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20269 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20270 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lhesiod $RESOLVLIB $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h. */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 /* Override any GCC internal prototype to avoid an error.
20283 Use char because int might match the return type of a GCC
20284 builtin and then its argument prototype would still apply. */
20285 #ifdef __cplusplus
20286 extern "C"
20287 #endif
20288 char hes_getmailhost ();
20290 main ()
20292 return hes_getmailhost ();
20294 return 0;
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20305 ac_status=$?
20306 grep -v '^ *+' conftest.er1 >conftest.err
20307 rm -f conftest.er1
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 ac_cv_lib_hesiod_hes_getmailhost=yes
20316 else
20317 echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_hesiod_hes_getmailhost=no
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20328 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_LIBHESIOD 1
20333 _ACEOF
20335 else
20343 # Do we need libresolv (due to res_init or Hesiod)?
20344 if test "$resolv" = yes ; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE_LIBRESOLV 1
20348 _ACEOF
20352 # These tell us which Kerberos-related libraries to use.
20353 if test "${with_kerberos}" != no; then
20355 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20356 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20357 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20358 echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360 ac_check_lib_save_LIBS=$LIBS
20361 LIBS="-lcom_err $LIBS"
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h. */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 /* Override any GCC internal prototype to avoid an error.
20370 Use char because int might match the return type of a GCC
20371 builtin and then its argument prototype would still apply. */
20372 #ifdef __cplusplus
20373 extern "C"
20374 #endif
20375 char com_err ();
20377 main ()
20379 return com_err ();
20381 return 0;
20383 _ACEOF
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>conftest.er1
20392 ac_status=$?
20393 grep -v '^ *+' conftest.er1 >conftest.err
20394 rm -f conftest.er1
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest$ac_exeext &&
20401 $as_test_x conftest$ac_exeext; then
20402 ac_cv_lib_com_err_com_err=yes
20403 else
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_cv_lib_com_err_com_err=no
20410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20414 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20415 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20416 if test $ac_cv_lib_com_err_com_err = yes; then
20417 cat >>confdefs.h <<_ACEOF
20418 #define HAVE_LIBCOM_ERR 1
20419 _ACEOF
20421 LIBS="-lcom_err $LIBS"
20426 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20427 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20428 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431 ac_check_lib_save_LIBS=$LIBS
20432 LIBS="-lk5crypto $LIBS"
20433 cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h. */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20440 /* Override any GCC internal prototype to avoid an error.
20441 Use char because int might match the return type of a GCC
20442 builtin and then its argument prototype would still apply. */
20443 #ifdef __cplusplus
20444 extern "C"
20445 #endif
20446 char mit_des_cbc_encrypt ();
20448 main ()
20450 return mit_des_cbc_encrypt ();
20452 return 0;
20454 _ACEOF
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20460 esac
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>conftest.er1
20463 ac_status=$?
20464 grep -v '^ *+' conftest.er1 >conftest.err
20465 rm -f conftest.er1
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); } && {
20469 test -z "$ac_c_werror_flag" ||
20470 test ! -s conftest.err
20471 } && test -s conftest$ac_exeext &&
20472 $as_test_x conftest$ac_exeext; then
20473 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20474 else
20475 echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20482 conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20485 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20486 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20487 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20488 cat >>confdefs.h <<_ACEOF
20489 #define HAVE_LIBK5CRYPTO 1
20490 _ACEOF
20492 LIBS="-lk5crypto $LIBS"
20497 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20498 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20499 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 ac_check_lib_save_LIBS=$LIBS
20503 LIBS="-lcrypto $LIBS"
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char mit_des_cbc_encrypt ();
20519 main ()
20521 return mit_des_cbc_encrypt ();
20523 return 0;
20525 _ACEOF
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest$ac_exeext &&
20543 $as_test_x conftest$ac_exeext; then
20544 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20545 else
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20557 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20558 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20559 cat >>confdefs.h <<_ACEOF
20560 #define HAVE_LIBCRYPTO 1
20561 _ACEOF
20563 LIBS="-lcrypto $LIBS"
20568 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20569 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20570 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 else
20573 ac_check_lib_save_LIBS=$LIBS
20574 LIBS="-lkrb5 $LIBS"
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20582 /* Override any GCC internal prototype to avoid an error.
20583 Use char because int might match the return type of a GCC
20584 builtin and then its argument prototype would still apply. */
20585 #ifdef __cplusplus
20586 extern "C"
20587 #endif
20588 char krb5_init_context ();
20590 main ()
20592 return krb5_init_context ();
20594 return 0;
20596 _ACEOF
20597 rm -f conftest.$ac_objext conftest$ac_exeext
20598 if { (ac_try="$ac_link"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_link") 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest$ac_exeext &&
20614 $as_test_x conftest$ac_exeext; then
20615 ac_cv_lib_krb5_krb5_init_context=yes
20616 else
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_cv_lib_krb5_krb5_init_context=no
20623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20624 conftest$ac_exeext conftest.$ac_ext
20625 LIBS=$ac_check_lib_save_LIBS
20627 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20628 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20629 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define HAVE_LIBKRB5 1
20632 _ACEOF
20634 LIBS="-lkrb5 $LIBS"
20638 if test "${with_kerberos5}" = no; then
20640 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20641 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20642 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 else
20645 ac_check_lib_save_LIBS=$LIBS
20646 LIBS="-ldes425 $LIBS"
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h. */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20654 /* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20657 #ifdef __cplusplus
20658 extern "C"
20659 #endif
20660 char des_cbc_encrypt ();
20662 main ()
20664 return des_cbc_encrypt ();
20666 return 0;
20668 _ACEOF
20669 rm -f conftest.$ac_objext conftest$ac_exeext
20670 if { (ac_try="$ac_link"
20671 case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_link") 2>conftest.er1
20677 ac_status=$?
20678 grep -v '^ *+' conftest.er1 >conftest.err
20679 rm -f conftest.er1
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest$ac_exeext &&
20686 $as_test_x conftest$ac_exeext; then
20687 ac_cv_lib_des425_des_cbc_encrypt=yes
20688 else
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_cv_lib_des425_des_cbc_encrypt=no
20695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20696 conftest$ac_exeext conftest.$ac_ext
20697 LIBS=$ac_check_lib_save_LIBS
20699 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20700 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20701 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_LIBDES425 1
20704 _ACEOF
20706 LIBS="-ldes425 $LIBS"
20708 else
20710 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20711 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20712 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715 ac_check_lib_save_LIBS=$LIBS
20716 LIBS="-ldes $LIBS"
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h. */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 #endif
20730 char des_cbc_encrypt ();
20732 main ()
20734 return des_cbc_encrypt ();
20736 return 0;
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_link") 2>conftest.er1
20747 ac_status=$?
20748 grep -v '^ *+' conftest.er1 >conftest.err
20749 rm -f conftest.er1
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext &&
20756 $as_test_x conftest$ac_exeext; then
20757 ac_cv_lib_des_des_cbc_encrypt=yes
20758 else
20759 echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_cv_lib_des_des_cbc_encrypt=no
20765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20770 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20771 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_LIBDES 1
20774 _ACEOF
20776 LIBS="-ldes $LIBS"
20783 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20784 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20785 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788 ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-lkrb4 $LIBS"
20790 cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h. */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20797 /* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
20800 #ifdef __cplusplus
20801 extern "C"
20802 #endif
20803 char krb_get_cred ();
20805 main ()
20807 return krb_get_cred ();
20809 return 0;
20811 _ACEOF
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20817 esac
20818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_link") 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest$ac_exeext &&
20829 $as_test_x conftest$ac_exeext; then
20830 ac_cv_lib_krb4_krb_get_cred=yes
20831 else
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_cv_lib_krb4_krb_get_cred=no
20838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20839 conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20842 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20843 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20844 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define HAVE_LIBKRB4 1
20847 _ACEOF
20849 LIBS="-lkrb4 $LIBS"
20851 else
20853 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20854 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20855 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 ac_check_lib_save_LIBS=$LIBS
20859 LIBS="-lkrb $LIBS"
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h. */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20867 /* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20870 #ifdef __cplusplus
20871 extern "C"
20872 #endif
20873 char krb_get_cred ();
20875 main ()
20877 return krb_get_cred ();
20879 return 0;
20881 _ACEOF
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (ac_try="$ac_link"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_link") 2>conftest.er1
20890 ac_status=$?
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest$ac_exeext &&
20899 $as_test_x conftest$ac_exeext; then
20900 ac_cv_lib_krb_krb_get_cred=yes
20901 else
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_lib_krb_krb_get_cred=no
20908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20909 conftest$ac_exeext conftest.$ac_ext
20910 LIBS=$ac_check_lib_save_LIBS
20912 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20913 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20914 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20915 cat >>confdefs.h <<_ACEOF
20916 #define HAVE_LIBKRB 1
20917 _ACEOF
20919 LIBS="-lkrb $LIBS"
20927 if test "${with_kerberos5}" != no; then
20929 for ac_header in krb5.h
20931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20938 ac_res=`eval echo '${'$as_ac_Header'}'`
20939 { echo "$as_me:$LINENO: result: $ac_res" >&5
20940 echo "${ECHO_T}$ac_res" >&6; }
20941 else
20942 # Is the header compilable?
20943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 $ac_includes_default
20952 #include <$ac_header>
20953 _ACEOF
20954 rm -f conftest.$ac_objext
20955 if { (ac_try="$ac_compile"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_compile") 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && {
20968 test -z "$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 } && test -s conftest.$ac_objext; then
20971 ac_header_compiler=yes
20972 else
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_header_compiler=no
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20981 echo "${ECHO_T}$ac_header_compiler" >&6; }
20983 # Is the header present?
20984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h. */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <$ac_header>
20993 _ACEOF
20994 if { (ac_try="$ac_cpp conftest.$ac_ext"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21001 ac_status=$?
21002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } >/dev/null && {
21007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21009 }; then
21010 ac_header_preproc=yes
21011 else
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_preproc=no
21018 rm -f conftest.err conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21020 echo "${ECHO_T}$ac_header_preproc" >&6; }
21022 # So? What about this header?
21023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21024 yes:no: )
21025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21029 ac_header_preproc=yes
21031 no:yes:* )
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21046 esac
21047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052 eval "$as_ac_Header=\$ac_header_preproc"
21054 ac_res=`eval echo '${'$as_ac_Header'}'`
21055 { echo "$as_me:$LINENO: result: $ac_res" >&5
21056 echo "${ECHO_T}$ac_res" >&6; }
21059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21062 _ACEOF
21066 done
21068 else
21070 for ac_header in des.h
21072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 ac_res=`eval echo '${'$as_ac_Header'}'`
21080 { echo "$as_me:$LINENO: result: $ac_res" >&5
21081 echo "${ECHO_T}$ac_res" >&6; }
21082 else
21083 # Is the header compilable?
21084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21087 /* confdefs.h. */
21088 _ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 #include <$ac_header>
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (ac_try="$ac_compile"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_compile") 2>conftest.er1
21103 ac_status=$?
21104 grep -v '^ *+' conftest.er1 >conftest.err
21105 rm -f conftest.er1
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest.$ac_objext; then
21112 ac_header_compiler=yes
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_header_compiler=no
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21122 echo "${ECHO_T}$ac_header_compiler" >&6; }
21124 # Is the header present?
21125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h. */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <$ac_header>
21134 _ACEOF
21135 if { (ac_try="$ac_cpp conftest.$ac_ext"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } >/dev/null && {
21148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 }; then
21151 ac_header_preproc=yes
21152 else
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_header_preproc=no
21159 rm -f conftest.err conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21161 echo "${ECHO_T}$ac_header_preproc" >&6; }
21163 # So? What about this header?
21164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21165 yes:no: )
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21170 ac_header_preproc=yes
21172 no:yes:* )
21173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21187 esac
21188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193 eval "$as_ac_Header=\$ac_header_preproc"
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196 { echo "$as_me:$LINENO: result: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21203 _ACEOF
21205 else
21207 for ac_header in kerberosIV/des.h
21209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 ac_res=`eval echo '${'$as_ac_Header'}'`
21217 { echo "$as_me:$LINENO: result: $ac_res" >&5
21218 echo "${ECHO_T}$ac_res" >&6; }
21219 else
21220 # Is the header compilable?
21221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h. */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 $ac_includes_default
21230 #include <$ac_header>
21231 _ACEOF
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_header_compiler=yes
21250 else
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_header_compiler=no
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21259 echo "${ECHO_T}$ac_header_compiler" >&6; }
21261 # Is the header present?
21262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h. */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <$ac_header>
21271 _ACEOF
21272 if { (ac_try="$ac_cpp conftest.$ac_ext"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } >/dev/null && {
21285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 }; then
21288 ac_header_preproc=yes
21289 else
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_header_preproc=no
21296 rm -f conftest.err conftest.$ac_ext
21297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21298 echo "${ECHO_T}$ac_header_preproc" >&6; }
21300 # So? What about this header?
21301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21302 yes:no: )
21303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21307 ac_header_preproc=yes
21309 no:yes:* )
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21324 esac
21325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330 eval "$as_ac_Header=\$ac_header_preproc"
21332 ac_res=`eval echo '${'$as_ac_Header'}'`
21333 { echo "$as_me:$LINENO: result: $ac_res" >&5
21334 echo "${ECHO_T}$ac_res" >&6; }
21337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21338 cat >>confdefs.h <<_ACEOF
21339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21340 _ACEOF
21342 else
21344 for ac_header in kerberos/des.h
21346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 ac_res=`eval echo '${'$as_ac_Header'}'`
21354 { echo "$as_me:$LINENO: result: $ac_res" >&5
21355 echo "${ECHO_T}$ac_res" >&6; }
21356 else
21357 # Is the header compilable?
21358 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 $ac_includes_default
21367 #include <$ac_header>
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_compile") 2>conftest.er1
21377 ac_status=$?
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest.$ac_objext; then
21386 ac_header_compiler=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_header_compiler=no
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21396 echo "${ECHO_T}$ac_header_compiler" >&6; }
21398 # Is the header present?
21399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h. */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <$ac_header>
21408 _ACEOF
21409 if { (ac_try="$ac_cpp conftest.$ac_ext"
21410 case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21416 ac_status=$?
21417 grep -v '^ *+' conftest.er1 >conftest.err
21418 rm -f conftest.er1
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } >/dev/null && {
21422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21423 test ! -s conftest.err
21424 }; then
21425 ac_header_preproc=yes
21426 else
21427 echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_header_preproc=no
21433 rm -f conftest.err conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21435 echo "${ECHO_T}$ac_header_preproc" >&6; }
21437 # So? What about this header?
21438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21439 yes:no: )
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21444 ac_header_preproc=yes
21446 no:yes:* )
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21461 esac
21462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 else
21467 eval "$as_ac_Header=\$ac_header_preproc"
21469 ac_res=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21477 _ACEOF
21481 done
21485 done
21489 done
21492 for ac_header in krb.h
21494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21501 ac_res=`eval echo '${'$as_ac_Header'}'`
21502 { echo "$as_me:$LINENO: result: $ac_res" >&5
21503 echo "${ECHO_T}$ac_res" >&6; }
21504 else
21505 # Is the header compilable?
21506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21515 #include <$ac_header>
21516 _ACEOF
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_compile") 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest.$ac_objext; then
21534 ac_header_compiler=yes
21535 else
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_header_compiler=no
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21544 echo "${ECHO_T}$ac_header_compiler" >&6; }
21546 # Is the header present?
21547 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h. */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 #include <$ac_header>
21556 _ACEOF
21557 if { (ac_try="$ac_cpp conftest.$ac_ext"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } >/dev/null && {
21570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 }; then
21573 ac_header_preproc=yes
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_preproc=no
21581 rm -f conftest.err conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21583 echo "${ECHO_T}$ac_header_preproc" >&6; }
21585 # So? What about this header?
21586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21587 yes:no: )
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21592 ac_header_preproc=yes
21594 no:yes:* )
21595 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21597 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21598 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21602 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21609 esac
21610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21613 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 else
21615 eval "$as_ac_Header=\$ac_header_preproc"
21617 ac_res=`eval echo '${'$as_ac_Header'}'`
21618 { echo "$as_me:$LINENO: result: $ac_res" >&5
21619 echo "${ECHO_T}$ac_res" >&6; }
21622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21623 cat >>confdefs.h <<_ACEOF
21624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21625 _ACEOF
21627 else
21629 for ac_header in kerberosIV/krb.h
21631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21638 ac_res=`eval echo '${'$as_ac_Header'}'`
21639 { echo "$as_me:$LINENO: result: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641 else
21642 # Is the header compilable?
21643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 #include <$ac_header>
21653 _ACEOF
21654 rm -f conftest.$ac_objext
21655 if { (ac_try="$ac_compile"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_header_compiler=yes
21672 else
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 ac_header_compiler=no
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21681 echo "${ECHO_T}$ac_header_compiler" >&6; }
21683 # Is the header present?
21684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h. */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 #include <$ac_header>
21693 _ACEOF
21694 if { (ac_try="$ac_cpp conftest.$ac_ext"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21701 ac_status=$?
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } >/dev/null && {
21707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 }; then
21710 ac_header_preproc=yes
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_header_preproc=no
21718 rm -f conftest.err conftest.$ac_ext
21719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21720 echo "${ECHO_T}$ac_header_preproc" >&6; }
21722 # So? What about this header?
21723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21724 yes:no: )
21725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21729 ac_header_preproc=yes
21731 no:yes:* )
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21746 esac
21747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 else
21752 eval "$as_ac_Header=\$ac_header_preproc"
21754 ac_res=`eval echo '${'$as_ac_Header'}'`
21755 { echo "$as_me:$LINENO: result: $ac_res" >&5
21756 echo "${ECHO_T}$ac_res" >&6; }
21759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21762 _ACEOF
21764 else
21766 for ac_header in kerberos/krb.h
21768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 ac_res=`eval echo '${'$as_ac_Header'}'`
21776 { echo "$as_me:$LINENO: result: $ac_res" >&5
21777 echo "${ECHO_T}$ac_res" >&6; }
21778 else
21779 # Is the header compilable?
21780 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h. */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21789 #include <$ac_header>
21790 _ACEOF
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_compile") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest.$ac_objext; then
21808 ac_header_compiler=yes
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_header_compiler=no
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21818 echo "${ECHO_T}$ac_header_compiler" >&6; }
21820 # Is the header present?
21821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21824 /* confdefs.h. */
21825 _ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <$ac_header>
21830 _ACEOF
21831 if { (ac_try="$ac_cpp conftest.$ac_ext"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21838 ac_status=$?
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } >/dev/null && {
21844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 }; then
21847 ac_header_preproc=yes
21848 else
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_preproc=no
21855 rm -f conftest.err conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21857 echo "${ECHO_T}$ac_header_preproc" >&6; }
21859 # So? What about this header?
21860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21861 yes:no: )
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21866 ac_header_preproc=yes
21868 no:yes:* )
21869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21883 esac
21884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
21889 eval "$as_ac_Header=\$ac_header_preproc"
21891 ac_res=`eval echo '${'$as_ac_Header'}'`
21892 { echo "$as_me:$LINENO: result: $ac_res" >&5
21893 echo "${ECHO_T}$ac_res" >&6; }
21896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21899 _ACEOF
21903 done
21907 done
21911 done
21915 for ac_header in com_err.h
21917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 ac_res=`eval echo '${'$as_ac_Header'}'`
21925 { echo "$as_me:$LINENO: result: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21927 else
21928 # Is the header compilable?
21929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21931 cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h. */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 #include <$ac_header>
21939 _ACEOF
21940 rm -f conftest.$ac_objext
21941 if { (ac_try="$ac_compile"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_compile") 2>conftest.er1
21948 ac_status=$?
21949 grep -v '^ *+' conftest.er1 >conftest.err
21950 rm -f conftest.er1
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && {
21954 test -z "$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 } && test -s conftest.$ac_objext; then
21957 ac_header_compiler=yes
21958 else
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_header_compiler=no
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21967 echo "${ECHO_T}$ac_header_compiler" >&6; }
21969 # Is the header present?
21970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h. */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 #include <$ac_header>
21979 _ACEOF
21980 if { (ac_try="$ac_cpp conftest.$ac_ext"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21987 ac_status=$?
21988 grep -v '^ *+' conftest.er1 >conftest.err
21989 rm -f conftest.er1
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992 (exit $ac_status); } >/dev/null && {
21993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21995 }; then
21996 ac_header_preproc=yes
21997 else
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_header_preproc=no
22004 rm -f conftest.err conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22006 echo "${ECHO_T}$ac_header_preproc" >&6; }
22008 # So? What about this header?
22009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22010 yes:no: )
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22015 ac_header_preproc=yes
22017 no:yes:* )
22018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22032 esac
22033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038 eval "$as_ac_Header=\$ac_header_preproc"
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22048 _ACEOF
22052 done
22056 # Solaris requires -lintl if you want strerror (which calls dgettext)
22057 # to return localized messages.
22059 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22060 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22061 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lintl $LIBS"
22066 cat >conftest.$ac_ext <<_ACEOF
22067 /* confdefs.h. */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply. */
22076 #ifdef __cplusplus
22077 extern "C"
22078 #endif
22079 char dgettext ();
22081 main ()
22083 return dgettext ();
22085 return 0;
22087 _ACEOF
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_link") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } && {
22102 test -z "$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 } && test -s conftest$ac_exeext &&
22105 $as_test_x conftest$ac_exeext; then
22106 ac_cv_lib_intl_dgettext=yes
22107 else
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 ac_cv_lib_intl_dgettext=no
22114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22115 conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22118 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22119 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22120 if test $ac_cv_lib_intl_dgettext = yes; then
22121 cat >>confdefs.h <<_ACEOF
22122 #define HAVE_LIBINTL 1
22123 _ACEOF
22125 LIBS="-lintl $LIBS"
22130 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22131 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22132 if test "${emacs_cv_localtime_cache+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 if test x$ac_cv_func_tzset = xyes; then
22136 if test "$cross_compiling" = yes; then
22137 # If we have tzset, assume the worst when cross-compiling.
22138 emacs_cv_localtime_cache=yes
22139 else
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h. */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 #include <time.h>
22147 extern char **environ;
22148 unset_TZ ()
22150 char **from, **to;
22151 for (to = from = environ; (*to = *from); from++)
22152 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22153 to++;
22155 char TZ_GMT0[] = "TZ=GMT0";
22156 char TZ_PST8[] = "TZ=PST8";
22157 main()
22159 time_t now = time ((time_t *) 0);
22160 int hour_GMT0, hour_unset;
22161 if (putenv (TZ_GMT0) != 0)
22162 exit (1);
22163 hour_GMT0 = localtime (&now)->tm_hour;
22164 unset_TZ ();
22165 hour_unset = localtime (&now)->tm_hour;
22166 if (putenv (TZ_PST8) != 0)
22167 exit (1);
22168 if (localtime (&now)->tm_hour == hour_GMT0)
22169 exit (1);
22170 unset_TZ ();
22171 if (localtime (&now)->tm_hour != hour_unset)
22172 exit (1);
22173 exit (0);
22175 _ACEOF
22176 rm -f conftest$ac_exeext
22177 if { (ac_try="$ac_link"
22178 case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22181 esac
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_link") 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22187 { (case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_try") 2>&5
22193 ac_status=$?
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; }; then
22196 emacs_cv_localtime_cache=no
22197 else
22198 echo "$as_me: program exited with status $ac_status" >&5
22199 echo "$as_me: failed program was:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22202 ( exit $ac_status )
22203 emacs_cv_localtime_cache=yes
22205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22209 else
22210 # If we lack tzset, report that localtime does not cache TZ,
22211 # since we can't invalidate the cache if we don't have tzset.
22212 emacs_cv_localtime_cache=no
22215 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22216 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22217 if test $emacs_cv_localtime_cache = yes; then
22219 cat >>confdefs.h <<\_ACEOF
22220 #define LOCALTIME_CACHE 1
22221 _ACEOF
22225 if test "x$HAVE_TIMEVAL" = xyes; then
22227 for ac_func in gettimeofday
22229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235 cat >conftest.$ac_ext <<_ACEOF
22236 /* confdefs.h. */
22237 _ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22243 #define $ac_func innocuous_$ac_func
22245 /* System header to define __stub macros and hopefully few prototypes,
22246 which can conflict with char $ac_func (); below.
22247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22248 <limits.h> exists even on freestanding compilers. */
22250 #ifdef __STDC__
22251 # include <limits.h>
22252 #else
22253 # include <assert.h>
22254 #endif
22256 #undef $ac_func
22258 /* Override any GCC internal prototype to avoid an error.
22259 Use char because int might match the return type of a GCC
22260 builtin and then its argument prototype would still apply. */
22261 #ifdef __cplusplus
22262 extern "C"
22263 #endif
22264 char $ac_func ();
22265 /* The GNU C library defines this for functions which it implements
22266 to always fail with ENOSYS. Some functions are actually named
22267 something starting with __ and the normal name is an alias. */
22268 #if defined __stub_$ac_func || defined __stub___$ac_func
22269 choke me
22270 #endif
22273 main ()
22275 return $ac_func ();
22277 return 0;
22279 _ACEOF
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest$ac_exeext &&
22297 $as_test_x conftest$ac_exeext; then
22298 eval "$as_ac_var=yes"
22299 else
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 eval "$as_ac_var=no"
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22309 ac_res=`eval echo '${'$as_ac_var'}'`
22310 { echo "$as_me:$LINENO: result: $ac_res" >&5
22311 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_var'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315 _ACEOF
22318 done
22320 if test $ac_cv_func_gettimeofday = yes; then
22321 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22322 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22323 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326 cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h. */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22333 #ifdef TIME_WITH_SYS_TIME
22334 #include <sys/time.h>
22335 #include <time.h>
22336 #else
22337 #ifdef HAVE_SYS_TIME_H
22338 #include <sys/time.h>
22339 #else
22340 #include <time.h>
22341 #endif
22342 #endif
22344 main ()
22346 struct timeval time;
22347 gettimeofday (&time, 0);
22349 return 0;
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22357 esac
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22360 ac_status=$?
22361 grep -v '^ *+' conftest.er1 >conftest.err
22362 rm -f conftest.er1
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 emacs_cv_gettimeofday_two_arguments=yes
22370 else
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 emacs_cv_gettimeofday_two_arguments=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22380 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22381 if test $emacs_cv_gettimeofday_two_arguments = no; then
22383 cat >>confdefs.h <<\_ACEOF
22384 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22385 _ACEOF
22391 ok_so_far=yes
22392 { echo "$as_me:$LINENO: checking for socket" >&5
22393 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22394 if test "${ac_cv_func_socket+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397 cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h. */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22403 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22405 #define socket innocuous_socket
22407 /* System header to define __stub macros and hopefully few prototypes,
22408 which can conflict with char socket (); below.
22409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22410 <limits.h> exists even on freestanding compilers. */
22412 #ifdef __STDC__
22413 # include <limits.h>
22414 #else
22415 # include <assert.h>
22416 #endif
22418 #undef socket
22420 /* Override any GCC internal prototype to avoid an error.
22421 Use char because int might match the return type of a GCC
22422 builtin and then its argument prototype would still apply. */
22423 #ifdef __cplusplus
22424 extern "C"
22425 #endif
22426 char socket ();
22427 /* The GNU C library defines this for functions which it implements
22428 to always fail with ENOSYS. Some functions are actually named
22429 something starting with __ and the normal name is an alias. */
22430 #if defined __stub_socket || defined __stub___socket
22431 choke me
22432 #endif
22435 main ()
22437 return socket ();
22439 return 0;
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext &&
22459 $as_test_x conftest$ac_exeext; then
22460 ac_cv_func_socket=yes
22461 else
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_func_socket=no
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469 conftest$ac_exeext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22472 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22473 if test $ac_cv_func_socket = yes; then
22475 else
22476 ok_so_far=no
22479 if test $ok_so_far = yes; then
22480 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22481 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22482 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22483 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22487 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22488 else
22489 # Is the header compilable?
22490 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22491 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22492 cat >conftest.$ac_ext <<_ACEOF
22493 /* confdefs.h. */
22494 _ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $ac_includes_default
22499 #include <netinet/in.h>
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
22518 ac_header_compiler=yes
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 ac_header_compiler=no
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22528 echo "${ECHO_T}$ac_header_compiler" >&6; }
22530 # Is the header present?
22531 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22532 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h. */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include <netinet/in.h>
22540 _ACEOF
22541 if { (ac_try="$ac_cpp conftest.$ac_ext"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } >/dev/null && {
22554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 }; then
22557 ac_header_preproc=yes
22558 else
22559 echo "$as_me: failed program was:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ac_header_preproc=no
22565 rm -f conftest.err conftest.$ac_ext
22566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22567 echo "${ECHO_T}$ac_header_preproc" >&6; }
22569 # So? What about this header?
22570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22571 yes:no: )
22572 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22573 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22574 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22575 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22576 ac_header_preproc=yes
22578 no:yes:* )
22579 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22580 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22582 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22583 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22584 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22585 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22586 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22588 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22590 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22593 esac
22594 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22595 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22596 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22597 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599 ac_cv_header_netinet_in_h=$ac_header_preproc
22601 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22605 if test $ac_cv_header_netinet_in_h = yes; then
22607 else
22608 ok_so_far=no
22613 if test $ok_so_far = yes; then
22614 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22615 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22616 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22617 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22620 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22621 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22622 else
22623 # Is the header compilable?
22624 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22625 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22626 cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h. */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 $ac_includes_default
22633 #include <arpa/inet.h>
22634 _ACEOF
22635 rm -f conftest.$ac_objext
22636 if { (ac_try="$ac_compile"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_compile") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest.$ac_objext; then
22652 ac_header_compiler=yes
22653 else
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_header_compiler=no
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22662 echo "${ECHO_T}$ac_header_compiler" >&6; }
22664 # Is the header present?
22665 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22666 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22667 cat >conftest.$ac_ext <<_ACEOF
22668 /* confdefs.h. */
22669 _ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 #include <arpa/inet.h>
22674 _ACEOF
22675 if { (ac_try="$ac_cpp conftest.$ac_ext"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22679 esac
22680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22682 ac_status=$?
22683 grep -v '^ *+' conftest.er1 >conftest.err
22684 rm -f conftest.er1
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); } >/dev/null && {
22688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 }; then
22691 ac_header_preproc=yes
22692 else
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_header_preproc=no
22699 rm -f conftest.err conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22701 echo "${ECHO_T}$ac_header_preproc" >&6; }
22703 # So? What about this header?
22704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22705 yes:no: )
22706 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22707 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22708 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22709 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22710 ac_header_preproc=yes
22712 no:yes:* )
22713 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22714 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22716 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22718 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22719 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22720 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22721 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22722 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22723 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22724 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22727 esac
22728 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22729 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22730 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733 ac_cv_header_arpa_inet_h=$ac_header_preproc
22735 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22736 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22739 if test $ac_cv_header_arpa_inet_h = yes; then
22741 else
22742 ok_so_far=no
22747 if test $ok_so_far = yes; then
22749 cat >>confdefs.h <<\_ACEOF
22750 #define HAVE_INET_SOCKETS 1
22751 _ACEOF
22756 for ac_header in sys/ioctl.h
22758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 ac_res=`eval echo '${'$as_ac_Header'}'`
22766 { echo "$as_me:$LINENO: result: $ac_res" >&5
22767 echo "${ECHO_T}$ac_res" >&6; }
22768 else
22769 # Is the header compilable?
22770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 $ac_includes_default
22779 #include <$ac_header>
22780 _ACEOF
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_compiler=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22808 echo "${ECHO_T}$ac_header_compiler" >&6; }
22810 # Is the header present?
22811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <$ac_header>
22820 _ACEOF
22821 if { (ac_try="$ac_cpp conftest.$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22825 esac
22826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22828 ac_status=$?
22829 grep -v '^ *+' conftest.er1 >conftest.err
22830 rm -f conftest.er1
22831 cat conftest.err >&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); } >/dev/null && {
22834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22836 }; then
22837 ac_header_preproc=yes
22838 else
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ac_header_preproc=no
22845 rm -f conftest.err conftest.$ac_ext
22846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22847 echo "${ECHO_T}$ac_header_preproc" >&6; }
22849 # So? What about this header?
22850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22851 yes:no: )
22852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22856 ac_header_preproc=yes
22858 no:yes:* )
22859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22873 esac
22874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879 eval "$as_ac_Header=\$ac_header_preproc"
22881 ac_res=`eval echo '${'$as_ac_Header'}'`
22882 { echo "$as_me:$LINENO: result: $ac_res" >&5
22883 echo "${ECHO_T}$ac_res" >&6; }
22886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22889 _ACEOF
22893 done
22896 if test -f /usr/lpp/X11/bin/smt.exp; then
22898 cat >>confdefs.h <<\_ACEOF
22899 #define HAVE_AIX_SMT_EXP 1
22900 _ACEOF
22904 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22905 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22906 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22907 { echo "$as_me:$LINENO: result: yes" >&5
22908 echo "${ECHO_T}yes" >&6; }
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_DEV_PTMX 1
22912 _ACEOF
22914 else
22915 { echo "$as_me:$LINENO: result: no" >&5
22916 echo "${ECHO_T}no" >&6; }
22919 { echo "$as_me:$LINENO: checking for pid_t" >&5
22920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22921 if test "${ac_cv_type_pid_t+set}" = set; then
22922 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 else
22924 cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h. */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 $ac_includes_default
22931 typedef pid_t ac__type_new_;
22933 main ()
22935 if ((ac__type_new_ *) 0)
22936 return 0;
22937 if (sizeof (ac__type_new_))
22938 return 0;
22940 return 0;
22942 _ACEOF
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948 esac
22949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22951 ac_status=$?
22952 grep -v '^ *+' conftest.er1 >conftest.err
22953 rm -f conftest.er1
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22960 ac_cv_type_pid_t=yes
22961 else
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 ac_cv_type_pid_t=no
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22971 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22972 if test $ac_cv_type_pid_t = yes; then
22974 else
22976 cat >>confdefs.h <<_ACEOF
22977 #define pid_t int
22978 _ACEOF
22983 for ac_header in vfork.h
22985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22992 ac_res=`eval echo '${'$as_ac_Header'}'`
22993 { echo "$as_me:$LINENO: result: $ac_res" >&5
22994 echo "${ECHO_T}$ac_res" >&6; }
22995 else
22996 # Is the header compilable?
22997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23000 /* confdefs.h. */
23001 _ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 #include <$ac_header>
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_header_compiler=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_compiler=no
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h. */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <$ac_header>
23047 _ACEOF
23048 if { (ac_try="$ac_cpp conftest.$ac_ext"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23055 ac_status=$?
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } >/dev/null && {
23061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 }; then
23064 ac_header_preproc=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_preproc=no
23072 rm -f conftest.err conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23074 echo "${ECHO_T}$ac_header_preproc" >&6; }
23076 # So? What about this header?
23077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23078 yes:no: )
23079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23083 ac_header_preproc=yes
23085 no:yes:* )
23086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23100 esac
23101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106 eval "$as_ac_Header=\$ac_header_preproc"
23108 ac_res=`eval echo '${'$as_ac_Header'}'`
23109 { echo "$as_me:$LINENO: result: $ac_res" >&5
23110 echo "${ECHO_T}$ac_res" >&6; }
23113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23114 cat >>confdefs.h <<_ACEOF
23115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23116 _ACEOF
23120 done
23124 for ac_func in fork vfork
23126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23130 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 else
23132 cat >conftest.$ac_ext <<_ACEOF
23133 /* confdefs.h. */
23134 _ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23140 #define $ac_func innocuous_$ac_func
23142 /* System header to define __stub macros and hopefully few prototypes,
23143 which can conflict with char $ac_func (); below.
23144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23145 <limits.h> exists even on freestanding compilers. */
23147 #ifdef __STDC__
23148 # include <limits.h>
23149 #else
23150 # include <assert.h>
23151 #endif
23153 #undef $ac_func
23155 /* Override any GCC internal prototype to avoid an error.
23156 Use char because int might match the return type of a GCC
23157 builtin and then its argument prototype would still apply. */
23158 #ifdef __cplusplus
23159 extern "C"
23160 #endif
23161 char $ac_func ();
23162 /* The GNU C library defines this for functions which it implements
23163 to always fail with ENOSYS. Some functions are actually named
23164 something starting with __ and the normal name is an alias. */
23165 #if defined __stub_$ac_func || defined __stub___$ac_func
23166 choke me
23167 #endif
23170 main ()
23172 return $ac_func ();
23174 return 0;
23176 _ACEOF
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (ac_try="$ac_link"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_link") 2>conftest.er1
23185 ac_status=$?
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest$ac_exeext &&
23194 $as_test_x conftest$ac_exeext; then
23195 eval "$as_ac_var=yes"
23196 else
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 eval "$as_ac_var=no"
23203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23204 conftest$ac_exeext conftest.$ac_ext
23206 ac_res=`eval echo '${'$as_ac_var'}'`
23207 { echo "$as_me:$LINENO: result: $ac_res" >&5
23208 echo "${ECHO_T}$ac_res" >&6; }
23209 if test `eval echo '${'$as_ac_var'}'` = yes; then
23210 cat >>confdefs.h <<_ACEOF
23211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23212 _ACEOF
23215 done
23217 if test "x$ac_cv_func_fork" = xyes; then
23218 { echo "$as_me:$LINENO: checking for working fork" >&5
23219 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23220 if test "${ac_cv_func_fork_works+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223 if test "$cross_compiling" = yes; then
23224 ac_cv_func_fork_works=cross
23225 else
23226 cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h. */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 $ac_includes_default
23234 main ()
23237 /* By Ruediger Kuhlmann. */
23238 return fork () < 0;
23241 return 0;
23243 _ACEOF
23244 rm -f conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23249 esac
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251 (eval "$ac_link") 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23255 { (case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258 esac
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_try") 2>&5
23261 ac_status=$?
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 ac_cv_func_fork_works=yes
23265 else
23266 echo "$as_me: program exited with status $ac_status" >&5
23267 echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ( exit $ac_status )
23271 ac_cv_func_fork_works=no
23273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23278 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23279 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23281 else
23282 ac_cv_func_fork_works=$ac_cv_func_fork
23284 if test "x$ac_cv_func_fork_works" = xcross; then
23285 case $host in
23286 *-*-amigaos* | *-*-msdosdjgpp*)
23287 # Override, as these systems have only a dummy fork() stub
23288 ac_cv_func_fork_works=no
23291 ac_cv_func_fork_works=yes
23293 esac
23294 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23295 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23297 ac_cv_func_vfork_works=$ac_cv_func_vfork
23298 if test "x$ac_cv_func_vfork" = xyes; then
23299 { echo "$as_me:$LINENO: checking for working vfork" >&5
23300 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23301 if test "${ac_cv_func_vfork_works+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304 if test "$cross_compiling" = yes; then
23305 ac_cv_func_vfork_works=cross
23306 else
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 /* Thanks to Paul Eggert for this test. */
23314 $ac_includes_default
23315 #include <sys/wait.h>
23316 #ifdef HAVE_VFORK_H
23317 # include <vfork.h>
23318 #endif
23319 /* On some sparc systems, changes by the child to local and incoming
23320 argument registers are propagated back to the parent. The compiler
23321 is told about this with #include <vfork.h>, but some compilers
23322 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23323 static variable whose address is put into a register that is
23324 clobbered by the vfork. */
23325 static void
23326 #ifdef __cplusplus
23327 sparc_address_test (int arg)
23328 # else
23329 sparc_address_test (arg) int arg;
23330 #endif
23332 static pid_t child;
23333 if (!child) {
23334 child = vfork ();
23335 if (child < 0) {
23336 perror ("vfork");
23337 _exit(2);
23339 if (!child) {
23340 arg = getpid();
23341 write(-1, "", 0);
23342 _exit (arg);
23348 main ()
23350 pid_t parent = getpid ();
23351 pid_t child;
23353 sparc_address_test (0);
23355 child = vfork ();
23357 if (child == 0) {
23358 /* Here is another test for sparc vfork register problems. This
23359 test uses lots of local variables, at least as many local
23360 variables as main has allocated so far including compiler
23361 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23362 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23363 reuse the register of parent for one of the local variables,
23364 since it will think that parent can't possibly be used any more
23365 in this routine. Assigning to the local variable will thus
23366 munge parent in the parent process. */
23367 pid_t
23368 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23369 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23370 /* Convince the compiler that p..p7 are live; otherwise, it might
23371 use the same hardware register for all 8 local variables. */
23372 if (p != p1 || p != p2 || p != p3 || p != p4
23373 || p != p5 || p != p6 || p != p7)
23374 _exit(1);
23376 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23377 from child file descriptors. If the child closes a descriptor
23378 before it execs or exits, this munges the parent's descriptor
23379 as well. Test for this by closing stdout in the child. */
23380 _exit(close(fileno(stdout)) != 0);
23381 } else {
23382 int status;
23383 struct stat st;
23385 while (wait(&status) != child)
23387 return (
23388 /* Was there some problem with vforking? */
23389 child < 0
23391 /* Did the child fail? (This shouldn't happen.) */
23392 || status
23394 /* Did the vfork/compiler bug occur? */
23395 || parent != getpid()
23397 /* Did the file descriptor bug occur? */
23398 || fstat(fileno(stdout), &st) != 0
23402 _ACEOF
23403 rm -f conftest$ac_exeext
23404 if { (ac_try="$ac_link"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_link") 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23414 { (case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23417 esac
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_try") 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; }; then
23423 ac_cv_func_vfork_works=yes
23424 else
23425 echo "$as_me: program exited with status $ac_status" >&5
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ( exit $ac_status )
23430 ac_cv_func_vfork_works=no
23432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23437 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23438 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23441 if test "x$ac_cv_func_fork_works" = xcross; then
23442 ac_cv_func_vfork_works=$ac_cv_func_vfork
23443 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23444 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23447 if test "x$ac_cv_func_vfork_works" = xyes; then
23449 cat >>confdefs.h <<\_ACEOF
23450 #define HAVE_WORKING_VFORK 1
23451 _ACEOF
23453 else
23455 cat >>confdefs.h <<\_ACEOF
23456 #define vfork fork
23457 _ACEOF
23460 if test "x$ac_cv_func_fork_works" = xyes; then
23462 cat >>confdefs.h <<\_ACEOF
23463 #define HAVE_WORKING_FORK 1
23464 _ACEOF
23469 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23470 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23471 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474 cat >conftest.$ac_ext <<_ACEOF
23475 /* confdefs.h. */
23476 _ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 #include <langinfo.h>
23482 main ()
23484 char* cs = nl_langinfo(CODESET);
23486 return 0;
23488 _ACEOF
23489 rm -f conftest.$ac_objext conftest$ac_exeext
23490 if { (ac_try="$ac_link"
23491 case "(($ac_try" in
23492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23494 esac
23495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23496 (eval "$ac_link") 2>conftest.er1
23497 ac_status=$?
23498 grep -v '^ *+' conftest.er1 >conftest.err
23499 rm -f conftest.er1
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest$ac_exeext &&
23506 $as_test_x conftest$ac_exeext; then
23507 emacs_cv_langinfo_codeset=yes
23508 else
23509 echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 emacs_cv_langinfo_codeset=no
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516 conftest$ac_exeext conftest.$ac_ext
23519 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23520 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23521 if test $emacs_cv_langinfo_codeset = yes; then
23523 cat >>confdefs.h <<\_ACEOF
23524 #define HAVE_LANGINFO_CODESET 1
23525 _ACEOF
23529 { echo "$as_me:$LINENO: checking for size_t" >&5
23530 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23531 if test "${ac_cv_type_size_t+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533 else
23534 cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h. */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23541 typedef size_t ac__type_new_;
23543 main ()
23545 if ((ac__type_new_ *) 0)
23546 return 0;
23547 if (sizeof (ac__type_new_))
23548 return 0;
23550 return 0;
23552 _ACEOF
23553 rm -f conftest.$ac_objext
23554 if { (ac_try="$ac_compile"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest.$ac_objext; then
23570 ac_cv_type_size_t=yes
23571 else
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ac_cv_type_size_t=no
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23580 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23581 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23582 if test $ac_cv_type_size_t = yes; then
23584 cat >>confdefs.h <<_ACEOF
23585 #define HAVE_SIZE_T 1
23586 _ACEOF
23592 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23593 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23594 if test "${ac_cv_type_mbstate_t+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 else
23597 cat >conftest.$ac_ext <<_ACEOF
23598 /* confdefs.h. */
23599 _ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603 $ac_includes_default
23604 # include <wchar.h>
23606 main ()
23608 mbstate_t x; return sizeof x;
23610 return 0;
23612 _ACEOF
23613 rm -f conftest.$ac_objext
23614 if { (ac_try="$ac_compile"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_compile") 2>conftest.er1
23621 ac_status=$?
23622 grep -v '^ *+' conftest.er1 >conftest.err
23623 rm -f conftest.er1
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && {
23627 test -z "$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 } && test -s conftest.$ac_objext; then
23630 ac_cv_type_mbstate_t=yes
23631 else
23632 echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ac_cv_type_mbstate_t=no
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23641 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23642 if test $ac_cv_type_mbstate_t = yes; then
23644 cat >>confdefs.h <<\_ACEOF
23645 #define HAVE_MBSTATE_T 1
23646 _ACEOF
23648 else
23650 cat >>confdefs.h <<\_ACEOF
23651 #define mbstate_t int
23652 _ACEOF
23656 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23657 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23658 if test "${emacs_cv_c_restrict+set}" = set; then
23659 echo $ECHO_N "(cached) $ECHO_C" >&6
23660 else
23661 cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h. */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23667 void fred (int *restrict x);
23669 main ()
23673 return 0;
23675 _ACEOF
23676 rm -f conftest.$ac_objext
23677 if { (ac_try="$ac_compile"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 emacs_cv_c_restrict=yes
23694 else
23695 echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23698 cat >conftest.$ac_ext <<_ACEOF
23699 /* confdefs.h. */
23700 _ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 void fred (int *__restrict x);
23706 main ()
23710 return 0;
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } && {
23727 test -z "$ac_c_werror_flag" ||
23728 test ! -s conftest.err
23729 } && test -s conftest.$ac_objext; then
23730 emacs_cv_c_restrict=__restrict
23731 else
23732 echo "$as_me: failed program was:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 emacs_cv_c_restrict=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23744 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23745 case "$emacs_cv_c_restrict" in
23746 yes) emacs_restrict=restrict;;
23747 no) emacs_restrict="";;
23748 *) emacs_restrict="$emacs_cv_c_restrict";;
23749 esac
23750 if test "$emacs_restrict" != __restrict; then
23752 cat >>confdefs.h <<_ACEOF
23753 #define __restrict $emacs_restrict
23754 _ACEOF
23758 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23759 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23760 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23761 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 else
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h. */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 void fred (int x[__restrict]);
23771 main ()
23775 return 0;
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23786 ac_status=$?
23787 grep -v '^ *+' conftest.er1 >conftest.err
23788 rm -f conftest.er1
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 emacs_cv_c_restrict_arr=yes
23796 else
23797 echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 emacs_cv_c_restrict_arr=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23806 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23807 if test "$emacs_cv_c_restrict_arr" = yes; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define __restrict_arr __restrict
23811 _ACEOF
23817 # Set up the CFLAGS for real compilation, so we can substitute it.
23818 CFLAGS="$REAL_CFLAGS"
23819 CPPFLAGS="$REAL_CPPFLAGS"
23821 #### Find out which version of Emacs this is.
23822 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23823 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23824 if test x"${version}" = x; then
23825 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23826 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23827 { (exit 1); exit 1; }; }
23830 ### Specify what sort of things we'll be editing into Makefile and config.h.
23831 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23871 cat >>confdefs.h <<_ACEOF
23872 #define EMACS_CONFIGURATION "${canonical}"
23873 _ACEOF
23876 cat >>confdefs.h <<_ACEOF
23877 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23878 _ACEOF
23881 cat >>confdefs.h <<_ACEOF
23882 #define config_machfile "${machfile}"
23883 _ACEOF
23886 cat >>confdefs.h <<_ACEOF
23887 #define config_opsysfile "${opsysfile}"
23888 _ACEOF
23891 cat >>confdefs.h <<_ACEOF
23892 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23893 _ACEOF
23896 cat >>confdefs.h <<_ACEOF
23897 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23898 _ACEOF
23901 cat >>confdefs.h <<_ACEOF
23902 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23903 _ACEOF
23906 cat >>confdefs.h <<_ACEOF
23907 #define UNEXEC_SRC ${UNEXEC_SRC}
23908 _ACEOF
23911 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23913 cat >>confdefs.h <<\_ACEOF
23914 #define HAVE_X_WINDOWS 1
23915 _ACEOF
23918 if test "${USE_X_TOOLKIT}" != "none" ; then
23920 cat >>confdefs.h <<\_ACEOF
23921 #define USE_X_TOOLKIT 1
23922 _ACEOF
23924 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23926 cat >>confdefs.h <<\_ACEOF
23927 #define USE_LUCID 1
23928 _ACEOF
23930 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define USE_MOTIF 1
23934 _ACEOF
23938 if test "${HAVE_X11}" = "yes" ; then
23940 cat >>confdefs.h <<\_ACEOF
23941 #define HAVE_X11 1
23942 _ACEOF
23945 if test "${HAVE_MENUS}" = "yes" ; then
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_MENUS 1
23949 _ACEOF
23952 if test "${GNU_MALLOC}" = "yes" ; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define GNU_MALLOC 1
23956 _ACEOF
23959 if test "${REL_ALLOC}" = "yes" ; then
23961 cat >>confdefs.h <<\_ACEOF
23962 #define REL_ALLOC 1
23963 _ACEOF
23972 #### Report on what we decided to do.
23973 #### Report GTK as a toolkit, even if it doesn't use Xt.
23974 #### It makes printing result more understandable as using GTK sets
23975 #### toolkit_scroll_bars to yes by default.
23976 if test "${HAVE_GTK}" = "yes"; then
23977 USE_X_TOOLKIT=GTK
23980 echo "
23981 Configured for \`${canonical}'.
23983 Where should the build process find the source code? ${srcdir}
23984 What operating system and machine description files should Emacs use?
23985 \`${opsysfile}' and \`${machfile}'
23986 What compiler should emacs be built with? ${CC} ${CFLAGS}
23987 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23988 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23989 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23990 What window system should Emacs use? ${window_system}
23991 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23993 if test -n "${x_includes}"; then
23994 echo " Where do we find X Windows header files? ${x_includes}"
23995 else
23996 echo " Where do we find X Windows header files? Standard dirs"
23998 if test -n "${x_libraries}"; then
23999 echo " Where do we find X Windows libraries? ${x_libraries}"
24000 else
24001 echo " Where do we find X Windows libraries? Standard dirs"
24004 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24005 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24006 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24007 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24008 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24009 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24010 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24011 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24012 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24014 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24015 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24016 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24017 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24019 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24020 echo
24022 if test $USE_XASSERTS = yes; then
24023 echo " Compiling with asserts turned on."
24024 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24027 echo
24029 if test "$USE_X_TOOLKIT" = GTK; then
24030 case "$canonical" in
24031 *cygwin*)
24032 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24033 will probably get a crash on startup. If this happens, please use another
24034 toolkit for Emacs. See etc/PROBLEMS for more information."
24036 esac
24039 if test "$HAVE_NS" = "yes"; then
24040 echo
24041 echo "You must run \"make install\" in order to test the built application.
24042 The installed application will go to nextstep/Emacs.app and can be
24043 run or moved from there."
24044 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24045 echo "The application will be fully self-contained."
24046 else
24047 echo "The lisp resources for the application will be installed under ${prefix}.
24048 You may need to run \"make install\" with sudo. The application will fail
24049 to run if these resources are not installed."
24051 echo
24054 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24055 echo "D-Bus integration has been tested for GNU/Linux only."
24056 echo
24060 # Remove any trailing slashes in these variables.
24061 test "${prefix}" != NONE &&
24062 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24063 test "${exec_prefix}" != NONE &&
24064 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24066 # Now get this: Some word that is part of the ${srcdir} directory name
24067 # or the ${configuration} value might, just might, happen to be an
24068 # identifier like `sun4' or `i386' or something, and be predefined by
24069 # the C preprocessor to some helpful value like 1, or maybe the empty
24070 # string. Needless to say consequent macro substitutions are less
24071 # than conducive to the makefile finding the correct directory.
24072 cpp_undefs="`echo $srcdir $configuration $canonical |
24073 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24074 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24076 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24077 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24078 ## from Makefile.c can correctly provide the arg `-traditional' to the
24079 ## C preprocessor.
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h. */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 yes..yes
24088 _ACEOF
24089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24090 $EGREP "yes..yes" >/dev/null 2>&1; then
24091 CPP_NEED_TRADITIONAL=no
24092 else
24093 CPP_NEED_TRADITIONAL=yes
24095 rm -f conftest*
24098 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"
24100 ac_config_commands="$ac_config_commands default"
24102 cat >confcache <<\_ACEOF
24103 # This file is a shell script that caches the results of configure
24104 # tests run on this system so they can be shared between configure
24105 # scripts and configure runs, see configure's option --config-cache.
24106 # It is not useful on other systems. If it contains results you don't
24107 # want to keep, you may remove or edit it.
24109 # config.status only pays attention to the cache file if you give it
24110 # the --recheck option to rerun configure.
24112 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24113 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24114 # following values.
24116 _ACEOF
24118 # The following way of writing the cache mishandles newlines in values,
24119 # but we know of no workaround that is simple, portable, and efficient.
24120 # So, we kill variables containing newlines.
24121 # Ultrix sh set writes to stderr and can't be redirected directly,
24122 # and sets the high bit in the cache file unless we assign to the vars.
24124 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24125 eval ac_val=\$$ac_var
24126 case $ac_val in #(
24127 *${as_nl}*)
24128 case $ac_var in #(
24129 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24130 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24131 esac
24132 case $ac_var in #(
24133 _ | IFS | as_nl) ;; #(
24134 *) $as_unset $ac_var ;;
24135 esac ;;
24136 esac
24137 done
24139 (set) 2>&1 |
24140 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24141 *${as_nl}ac_space=\ *)
24142 # `set' does not quote correctly, so add quotes (double-quote
24143 # substitution turns \\\\ into \\, and sed turns \\ into \).
24144 sed -n \
24145 "s/'/'\\\\''/g;
24146 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24147 ;; #(
24149 # `set' quotes correctly as required by POSIX, so do not add quotes.
24150 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24152 esac |
24153 sort
24155 sed '
24156 /^ac_cv_env_/b end
24157 t clear
24158 :clear
24159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24160 t end
24161 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24162 :end' >>confcache
24163 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24164 if test -w "$cache_file"; then
24165 test "x$cache_file" != "x/dev/null" &&
24166 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24167 echo "$as_me: updating cache $cache_file" >&6;}
24168 cat confcache >$cache_file
24169 else
24170 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24171 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24174 rm -f confcache
24176 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24177 # Let make expand exec_prefix.
24178 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24180 DEFS=-DHAVE_CONFIG_H
24182 ac_libobjs=
24183 ac_ltlibobjs=
24184 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24185 # 1. Remove the extension, and $U if already installed.
24186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24187 ac_i=`echo "$ac_i" | sed "$ac_script"`
24188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24189 # will be set to the directory where LIBOBJS objects are built.
24190 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24191 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24192 done
24193 LIBOBJS=$ac_libobjs
24195 LTLIBOBJS=$ac_ltlibobjs
24199 : ${CONFIG_STATUS=./config.status}
24200 ac_clean_files_save=$ac_clean_files
24201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24204 cat >$CONFIG_STATUS <<_ACEOF
24205 #! $SHELL
24206 # Generated by $as_me.
24207 # Run this file to recreate the current configuration.
24208 # Compiler output produced by configure, useful for debugging
24209 # configure, is in config.log if it exists.
24211 debug=false
24212 ac_cs_recheck=false
24213 ac_cs_silent=false
24214 SHELL=\${CONFIG_SHELL-$SHELL}
24215 _ACEOF
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 ## --------------------- ##
24219 ## M4sh Initialization. ##
24220 ## --------------------- ##
24222 # Be more Bourne compatible
24223 DUALCASE=1; export DUALCASE # for MKS sh
24224 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24225 emulate sh
24226 NULLCMD=:
24227 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24228 # is contrary to our usage. Disable this feature.
24229 alias -g '${1+"$@"}'='"$@"'
24230 setopt NO_GLOB_SUBST
24231 else
24232 case `(set -o) 2>/dev/null` in
24233 *posix*) set -o posix ;;
24234 esac
24241 # PATH needs CR
24242 # Avoid depending upon Character Ranges.
24243 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24244 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24245 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24246 as_cr_digits='0123456789'
24247 as_cr_alnum=$as_cr_Letters$as_cr_digits
24249 # The user is always right.
24250 if test "${PATH_SEPARATOR+set}" != set; then
24251 echo "#! /bin/sh" >conf$$.sh
24252 echo "exit 0" >>conf$$.sh
24253 chmod +x conf$$.sh
24254 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24255 PATH_SEPARATOR=';'
24256 else
24257 PATH_SEPARATOR=:
24259 rm -f conf$$.sh
24262 # Support unset when possible.
24263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24264 as_unset=unset
24265 else
24266 as_unset=false
24270 # IFS
24271 # We need space, tab and new line, in precisely that order. Quoting is
24272 # there to prevent editors from complaining about space-tab.
24273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24274 # splitting by setting IFS to empty value.)
24275 as_nl='
24277 IFS=" "" $as_nl"
24279 # Find who we are. Look in the path if we contain no directory separator.
24280 case $0 in
24281 *[\\/]* ) as_myself=$0 ;;
24282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24283 for as_dir in $PATH
24285 IFS=$as_save_IFS
24286 test -z "$as_dir" && as_dir=.
24287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24288 done
24289 IFS=$as_save_IFS
24292 esac
24293 # We did not find ourselves, most probably we were run as `sh COMMAND'
24294 # in which case we are not to be found in the path.
24295 if test "x$as_myself" = x; then
24296 as_myself=$0
24298 if test ! -f "$as_myself"; then
24299 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24300 { (exit 1); exit 1; }
24303 # Work around bugs in pre-3.0 UWIN ksh.
24304 for as_var in ENV MAIL MAILPATH
24305 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24306 done
24307 PS1='$ '
24308 PS2='> '
24309 PS4='+ '
24311 # NLS nuisances.
24312 for as_var in \
24313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24315 LC_TELEPHONE LC_TIME
24317 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24318 eval $as_var=C; export $as_var
24319 else
24320 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24322 done
24324 # Required to use basename.
24325 if expr a : '\(a\)' >/dev/null 2>&1 &&
24326 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24327 as_expr=expr
24328 else
24329 as_expr=false
24332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24333 as_basename=basename
24334 else
24335 as_basename=false
24339 # Name of the executable.
24340 as_me=`$as_basename -- "$0" ||
24341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24342 X"$0" : 'X\(//\)$' \| \
24343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24344 echo X/"$0" |
24345 sed '/^.*\/\([^/][^/]*\)\/*$/{
24346 s//\1/
24349 /^X\/\(\/\/\)$/{
24350 s//\1/
24353 /^X\/\(\/\).*/{
24354 s//\1/
24357 s/.*/./; q'`
24359 # CDPATH.
24360 $as_unset CDPATH
24364 as_lineno_1=$LINENO
24365 as_lineno_2=$LINENO
24366 test "x$as_lineno_1" != "x$as_lineno_2" &&
24367 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24370 # uniformly replaced by the line number. The first 'sed' inserts a
24371 # line-number line after each line using $LINENO; the second 'sed'
24372 # does the real work. The second script uses 'N' to pair each
24373 # line-number line with the line containing $LINENO, and appends
24374 # trailing '-' during substitution so that $LINENO is not a special
24375 # case at line end.
24376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24377 # scripts with optimization help from Paolo Bonzini. Blame Lee
24378 # E. McMahon (1931-1989) for sed's syntax. :-)
24379 sed -n '
24381 /[$]LINENO/=
24382 ' <$as_myself |
24383 sed '
24384 s/[$]LINENO.*/&-/
24385 t lineno
24387 :lineno
24389 :loop
24390 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24391 t loop
24392 s/-\n.*//
24393 ' >$as_me.lineno &&
24394 chmod +x "$as_me.lineno" ||
24395 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24396 { (exit 1); exit 1; }; }
24398 # Don't try to exec as it changes $[0], causing all sort of problems
24399 # (the dirname of $[0] is not the place where we might find the
24400 # original and so on. Autoconf is especially sensitive to this).
24401 . "./$as_me.lineno"
24402 # Exit status is that of the last command.
24403 exit
24407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24408 as_dirname=dirname
24409 else
24410 as_dirname=false
24413 ECHO_C= ECHO_N= ECHO_T=
24414 case `echo -n x` in
24415 -n*)
24416 case `echo 'x\c'` in
24417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24418 *) ECHO_C='\c';;
24419 esac;;
24421 ECHO_N='-n';;
24422 esac
24424 if expr a : '\(a\)' >/dev/null 2>&1 &&
24425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24426 as_expr=expr
24427 else
24428 as_expr=false
24431 rm -f conf$$ conf$$.exe conf$$.file
24432 if test -d conf$$.dir; then
24433 rm -f conf$$.dir/conf$$.file
24434 else
24435 rm -f conf$$.dir
24436 mkdir conf$$.dir
24438 echo >conf$$.file
24439 if ln -s conf$$.file conf$$ 2>/dev/null; then
24440 as_ln_s='ln -s'
24441 # ... but there are two gotchas:
24442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24444 # In both cases, we have to default to `cp -p'.
24445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24446 as_ln_s='cp -p'
24447 elif ln conf$$.file conf$$ 2>/dev/null; then
24448 as_ln_s=ln
24449 else
24450 as_ln_s='cp -p'
24452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24453 rmdir conf$$.dir 2>/dev/null
24455 if mkdir -p . 2>/dev/null; then
24456 as_mkdir_p=:
24457 else
24458 test -d ./-p && rmdir ./-p
24459 as_mkdir_p=false
24462 if test -x / >/dev/null 2>&1; then
24463 as_test_x='test -x'
24464 else
24465 if ls -dL / >/dev/null 2>&1; then
24466 as_ls_L_option=L
24467 else
24468 as_ls_L_option=
24470 as_test_x='
24471 eval sh -c '\''
24472 if test -d "$1"; then
24473 test -d "$1/.";
24474 else
24475 case $1 in
24476 -*)set "./$1";;
24477 esac;
24478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24479 ???[sx]*):;;*)false;;esac;fi
24480 '\'' sh
24483 as_executable_p=$as_test_x
24485 # Sed expression to map a string onto a valid CPP name.
24486 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24488 # Sed expression to map a string onto a valid variable name.
24489 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24492 exec 6>&1
24494 # Save the log message, to keep $[0] and so on meaningful, and to
24495 # report actual input values of CONFIG_FILES etc. instead of their
24496 # values after options handling.
24497 ac_log="
24498 This file was extended by emacs $as_me 23.0.60, which was
24499 generated by GNU Autoconf 2.61. Invocation command line was
24501 CONFIG_FILES = $CONFIG_FILES
24502 CONFIG_HEADERS = $CONFIG_HEADERS
24503 CONFIG_LINKS = $CONFIG_LINKS
24504 CONFIG_COMMANDS = $CONFIG_COMMANDS
24505 $ $0 $@
24507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24510 _ACEOF
24512 cat >>$CONFIG_STATUS <<_ACEOF
24513 # Files that config.status was made for.
24514 config_files="$ac_config_files"
24515 config_headers="$ac_config_headers"
24516 config_commands="$ac_config_commands"
24518 _ACEOF
24520 cat >>$CONFIG_STATUS <<\_ACEOF
24521 ac_cs_usage="\
24522 \`$as_me' instantiates files from templates according to the
24523 current configuration.
24525 Usage: $0 [OPTIONS] [FILE]...
24527 -h, --help print this help, then exit
24528 -V, --version print version number and configuration settings, then exit
24529 -q, --quiet do not print progress messages
24530 -d, --debug don't remove temporary files
24531 --recheck update $as_me by reconfiguring in the same conditions
24532 --file=FILE[:TEMPLATE]
24533 instantiate the configuration file FILE
24534 --header=FILE[:TEMPLATE]
24535 instantiate the configuration header FILE
24537 Configuration files:
24538 $config_files
24540 Configuration headers:
24541 $config_headers
24543 Configuration commands:
24544 $config_commands
24546 Report bugs to <bug-autoconf@gnu.org>."
24548 _ACEOF
24549 cat >>$CONFIG_STATUS <<_ACEOF
24550 ac_cs_version="\\
24551 emacs config.status 23.0.60
24552 configured by $0, generated by GNU Autoconf 2.61,
24553 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24555 Copyright (C) 2006 Free Software Foundation, Inc.
24556 This config.status script is free software; the Free Software Foundation
24557 gives unlimited permission to copy, distribute and modify it."
24559 ac_pwd='$ac_pwd'
24560 srcdir='$srcdir'
24561 INSTALL='$INSTALL'
24562 _ACEOF
24564 cat >>$CONFIG_STATUS <<\_ACEOF
24565 # If no file are specified by the user, then we need to provide default
24566 # value. By we need to know if files were specified by the user.
24567 ac_need_defaults=:
24568 while test $# != 0
24570 case $1 in
24571 --*=*)
24572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24573 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24574 ac_shift=:
24577 ac_option=$1
24578 ac_optarg=$2
24579 ac_shift=shift
24581 esac
24583 case $ac_option in
24584 # Handling of the options.
24585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24586 ac_cs_recheck=: ;;
24587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24588 echo "$ac_cs_version"; exit ;;
24589 --debug | --debu | --deb | --de | --d | -d )
24590 debug=: ;;
24591 --file | --fil | --fi | --f )
24592 $ac_shift
24593 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24594 ac_need_defaults=false;;
24595 --header | --heade | --head | --hea )
24596 $ac_shift
24597 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24598 ac_need_defaults=false;;
24599 --he | --h)
24600 # Conflict between --help and --header
24601 { echo "$as_me: error: ambiguous option: $1
24602 Try \`$0 --help' for more information." >&2
24603 { (exit 1); exit 1; }; };;
24604 --help | --hel | -h )
24605 echo "$ac_cs_usage"; exit ;;
24606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24608 ac_cs_silent=: ;;
24610 # This is an error.
24611 -*) { echo "$as_me: error: unrecognized option: $1
24612 Try \`$0 --help' for more information." >&2
24613 { (exit 1); exit 1; }; } ;;
24615 *) ac_config_targets="$ac_config_targets $1"
24616 ac_need_defaults=false ;;
24618 esac
24619 shift
24620 done
24622 ac_configure_extra_args=
24624 if $ac_cs_silent; then
24625 exec 6>/dev/null
24626 ac_configure_extra_args="$ac_configure_extra_args --silent"
24629 _ACEOF
24630 cat >>$CONFIG_STATUS <<_ACEOF
24631 if \$ac_cs_recheck; then
24632 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24633 CONFIG_SHELL=$SHELL
24634 export CONFIG_SHELL
24635 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24638 _ACEOF
24639 cat >>$CONFIG_STATUS <<\_ACEOF
24640 exec 5>>config.log
24642 echo
24643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24644 ## Running $as_me. ##
24645 _ASBOX
24646 echo "$ac_log"
24647 } >&5
24649 _ACEOF
24650 cat >>$CONFIG_STATUS <<_ACEOF
24652 # INIT-COMMANDS
24654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24656 _ACEOF
24658 cat >>$CONFIG_STATUS <<\_ACEOF
24660 # Handling of arguments.
24661 for ac_config_target in $ac_config_targets
24663 case $ac_config_target in
24664 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24665 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24666 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24667 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24668 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24669 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24670 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24671 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24672 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24673 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24674 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24675 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24676 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24678 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24679 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24680 { (exit 1); exit 1; }; };;
24681 esac
24682 done
24685 # If the user did not use the arguments to specify the items to instantiate,
24686 # then the envvar interface is used. Set only those that are not.
24687 # We use the long form for the default assignment because of an extremely
24688 # bizarre bug on SunOS 4.1.3.
24689 if $ac_need_defaults; then
24690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24695 # Have a temporary directory for convenience. Make it in the build tree
24696 # simply because there is no reason against having it here, and in addition,
24697 # creating and moving files from /tmp can sometimes cause problems.
24698 # Hook for its removal unless debugging.
24699 # Note that there is a small window in which the directory will not be cleaned:
24700 # after its creation but before its name has been assigned to `$tmp'.
24701 $debug ||
24703 tmp=
24704 trap 'exit_status=$?
24705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24707 trap '{ (exit 1); exit 1; }' 1 2 13 15
24709 # Create a (secure) tmp directory for tmp files.
24712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24713 test -n "$tmp" && test -d "$tmp"
24714 } ||
24716 tmp=./conf$$-$RANDOM
24717 (umask 077 && mkdir "$tmp")
24718 } ||
24720 echo "$me: cannot create a temporary directory in ." >&2
24721 { (exit 1); exit 1; }
24725 # Set up the sed scripts for CONFIG_FILES section.
24728 # No need to generate the scripts if there are no CONFIG_FILES.
24729 # This happens for instance when ./config.status config.h
24730 if test -n "$CONFIG_FILES"; then
24732 _ACEOF
24736 ac_delim='%!_!# '
24737 for ac_last_try in false false false false false :; do
24738 cat >conf$$subs.sed <<_ACEOF
24739 SHELL!$SHELL$ac_delim
24740 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24741 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24742 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24743 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24744 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24745 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24746 exec_prefix!$exec_prefix$ac_delim
24747 prefix!$prefix$ac_delim
24748 program_transform_name!$program_transform_name$ac_delim
24749 bindir!$bindir$ac_delim
24750 sbindir!$sbindir$ac_delim
24751 libexecdir!$libexecdir$ac_delim
24752 datarootdir!$datarootdir$ac_delim
24753 datadir!$datadir$ac_delim
24754 sysconfdir!$sysconfdir$ac_delim
24755 sharedstatedir!$sharedstatedir$ac_delim
24756 localstatedir!$localstatedir$ac_delim
24757 includedir!$includedir$ac_delim
24758 oldincludedir!$oldincludedir$ac_delim
24759 docdir!$docdir$ac_delim
24760 infodir!$infodir$ac_delim
24761 htmldir!$htmldir$ac_delim
24762 dvidir!$dvidir$ac_delim
24763 pdfdir!$pdfdir$ac_delim
24764 psdir!$psdir$ac_delim
24765 libdir!$libdir$ac_delim
24766 localedir!$localedir$ac_delim
24767 mandir!$mandir$ac_delim
24768 DEFS!$DEFS$ac_delim
24769 ECHO_C!$ECHO_C$ac_delim
24770 ECHO_N!$ECHO_N$ac_delim
24771 ECHO_T!$ECHO_T$ac_delim
24772 LIBS!$LIBS$ac_delim
24773 build_alias!$build_alias$ac_delim
24774 host_alias!$host_alias$ac_delim
24775 target_alias!$target_alias$ac_delim
24776 MAINT!$MAINT$ac_delim
24777 build!$build$ac_delim
24778 build_cpu!$build_cpu$ac_delim
24779 build_vendor!$build_vendor$ac_delim
24780 build_os!$build_os$ac_delim
24781 host!$host$ac_delim
24782 host_cpu!$host_cpu$ac_delim
24783 host_vendor!$host_vendor$ac_delim
24784 host_os!$host_os$ac_delim
24785 CC!$CC$ac_delim
24786 CFLAGS!$CFLAGS$ac_delim
24787 LDFLAGS!$LDFLAGS$ac_delim
24788 CPPFLAGS!$CPPFLAGS$ac_delim
24789 ac_ct_CC!$ac_ct_CC$ac_delim
24790 EXEEXT!$EXEEXT$ac_delim
24791 OBJEXT!$OBJEXT$ac_delim
24792 CPP!$CPP$ac_delim
24793 GREP!$GREP$ac_delim
24794 EGREP!$EGREP$ac_delim
24795 LN_S!$LN_S$ac_delim
24796 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24797 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24798 INSTALL_DATA!$INSTALL_DATA$ac_delim
24799 RANLIB!$RANLIB$ac_delim
24800 INSTALL_INFO!$INSTALL_INFO$ac_delim
24801 GZIP_PROG!$GZIP_PROG$ac_delim
24802 MAKEINFO!$MAKEINFO$ac_delim
24803 LIBSOUND!$LIBSOUND$ac_delim
24804 PKG_CONFIG!$PKG_CONFIG$ac_delim
24805 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24806 ALSA_LIBS!$ALSA_LIBS$ac_delim
24807 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24808 SET_MAKE!$SET_MAKE$ac_delim
24809 XMKMF!$XMKMF$ac_delim
24810 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24811 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24812 RSVG_LIBS!$RSVG_LIBS$ac_delim
24813 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24814 GTK_LIBS!$GTK_LIBS$ac_delim
24815 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24816 DBUS_LIBS!$DBUS_LIBS$ac_delim
24817 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24818 XFT_LIBS!$XFT_LIBS$ac_delim
24819 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24820 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24821 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24822 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24823 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24824 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24825 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24826 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24827 ALLOCA!$ALLOCA$ac_delim
24828 liblockfile!$liblockfile$ac_delim
24829 LIBOBJS!$LIBOBJS$ac_delim
24830 NEED_SETGID!$NEED_SETGID$ac_delim
24831 KMEM_GROUP!$KMEM_GROUP$ac_delim
24832 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24833 GETOPT_H!$GETOPT_H$ac_delim
24834 GETOPTOBJS!$GETOPTOBJS$ac_delim
24835 version!$version$ac_delim
24836 _ACEOF
24838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24839 break
24840 elif $ac_last_try; then
24841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24843 { (exit 1); exit 1; }; }
24844 else
24845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24847 done
24849 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24850 if test -n "$ac_eof"; then
24851 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24852 ac_eof=`expr $ac_eof + 1`
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24858 _ACEOF
24859 sed '
24860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24861 s/^/s,@/; s/!/@,|#_!!_#|/
24864 s/'"$ac_delim"'$/,g/; t
24865 s/$/\\/; p
24866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24867 ' >>$CONFIG_STATUS <conf$$subs.sed
24868 rm -f conf$$subs.sed
24869 cat >>$CONFIG_STATUS <<_ACEOF
24870 CEOF$ac_eof
24871 _ACEOF
24874 ac_delim='%!_!# '
24875 for ac_last_try in false false false false false :; do
24876 cat >conf$$subs.sed <<_ACEOF
24877 configuration!$configuration$ac_delim
24878 canonical!$canonical$ac_delim
24879 srcdir!$srcdir$ac_delim
24880 lispdir!$lispdir$ac_delim
24881 locallisppath!$locallisppath$ac_delim
24882 lisppath!$lisppath$ac_delim
24883 x_default_search_path!$x_default_search_path$ac_delim
24884 etcdir!$etcdir$ac_delim
24885 archlibdir!$archlibdir$ac_delim
24886 bitmapdir!$bitmapdir$ac_delim
24887 gamedir!$gamedir$ac_delim
24888 gameuser!$gameuser$ac_delim
24889 c_switch_system!$c_switch_system$ac_delim
24890 c_switch_machine!$c_switch_machine$ac_delim
24891 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24892 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24893 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24894 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24895 machfile!$machfile$ac_delim
24896 opsysfile!$opsysfile$ac_delim
24897 ns_appdir!$ns_appdir$ac_delim
24898 ns_appbindir!$ns_appbindir$ac_delim
24899 ns_appresdir!$ns_appresdir$ac_delim
24900 ns_appsrc!$ns_appsrc$ac_delim
24901 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
24902 LTLIBOBJS!$LTLIBOBJS$ac_delim
24903 _ACEOF
24905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
24906 break
24907 elif $ac_last_try; then
24908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24910 { (exit 1); exit 1; }; }
24911 else
24912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24914 done
24916 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24917 if test -n "$ac_eof"; then
24918 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24919 ac_eof=`expr $ac_eof + 1`
24922 cat >>$CONFIG_STATUS <<_ACEOF
24923 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24925 _ACEOF
24926 sed '
24927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24928 s/^/s,@/; s/!/@,|#_!!_#|/
24931 s/'"$ac_delim"'$/,g/; t
24932 s/$/\\/; p
24933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24934 ' >>$CONFIG_STATUS <conf$$subs.sed
24935 rm -f conf$$subs.sed
24936 cat >>$CONFIG_STATUS <<_ACEOF
24937 :end
24938 s/|#_!!_#|//g
24939 CEOF$ac_eof
24940 _ACEOF
24943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24945 # trailing colons and then remove the whole line if VPATH becomes empty
24946 # (actually we leave an empty line to preserve line numbers).
24947 if test "x$srcdir" = x.; then
24948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24949 s/:*\$(srcdir):*/:/
24950 s/:*\${srcdir}:*/:/
24951 s/:*@srcdir@:*/:/
24952 s/^\([^=]*=[ ]*\):*/\1/
24953 s/:*$//
24954 s/^[^=]*=[ ]*$//
24958 cat >>$CONFIG_STATUS <<\_ACEOF
24959 fi # test -n "$CONFIG_FILES"
24962 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24964 case $ac_tag in
24965 :[FHLC]) ac_mode=$ac_tag; continue;;
24966 esac
24967 case $ac_mode$ac_tag in
24968 :[FHL]*:*);;
24969 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24970 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24971 { (exit 1); exit 1; }; };;
24972 :[FH]-) ac_tag=-:-;;
24973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24974 esac
24975 ac_save_IFS=$IFS
24976 IFS=:
24977 set x $ac_tag
24978 IFS=$ac_save_IFS
24979 shift
24980 ac_file=$1
24981 shift
24983 case $ac_mode in
24984 :L) ac_source=$1;;
24985 :[FH])
24986 ac_file_inputs=
24987 for ac_f
24989 case $ac_f in
24990 -) ac_f="$tmp/stdin";;
24991 *) # Look for the file first in the build tree, then in the source tree
24992 # (if the path is not absolute). The absolute path cannot be DOS-style,
24993 # because $ac_f cannot contain `:'.
24994 test -f "$ac_f" ||
24995 case $ac_f in
24996 [\\/$]*) false;;
24997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24998 esac ||
24999 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25000 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25001 { (exit 1); exit 1; }; };;
25002 esac
25003 ac_file_inputs="$ac_file_inputs $ac_f"
25004 done
25006 # Let's still pretend it is `configure' which instantiates (i.e., don't
25007 # use $as_me), people would be surprised to read:
25008 # /* config.h. Generated by config.status. */
25009 configure_input="Generated from "`IFS=:
25010 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25011 if test x"$ac_file" != x-; then
25012 configure_input="$ac_file. $configure_input"
25013 { echo "$as_me:$LINENO: creating $ac_file" >&5
25014 echo "$as_me: creating $ac_file" >&6;}
25017 case $ac_tag in
25018 *:-:* | *:-) cat >"$tmp/stdin";;
25019 esac
25021 esac
25023 ac_dir=`$as_dirname -- "$ac_file" ||
25024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25025 X"$ac_file" : 'X\(//\)[^/]' \| \
25026 X"$ac_file" : 'X\(//\)$' \| \
25027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25028 echo X"$ac_file" |
25029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25030 s//\1/
25033 /^X\(\/\/\)[^/].*/{
25034 s//\1/
25037 /^X\(\/\/\)$/{
25038 s//\1/
25041 /^X\(\/\).*/{
25042 s//\1/
25045 s/.*/./; q'`
25046 { as_dir="$ac_dir"
25047 case $as_dir in #(
25048 -*) as_dir=./$as_dir;;
25049 esac
25050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25051 as_dirs=
25052 while :; do
25053 case $as_dir in #(
25054 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25055 *) as_qdir=$as_dir;;
25056 esac
25057 as_dirs="'$as_qdir' $as_dirs"
25058 as_dir=`$as_dirname -- "$as_dir" ||
25059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25060 X"$as_dir" : 'X\(//\)[^/]' \| \
25061 X"$as_dir" : 'X\(//\)$' \| \
25062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25063 echo X"$as_dir" |
25064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25065 s//\1/
25068 /^X\(\/\/\)[^/].*/{
25069 s//\1/
25072 /^X\(\/\/\)$/{
25073 s//\1/
25076 /^X\(\/\).*/{
25077 s//\1/
25080 s/.*/./; q'`
25081 test -d "$as_dir" && break
25082 done
25083 test -z "$as_dirs" || eval "mkdir $as_dirs"
25084 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25086 { (exit 1); exit 1; }; }; }
25087 ac_builddir=.
25089 case "$ac_dir" in
25090 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25093 # A ".." for each directory in $ac_dir_suffix.
25094 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25095 case $ac_top_builddir_sub in
25096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25098 esac ;;
25099 esac
25100 ac_abs_top_builddir=$ac_pwd
25101 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25102 # for backward compatibility:
25103 ac_top_builddir=$ac_top_build_prefix
25105 case $srcdir in
25106 .) # We are building in place.
25107 ac_srcdir=.
25108 ac_top_srcdir=$ac_top_builddir_sub
25109 ac_abs_top_srcdir=$ac_pwd ;;
25110 [\\/]* | ?:[\\/]* ) # Absolute name.
25111 ac_srcdir=$srcdir$ac_dir_suffix;
25112 ac_top_srcdir=$srcdir
25113 ac_abs_top_srcdir=$srcdir ;;
25114 *) # Relative name.
25115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25116 ac_top_srcdir=$ac_top_build_prefix$srcdir
25117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25118 esac
25119 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25122 case $ac_mode in
25125 # CONFIG_FILE
25128 case $INSTALL in
25129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25131 esac
25132 _ACEOF
25134 cat >>$CONFIG_STATUS <<\_ACEOF
25135 # If the template does not know about datarootdir, expand it.
25136 # FIXME: This hack should be removed a few years after 2.60.
25137 ac_datarootdir_hack=; ac_datarootdir_seen=
25139 case `sed -n '/datarootdir/ {
25143 /@datadir@/p
25144 /@docdir@/p
25145 /@infodir@/p
25146 /@localedir@/p
25147 /@mandir@/p
25148 ' $ac_file_inputs` in
25149 *datarootdir*) ac_datarootdir_seen=yes;;
25150 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25151 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25152 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25153 _ACEOF
25154 cat >>$CONFIG_STATUS <<_ACEOF
25155 ac_datarootdir_hack='
25156 s&@datadir@&$datadir&g
25157 s&@docdir@&$docdir&g
25158 s&@infodir@&$infodir&g
25159 s&@localedir@&$localedir&g
25160 s&@mandir@&$mandir&g
25161 s&\\\${datarootdir}&$datarootdir&g' ;;
25162 esac
25163 _ACEOF
25165 # Neutralize VPATH when `$srcdir' = `.'.
25166 # Shell code in configure.ac might set extrasub.
25167 # FIXME: do we really want to maintain this feature?
25168 cat >>$CONFIG_STATUS <<_ACEOF
25169 sed "$ac_vpsub
25170 $extrasub
25171 _ACEOF
25172 cat >>$CONFIG_STATUS <<\_ACEOF
25174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25175 s&@configure_input@&$configure_input&;t t
25176 s&@top_builddir@&$ac_top_builddir_sub&;t t
25177 s&@srcdir@&$ac_srcdir&;t t
25178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25179 s&@top_srcdir@&$ac_top_srcdir&;t t
25180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25181 s&@builddir@&$ac_builddir&;t t
25182 s&@abs_builddir@&$ac_abs_builddir&;t t
25183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25184 s&@INSTALL@&$ac_INSTALL&;t t
25185 $ac_datarootdir_hack
25186 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25191 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25192 which seems to be undefined. Please make sure it is defined." >&5
25193 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25194 which seems to be undefined. Please make sure it is defined." >&2;}
25196 rm -f "$tmp/stdin"
25197 case $ac_file in
25198 -) cat "$tmp/out"; rm -f "$tmp/out";;
25199 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25200 esac
25204 # CONFIG_HEADER
25206 _ACEOF
25208 # Transform confdefs.h into a sed script `conftest.defines', that
25209 # substitutes the proper values into config.h.in to produce config.h.
25210 rm -f conftest.defines conftest.tail
25211 # First, append a space to every undef/define line, to ease matching.
25212 echo 's/$/ /' >conftest.defines
25213 # Then, protect against being on the right side of a sed subst, or in
25214 # an unquoted here document, in config.status. If some macros were
25215 # called several times there might be several #defines for the same
25216 # symbol, which is useless. But do not sort them, since the last
25217 # AC_DEFINE must be honored.
25218 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25219 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25220 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25221 # PARAMS is the parameter list in the macro definition--in most cases, it's
25222 # just an empty string.
25223 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25224 ac_dB='\\)[ (].*,\\1define\\2'
25225 ac_dC=' '
25226 ac_dD=' ,'
25228 uniq confdefs.h |
25229 sed -n '
25230 t rset
25231 :rset
25232 s/^[ ]*#[ ]*define[ ][ ]*//
25233 t ok
25236 s/[\\&,]/\\&/g
25237 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25238 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25239 ' >>conftest.defines
25241 # Remove the space that was appended to ease matching.
25242 # Then replace #undef with comments. This is necessary, for
25243 # example, in the case of _POSIX_SOURCE, which is predefined and required
25244 # on some systems where configure will not decide to define it.
25245 # (The regexp can be short, since the line contains either #define or #undef.)
25246 echo 's/ $//
25247 s,^[ #]*u.*,/* & */,' >>conftest.defines
25249 # Break up conftest.defines:
25250 ac_max_sed_lines=50
25252 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25253 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25254 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25255 # et cetera.
25256 ac_in='$ac_file_inputs'
25257 ac_out='"$tmp/out1"'
25258 ac_nxt='"$tmp/out2"'
25260 while :
25262 # Write a here document:
25263 cat >>$CONFIG_STATUS <<_ACEOF
25264 # First, check the format of the line:
25265 cat >"\$tmp/defines.sed" <<\\CEOF
25266 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25267 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25269 :def
25270 _ACEOF
25271 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25272 echo 'CEOF
25273 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25274 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25275 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25276 grep . conftest.tail >/dev/null || break
25277 rm -f conftest.defines
25278 mv conftest.tail conftest.defines
25279 done
25280 rm -f conftest.defines conftest.tail
25282 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284 if test x"$ac_file" != x-; then
25285 echo "/* $configure_input */" >"$tmp/config.h"
25286 cat "$ac_result" >>"$tmp/config.h"
25287 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25288 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25289 echo "$as_me: $ac_file is unchanged" >&6;}
25290 else
25291 rm -f $ac_file
25292 mv "$tmp/config.h" $ac_file
25294 else
25295 echo "/* $configure_input */"
25296 cat "$ac_result"
25298 rm -f "$tmp/out12"
25301 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25302 echo "$as_me: executing $ac_file commands" >&6;}
25304 esac
25307 case $ac_file$ac_mode in
25308 "default":C)
25310 ### Make the necessary directories, if they don't exist.
25311 for dir in etc lisp ; do
25312 test -d ${dir} || mkdir ${dir}
25313 done
25315 # Build src/Makefile from ${srcdir}/src/Makefile.c
25316 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25317 # This must be done after src/config.h is built, since we rely on that file.
25319 echo creating src/epaths.h
25320 ${MAKE-make} epaths-force
25322 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25323 # `..' to `. .' unless invoked with -traditional
25325 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25326 CPPFLAGS="$CPPFLAGS -traditional"
25329 echo creating lib-src/Makefile
25330 ( cd lib-src
25331 rm -f junk.c junk1.c junk2.c
25332 sed -e '/start of cpp stuff/q' \
25333 < Makefile.c > junk1.c
25334 sed -e '1,/start of cpp stuff/d'\
25335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25336 < Makefile.c > junk.c
25337 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25339 cat junk1.c junk2.c > Makefile.new
25340 rm -f junk.c junk1.c junk2.c
25341 chmod 444 Makefile.new
25342 mv -f Makefile.new Makefile
25345 echo creating src/Makefile
25346 ( cd src
25347 rm -f junk.c junk1.c junk2.c
25348 sed -e '/start of cpp stuff/q' \
25349 < Makefile.c > junk1.c
25350 sed -e '1,/start of cpp stuff/d'\
25351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25352 < Makefile.c > junk.c
25353 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25355 cat junk1.c junk2.c > Makefile.new
25356 rm -f junk.c junk1.c junk2.c
25357 chmod 444 Makefile.new
25358 mv -f Makefile.new Makefile
25361 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25362 echo creating src/.gdbinit
25363 echo source $srcdir/src/.gdbinit > src/.gdbinit
25368 esac
25369 done # for ac_tag
25372 { (exit 0); exit 0; }
25373 _ACEOF
25374 chmod +x $CONFIG_STATUS
25375 ac_clean_files=$ac_clean_files_save
25378 # configure is writing to config.log, and then calls config.status.
25379 # config.status does its own redirection, appending to config.log.
25380 # Unfortunately, on DOS this fails, as config.log is still kept open
25381 # by configure, so config.status won't be able to write to it; its
25382 # output is simply discarded. So we exec the FD to /dev/null,
25383 # effectively closing config.log, so it can be properly (re)opened and
25384 # appended to by config.status. When coming back to configure, we
25385 # need to make the FD available again.
25386 if test "$no_create" != yes; then
25387 ac_cs_success=:
25388 ac_config_status_args=
25389 test "$silent" = yes &&
25390 ac_config_status_args="$ac_config_status_args --quiet"
25391 exec 5>/dev/null
25392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25393 exec 5>>config.log
25394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25395 # would make configure fail if this is the last instruction.
25396 $ac_cs_success || { (exit 1); exit 1; }