(hi-lock-line-face-buffer, hi-lock-face-buffer)
[emacs.git] / configure
blobfdc235b125d836ea51a93ed2e83aabd029d8b32c
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 <sys/types.h> /* for off_t */
18683 #include <stdio.h>
18685 main ()
18687 int (*fp) (FILE *, off_t, int) = fseeko;
18688 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18690 return 0;
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18701 ac_status=$?
18702 grep -v '^ *+' conftest.er1 >conftest.err
18703 rm -f conftest.er1
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 ac_cv_sys_largefile_source=no; break
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #define _LARGEFILE_SOURCE 1
18728 #include <sys/types.h> /* for off_t */
18729 #include <stdio.h>
18731 main ()
18733 int (*fp) (FILE *, off_t, int) = fseeko;
18734 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18736 return 0;
18738 _ACEOF
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (ac_try="$ac_link"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744 esac
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18747 ac_status=$?
18748 grep -v '^ *+' conftest.er1 >conftest.err
18749 rm -f conftest.er1
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest$ac_exeext &&
18756 $as_test_x conftest$ac_exeext; then
18757 ac_cv_sys_largefile_source=1; break
18758 else
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766 conftest$ac_exeext conftest.$ac_ext
18767 ac_cv_sys_largefile_source=unknown
18768 break
18769 done
18771 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18772 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18773 case $ac_cv_sys_largefile_source in #(
18774 no | unknown) ;;
18776 cat >>confdefs.h <<_ACEOF
18777 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18778 _ACEOF
18780 esac
18781 rm -f conftest*
18783 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18784 # in glibc 2.1.3, but that breaks too many other things.
18785 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18786 if test $ac_cv_sys_largefile_source != unknown; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_FSEEKO 1
18790 _ACEOF
18795 # Configure getopt.
18796 # getopt.m4 serial 10
18798 # The getopt module assume you want GNU getopt, with getopt_long etc,
18799 # rather than vanilla POSIX getopt. This means your your code should
18800 # always include <getopt.h> for the getopt prototypes.
18812 # Prerequisites of lib/getopt*.
18817 GETOPT_H=
18819 for ac_header in getopt.h
18821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18828 ac_res=`eval echo '${'$as_ac_Header'}'`
18829 { echo "$as_me:$LINENO: result: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18831 else
18832 # Is the header compilable?
18833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 $ac_includes_default
18842 #include <$ac_header>
18843 _ACEOF
18844 rm -f conftest.$ac_objext
18845 if { (ac_try="$ac_compile"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849 esac
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_compile") 2>conftest.er1
18852 ac_status=$?
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest.$ac_objext; then
18861 ac_header_compiler=yes
18862 else
18863 echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 ac_header_compiler=no
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18871 echo "${ECHO_T}$ac_header_compiler" >&6; }
18873 # Is the header present?
18874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 #include <$ac_header>
18883 _ACEOF
18884 if { (ac_try="$ac_cpp conftest.$ac_ext"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18888 esac
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } >/dev/null && {
18897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18899 }; then
18900 ac_header_preproc=yes
18901 else
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_header_preproc=no
18908 rm -f conftest.err conftest.$ac_ext
18909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18910 echo "${ECHO_T}$ac_header_preproc" >&6; }
18912 # So? What about this header?
18913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18914 yes:no: )
18915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18919 ac_header_preproc=yes
18921 no:yes:* )
18922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18936 esac
18937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 eval "$as_ac_Header=\$ac_header_preproc"
18944 ac_res=`eval echo '${'$as_ac_Header'}'`
18945 { echo "$as_me:$LINENO: result: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18952 _ACEOF
18954 else
18955 GETOPT_H=getopt.h
18958 done
18960 if test -z "$GETOPT_H"; then
18962 for ac_func in getopt_long_only
18964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18968 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 else
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18978 #define $ac_func innocuous_$ac_func
18980 /* System header to define __stub macros and hopefully few prototypes,
18981 which can conflict with char $ac_func (); below.
18982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18983 <limits.h> exists even on freestanding compilers. */
18985 #ifdef __STDC__
18986 # include <limits.h>
18987 #else
18988 # include <assert.h>
18989 #endif
18991 #undef $ac_func
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
18996 #ifdef __cplusplus
18997 extern "C"
18998 #endif
18999 char $ac_func ();
19000 /* The GNU C library defines this for functions which it implements
19001 to always fail with ENOSYS. Some functions are actually named
19002 something starting with __ and the normal name is an alias. */
19003 #if defined __stub_$ac_func || defined __stub___$ac_func
19004 choke me
19005 #endif
19008 main ()
19010 return $ac_func ();
19012 return 0;
19014 _ACEOF
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19020 esac
19021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext &&
19032 $as_test_x conftest$ac_exeext; then
19033 eval "$as_ac_var=yes"
19034 else
19035 echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 eval "$as_ac_var=no"
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19044 ac_res=`eval echo '${'$as_ac_var'}'`
19045 { echo "$as_me:$LINENO: result: $ac_res" >&5
19046 echo "${ECHO_T}$ac_res" >&6; }
19047 if test `eval echo '${'$as_ac_var'}'` = yes; then
19048 cat >>confdefs.h <<_ACEOF
19049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19050 _ACEOF
19052 else
19053 GETOPT_H=getopt.h
19055 done
19059 if test -z "$GETOPT_H"; then
19060 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19061 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19062 if test "${ac_cv_have_decl_optreset+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065 cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h. */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 #include <getopt.h>
19074 main ()
19076 #ifndef optreset
19077 (void) optreset;
19078 #endif
19081 return 0;
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (ac_try="$ac_compile"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_compile") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest.$ac_objext; then
19101 ac_cv_have_decl_optreset=yes
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_have_decl_optreset=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19112 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19113 if test $ac_cv_have_decl_optreset = yes; then
19114 GETOPT_H=getopt.h
19119 if test -z "$GETOPT_H"; then
19120 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19121 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19122 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125 if test "$cross_compiling" = yes; then
19126 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19127 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19128 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #include <getopt.h>
19140 main ()
19142 #ifndef getopt_clip
19143 (void) getopt_clip;
19144 #endif
19147 return 0;
19149 _ACEOF
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_compile") 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest.$ac_objext; then
19167 ac_cv_have_decl_getopt_clip=yes
19168 else
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_have_decl_getopt_clip=no
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19178 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19179 if test $ac_cv_have_decl_getopt_clip = yes; then
19180 gl_cv_func_gnu_getopt=no
19181 else
19182 gl_cv_func_gnu_getopt=yes
19185 else
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h. */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <getopt.h>
19194 main ()
19197 char *myargv[3];
19198 myargv[0] = "conftest";
19199 myargv[1] = "-+";
19200 myargv[2] = 0;
19201 return getopt (2, myargv, "+a") != '?';
19204 return 0;
19206 _ACEOF
19207 rm -f conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212 esac
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_link") 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 gl_cv_func_gnu_getopt=yes
19228 else
19229 echo "$as_me: program exited with status $ac_status" >&5
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ( exit $ac_status )
19234 gl_cv_func_gnu_getopt=no
19236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19241 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19242 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19243 if test "$gl_cv_func_gnu_getopt" = "no"; then
19244 GETOPT_H=getopt.h
19250 if test -n "$GETOPT_H"; then
19253 GETOPT_H=getopt.h
19255 cat >>confdefs.h <<\_ACEOF
19256 #define __GETOPT_PREFIX rpl_
19257 _ACEOF
19262 GETOPTOBJS='getopt.o getopt1.o'
19269 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19270 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19271 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274 # Use it with a single arg.
19275 cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h. */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19283 main ()
19285 getpgrp (0);
19287 return 0;
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (ac_try="$ac_compile"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_compile") 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest.$ac_objext; then
19307 ac_cv_func_getpgrp_void=no
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_func_getpgrp_void=yes
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19319 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19320 if test $ac_cv_func_getpgrp_void = yes; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define GETPGRP_VOID 1
19324 _ACEOF
19330 for ac_func in strftime
19332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 else
19338 cat >conftest.$ac_ext <<_ACEOF
19339 /* confdefs.h. */
19340 _ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19346 #define $ac_func innocuous_$ac_func
19348 /* System header to define __stub macros and hopefully few prototypes,
19349 which can conflict with char $ac_func (); below.
19350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19351 <limits.h> exists even on freestanding compilers. */
19353 #ifdef __STDC__
19354 # include <limits.h>
19355 #else
19356 # include <assert.h>
19357 #endif
19359 #undef $ac_func
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19364 #ifdef __cplusplus
19365 extern "C"
19366 #endif
19367 char $ac_func ();
19368 /* The GNU C library defines this for functions which it implements
19369 to always fail with ENOSYS. Some functions are actually named
19370 something starting with __ and the normal name is an alias. */
19371 #if defined __stub_$ac_func || defined __stub___$ac_func
19372 choke me
19373 #endif
19376 main ()
19378 return $ac_func ();
19380 return 0;
19382 _ACEOF
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (ac_try="$ac_link"
19385 case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_link") 2>conftest.er1
19391 ac_status=$?
19392 grep -v '^ *+' conftest.er1 >conftest.err
19393 rm -f conftest.er1
19394 cat conftest.err >&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } && {
19397 test -z "$ac_c_werror_flag" ||
19398 test ! -s conftest.err
19399 } && test -s conftest$ac_exeext &&
19400 $as_test_x conftest$ac_exeext; then
19401 eval "$as_ac_var=yes"
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 eval "$as_ac_var=no"
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410 conftest$ac_exeext conftest.$ac_ext
19412 ac_res=`eval echo '${'$as_ac_var'}'`
19413 { echo "$as_me:$LINENO: result: $ac_res" >&5
19414 echo "${ECHO_T}$ac_res" >&6; }
19415 if test `eval echo '${'$as_ac_var'}'` = yes; then
19416 cat >>confdefs.h <<_ACEOF
19417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19418 _ACEOF
19420 else
19421 # strftime is in -lintl on SCO UNIX.
19422 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19423 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19424 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 ac_check_lib_save_LIBS=$LIBS
19428 LIBS="-lintl $LIBS"
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h. */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19439 #ifdef __cplusplus
19440 extern "C"
19441 #endif
19442 char strftime ();
19444 main ()
19446 return strftime ();
19448 return 0;
19450 _ACEOF
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19459 ac_status=$?
19460 grep -v '^ *+' conftest.er1 >conftest.err
19461 rm -f conftest.er1
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext &&
19468 $as_test_x conftest$ac_exeext; then
19469 ac_cv_lib_intl_strftime=yes
19470 else
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_intl_strftime=no
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478 conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19481 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19482 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19483 if test $ac_cv_lib_intl_strftime = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_STRFTIME 1
19486 _ACEOF
19488 LIBS="-lintl $LIBS"
19492 done
19495 # UNIX98 PTYs.
19497 for ac_func in grantpt
19499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19513 #define $ac_func innocuous_$ac_func
19515 /* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func (); below.
19517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19518 <limits.h> exists even on freestanding compilers. */
19520 #ifdef __STDC__
19521 # include <limits.h>
19522 #else
19523 # include <assert.h>
19524 #endif
19526 #undef $ac_func
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19531 #ifdef __cplusplus
19532 extern "C"
19533 #endif
19534 char $ac_func ();
19535 /* The GNU C library defines this for functions which it implements
19536 to always fail with ENOSYS. Some functions are actually named
19537 something starting with __ and the normal name is an alias. */
19538 #if defined __stub_$ac_func || defined __stub___$ac_func
19539 choke me
19540 #endif
19543 main ()
19545 return $ac_func ();
19547 return 0;
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 eval "$as_ac_var=yes"
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 eval "$as_ac_var=no"
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19579 ac_res=`eval echo '${'$as_ac_var'}'`
19580 { echo "$as_me:$LINENO: result: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 if test `eval echo '${'$as_ac_var'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19585 _ACEOF
19588 done
19591 # PTY-related GNU extensions.
19593 for ac_func in getpt
19595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 cat >conftest.$ac_ext <<_ACEOF
19602 /* confdefs.h. */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define $ac_func innocuous_$ac_func
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char $ac_func (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19616 #ifdef __STDC__
19617 # include <limits.h>
19618 #else
19619 # include <assert.h>
19620 #endif
19622 #undef $ac_func
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 char $ac_func ();
19631 /* The GNU C library defines this for functions which it implements
19632 to always fail with ENOSYS. Some functions are actually named
19633 something starting with __ and the normal name is an alias. */
19634 #if defined __stub_$ac_func || defined __stub___$ac_func
19635 choke me
19636 #endif
19639 main ()
19641 return $ac_func ();
19643 return 0;
19645 _ACEOF
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19651 esac
19652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_link") 2>conftest.er1
19654 ac_status=$?
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest$ac_exeext &&
19663 $as_test_x conftest$ac_exeext; then
19664 eval "$as_ac_var=yes"
19665 else
19666 echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 eval "$as_ac_var=no"
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673 conftest$ac_exeext conftest.$ac_ext
19675 ac_res=`eval echo '${'$as_ac_var'}'`
19676 { echo "$as_me:$LINENO: result: $ac_res" >&5
19677 echo "${ECHO_T}$ac_res" >&6; }
19678 if test `eval echo '${'$as_ac_var'}'` = yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19681 _ACEOF
19684 done
19687 # Check this now, so that we will NOT find the above functions in ncurses.
19688 # That is because we have not set up to link ncurses in lib-src.
19689 # It's better to believe a function is not available
19690 # than to expect to find it in ncurses.
19692 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19693 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19694 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697 ac_check_lib_save_LIBS=$LIBS
19698 LIBS="-lncurses $LIBS"
19699 cat >conftest.$ac_ext <<_ACEOF
19700 /* confdefs.h. */
19701 _ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19706 /* Override any GCC internal prototype to avoid an error.
19707 Use char because int might match the return type of a GCC
19708 builtin and then its argument prototype would still apply. */
19709 #ifdef __cplusplus
19710 extern "C"
19711 #endif
19712 char tparm ();
19714 main ()
19716 return tparm ();
19718 return 0;
19720 _ACEOF
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19726 esac
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_link") 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } && {
19735 test -z "$ac_c_werror_flag" ||
19736 test ! -s conftest.err
19737 } && test -s conftest$ac_exeext &&
19738 $as_test_x conftest$ac_exeext; then
19739 ac_cv_lib_ncurses_tparm=yes
19740 else
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_lib_ncurses_tparm=no
19747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19748 conftest$ac_exeext conftest.$ac_ext
19749 LIBS=$ac_check_lib_save_LIBS
19751 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19752 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19753 if test $ac_cv_lib_ncurses_tparm = yes; then
19754 cat >>confdefs.h <<_ACEOF
19755 #define HAVE_LIBNCURSES 1
19756 _ACEOF
19758 LIBS="-lncurses $LIBS"
19763 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19765 resolv=no
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 #include <netinet/in.h>
19773 #include <arpa/nameser.h>
19774 #include <resolv.h>
19776 main ()
19778 return res_init();
19780 return 0;
19782 _ACEOF
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19801 have_res_init=yes
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 have_res_init=no
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext conftest.$ac_ext
19811 if test "$have_res_init" = no; then
19812 OLIBS="$LIBS"
19813 LIBS="$LIBS -lresolv"
19814 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19815 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 #include <netinet/in.h>
19823 #include <arpa/nameser.h>
19824 #include <resolv.h>
19826 main ()
19828 return res_init();
19830 return 0;
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest$ac_exeext &&
19850 $as_test_x conftest$ac_exeext; then
19851 have_res_init=yes
19852 else
19853 echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 have_res_init=no
19859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860 conftest$ac_exeext conftest.$ac_ext
19861 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19862 echo "${ECHO_T}$have_res_init" >&6; }
19863 if test "$have_res_init" = yes ; then
19864 resolv=yes
19866 LIBS="$OLIBS"
19869 if test "$have_res_init" = yes; then
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_RES_INIT 1
19873 _ACEOF
19877 # Do we need the Hesiod library to provide the support routines?
19878 if test "$with_hesiod" != no ; then
19879 # Don't set $LIBS here -- see comments above.
19880 { echo "$as_me:$LINENO: checking for res_send" >&5
19881 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19882 if test "${ac_cv_func_res_send+set}" = set; then
19883 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 else
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19893 #define res_send innocuous_res_send
19895 /* System header to define __stub macros and hopefully few prototypes,
19896 which can conflict with char res_send (); below.
19897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19898 <limits.h> exists even on freestanding compilers. */
19900 #ifdef __STDC__
19901 # include <limits.h>
19902 #else
19903 # include <assert.h>
19904 #endif
19906 #undef res_send
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char res_send ();
19915 /* The GNU C library defines this for functions which it implements
19916 to always fail with ENOSYS. Some functions are actually named
19917 something starting with __ and the normal name is an alias. */
19918 #if defined __stub_res_send || defined __stub___res_send
19919 choke me
19920 #endif
19923 main ()
19925 return res_send ();
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935 esac
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_link") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest$ac_exeext &&
19947 $as_test_x conftest$ac_exeext; then
19948 ac_cv_func_res_send=yes
19949 else
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_func_res_send=no
19956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19957 conftest$ac_exeext conftest.$ac_ext
19959 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19960 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19961 if test $ac_cv_func_res_send = yes; then
19963 else
19964 { echo "$as_me:$LINENO: checking for __res_send" >&5
19965 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19966 if test "${ac_cv_func___res_send+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h. */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19977 #define __res_send innocuous___res_send
19979 /* System header to define __stub macros and hopefully few prototypes,
19980 which can conflict with char __res_send (); below.
19981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19982 <limits.h> exists even on freestanding compilers. */
19984 #ifdef __STDC__
19985 # include <limits.h>
19986 #else
19987 # include <assert.h>
19988 #endif
19990 #undef __res_send
19992 /* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19995 #ifdef __cplusplus
19996 extern "C"
19997 #endif
19998 char __res_send ();
19999 /* The GNU C library defines this for functions which it implements
20000 to always fail with ENOSYS. Some functions are actually named
20001 something starting with __ and the normal name is an alias. */
20002 #if defined __stub___res_send || defined __stub_____res_send
20003 choke me
20004 #endif
20007 main ()
20009 return __res_send ();
20011 return 0;
20013 _ACEOF
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (ac_try="$ac_link"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20019 esac
20020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_link") 2>conftest.er1
20022 ac_status=$?
20023 grep -v '^ *+' conftest.er1 >conftest.err
20024 rm -f conftest.er1
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext &&
20031 $as_test_x conftest$ac_exeext; then
20032 ac_cv_func___res_send=yes
20033 else
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_func___res_send=no
20040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20041 conftest$ac_exeext conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20044 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20045 if test $ac_cv_func___res_send = yes; then
20047 else
20048 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20049 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20050 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20051 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053 ac_check_lib_save_LIBS=$LIBS
20054 LIBS="-lresolv $LIBS"
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h. */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20065 #ifdef __cplusplus
20066 extern "C"
20067 #endif
20068 char res_send ();
20070 main ()
20072 return res_send ();
20074 return 0;
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } && {
20091 test -z "$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 } && test -s conftest$ac_exeext &&
20094 $as_test_x conftest$ac_exeext; then
20095 ac_cv_lib_resolv_res_send=yes
20096 else
20097 echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_cv_lib_resolv_res_send=no
20103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20108 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20109 if test $ac_cv_lib_resolv_res_send = yes; then
20110 resolv=yes
20111 else
20112 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20113 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20114 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20115 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117 ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-lresolv $LIBS"
20119 cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h. */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20129 #ifdef __cplusplus
20130 extern "C"
20131 #endif
20132 char __res_send ();
20134 main ()
20136 return __res_send ();
20138 return 0;
20140 _ACEOF
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146 esac
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest$ac_exeext &&
20158 $as_test_x conftest$ac_exeext; then
20159 ac_cv_lib_resolv___res_send=yes
20160 else
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_resolv___res_send=no
20167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20172 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20173 if test $ac_cv_lib_resolv___res_send = yes; then
20174 resolv=yes
20183 if test "$resolv" = yes ; then
20184 RESOLVLIB=-lresolv
20185 else
20186 RESOLVLIB=
20188 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20189 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20190 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20191 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20201 #define hes_getmailhost innocuous_hes_getmailhost
20203 /* System header to define __stub macros and hopefully few prototypes,
20204 which can conflict with char hes_getmailhost (); below.
20205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20206 <limits.h> exists even on freestanding compilers. */
20208 #ifdef __STDC__
20209 # include <limits.h>
20210 #else
20211 # include <assert.h>
20212 #endif
20214 #undef hes_getmailhost
20216 /* Override any GCC internal prototype to avoid an error.
20217 Use char because int might match the return type of a GCC
20218 builtin and then its argument prototype would still apply. */
20219 #ifdef __cplusplus
20220 extern "C"
20221 #endif
20222 char hes_getmailhost ();
20223 /* The GNU C library defines this for functions which it implements
20224 to always fail with ENOSYS. Some functions are actually named
20225 something starting with __ and the normal name is an alias. */
20226 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20227 choke me
20228 #endif
20231 main ()
20233 return hes_getmailhost ();
20235 return 0;
20237 _ACEOF
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (ac_try="$ac_link"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest$ac_exeext &&
20255 $as_test_x conftest$ac_exeext; then
20256 ac_cv_func_hes_getmailhost=yes
20257 else
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_cv_func_hes_getmailhost=no
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265 conftest$ac_exeext conftest.$ac_ext
20267 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20268 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20269 if test $ac_cv_func_hes_getmailhost = yes; then
20271 else
20272 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20273 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20274 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lhesiod $RESOLVLIB $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char hes_getmailhost ();
20294 main ()
20296 return hes_getmailhost ();
20298 return 0;
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_link") 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest$ac_exeext &&
20318 $as_test_x conftest$ac_exeext; then
20319 ac_cv_lib_hesiod_hes_getmailhost=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_lib_hesiod_hes_getmailhost=no
20327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20328 conftest$ac_exeext conftest.$ac_ext
20329 LIBS=$ac_check_lib_save_LIBS
20331 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20332 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20333 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20335 cat >>confdefs.h <<\_ACEOF
20336 #define HAVE_LIBHESIOD 1
20337 _ACEOF
20339 else
20347 # Do we need libresolv (due to res_init or Hesiod)?
20348 if test "$resolv" = yes ; then
20350 cat >>confdefs.h <<\_ACEOF
20351 #define HAVE_LIBRESOLV 1
20352 _ACEOF
20356 # These tell us which Kerberos-related libraries to use.
20357 if test "${with_kerberos}" != no; then
20359 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20360 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20361 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364 ac_check_lib_save_LIBS=$LIBS
20365 LIBS="-lcom_err $LIBS"
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h. */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20376 #ifdef __cplusplus
20377 extern "C"
20378 #endif
20379 char com_err ();
20381 main ()
20383 return com_err ();
20385 return 0;
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20393 esac
20394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext &&
20405 $as_test_x conftest$ac_exeext; then
20406 ac_cv_lib_com_err_com_err=yes
20407 else
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_lib_com_err_com_err=no
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20419 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20420 if test $ac_cv_lib_com_err_com_err = yes; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_LIBCOM_ERR 1
20423 _ACEOF
20425 LIBS="-lcom_err $LIBS"
20430 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20431 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 else
20435 ac_check_lib_save_LIBS=$LIBS
20436 LIBS="-lk5crypto $LIBS"
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 char mit_des_cbc_encrypt ();
20452 main ()
20454 return mit_des_cbc_encrypt ();
20456 return 0;
20458 _ACEOF
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest$ac_exeext &&
20476 $as_test_x conftest$ac_exeext; then
20477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20478 else
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20486 conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20489 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20490 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20491 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBK5CRYPTO 1
20494 _ACEOF
20496 LIBS="-lk5crypto $LIBS"
20501 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20502 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20503 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lcrypto $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20518 #ifdef __cplusplus
20519 extern "C"
20520 #endif
20521 char mit_des_cbc_encrypt ();
20523 main ()
20525 return mit_des_cbc_encrypt ();
20527 return 0;
20529 _ACEOF
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20535 esac
20536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20538 ac_status=$?
20539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest$ac_exeext &&
20547 $as_test_x conftest$ac_exeext; then
20548 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20557 conftest$ac_exeext conftest.$ac_ext
20558 LIBS=$ac_check_lib_save_LIBS
20560 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20561 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20562 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_LIBCRYPTO 1
20565 _ACEOF
20567 LIBS="-lcrypto $LIBS"
20572 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20573 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20574 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20576 else
20577 ac_check_lib_save_LIBS=$LIBS
20578 LIBS="-lkrb5 $LIBS"
20579 cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h. */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 /* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply. */
20589 #ifdef __cplusplus
20590 extern "C"
20591 #endif
20592 char krb5_init_context ();
20594 main ()
20596 return krb5_init_context ();
20598 return 0;
20600 _ACEOF
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_link") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest$ac_exeext &&
20618 $as_test_x conftest$ac_exeext; then
20619 ac_cv_lib_krb5_krb5_init_context=yes
20620 else
20621 echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_lib_krb5_krb5_init_context=no
20627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20628 conftest$ac_exeext conftest.$ac_ext
20629 LIBS=$ac_check_lib_save_LIBS
20631 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20632 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20633 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_LIBKRB5 1
20636 _ACEOF
20638 LIBS="-lkrb5 $LIBS"
20642 if test "${with_kerberos5}" = no; then
20644 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20645 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20646 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 else
20649 ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-ldes425 $LIBS"
20651 cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h. */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20661 #ifdef __cplusplus
20662 extern "C"
20663 #endif
20664 char des_cbc_encrypt ();
20666 main ()
20668 return des_cbc_encrypt ();
20670 return 0;
20672 _ACEOF
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (ac_try="$ac_link"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_link") 2>conftest.er1
20681 ac_status=$?
20682 grep -v '^ *+' conftest.er1 >conftest.err
20683 rm -f conftest.er1
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest$ac_exeext &&
20690 $as_test_x conftest$ac_exeext; then
20691 ac_cv_lib_des425_des_cbc_encrypt=yes
20692 else
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_cv_lib_des425_des_cbc_encrypt=no
20699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20700 conftest$ac_exeext conftest.$ac_ext
20701 LIBS=$ac_check_lib_save_LIBS
20703 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20704 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20705 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define HAVE_LIBDES425 1
20708 _ACEOF
20710 LIBS="-ldes425 $LIBS"
20712 else
20714 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20715 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20716 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718 else
20719 ac_check_lib_save_LIBS=$LIBS
20720 LIBS="-ldes $LIBS"
20721 cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h. */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20731 #ifdef __cplusplus
20732 extern "C"
20733 #endif
20734 char des_cbc_encrypt ();
20736 main ()
20738 return des_cbc_encrypt ();
20740 return 0;
20742 _ACEOF
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 ac_cv_lib_des_des_cbc_encrypt=yes
20762 else
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_lib_des_des_cbc_encrypt=no
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20771 LIBS=$ac_check_lib_save_LIBS
20773 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20774 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20775 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define HAVE_LIBDES 1
20778 _ACEOF
20780 LIBS="-ldes $LIBS"
20787 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20788 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20789 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20790 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 else
20792 ac_check_lib_save_LIBS=$LIBS
20793 LIBS="-lkrb4 $LIBS"
20794 cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h. */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20801 /* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20804 #ifdef __cplusplus
20805 extern "C"
20806 #endif
20807 char krb_get_cred ();
20809 main ()
20811 return krb_get_cred ();
20813 return 0;
20815 _ACEOF
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (ac_try="$ac_link"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20821 esac
20822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_link") 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest$ac_exeext &&
20833 $as_test_x conftest$ac_exeext; then
20834 ac_cv_lib_krb4_krb_get_cred=yes
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 ac_cv_lib_krb4_krb_get_cred=no
20842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20843 conftest$ac_exeext conftest.$ac_ext
20844 LIBS=$ac_check_lib_save_LIBS
20846 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20847 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20848 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define HAVE_LIBKRB4 1
20851 _ACEOF
20853 LIBS="-lkrb4 $LIBS"
20855 else
20857 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20858 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20859 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lkrb $LIBS"
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h. */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 char krb_get_cred ();
20879 main ()
20881 return krb_get_cred ();
20883 return 0;
20885 _ACEOF
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_link") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest$ac_exeext &&
20903 $as_test_x conftest$ac_exeext; then
20904 ac_cv_lib_krb_krb_get_cred=yes
20905 else
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_lib_krb_krb_get_cred=no
20912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20913 conftest$ac_exeext conftest.$ac_ext
20914 LIBS=$ac_check_lib_save_LIBS
20916 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20917 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20918 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_LIBKRB 1
20921 _ACEOF
20923 LIBS="-lkrb $LIBS"
20931 if test "${with_kerberos5}" != no; then
20933 for ac_header in krb5.h
20935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943 { echo "$as_me:$LINENO: result: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20945 else
20946 # Is the header compilable?
20947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20949 cat >conftest.$ac_ext <<_ACEOF
20950 /* confdefs.h. */
20951 _ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20956 #include <$ac_header>
20957 _ACEOF
20958 rm -f conftest.$ac_objext
20959 if { (ac_try="$ac_compile"
20960 case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20963 esac
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20966 ac_status=$?
20967 grep -v '^ *+' conftest.er1 >conftest.err
20968 rm -f conftest.er1
20969 cat conftest.err >&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 ac_header_compiler=yes
20976 else
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_header_compiler=no
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20985 echo "${ECHO_T}$ac_header_compiler" >&6; }
20987 # Is the header present?
20988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h. */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 #include <$ac_header>
20997 _ACEOF
20998 if { (ac_try="$ac_cpp conftest.$ac_ext"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } >/dev/null && {
21011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 }; then
21014 ac_header_preproc=yes
21015 else
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_header_preproc=no
21022 rm -f conftest.err conftest.$ac_ext
21023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21024 echo "${ECHO_T}$ac_header_preproc" >&6; }
21026 # So? What about this header?
21027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21028 yes:no: )
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21033 ac_header_preproc=yes
21035 no:yes:* )
21036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21050 esac
21051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21055 else
21056 eval "$as_ac_Header=\$ac_header_preproc"
21058 ac_res=`eval echo '${'$as_ac_Header'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21066 _ACEOF
21070 done
21072 else
21074 for ac_header in des.h
21076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached) $ECHO_C" >&6
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21086 else
21087 # Is the header compilable?
21088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h. */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21097 #include <$ac_header>
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_header_compiler=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <$ac_header>
21138 _ACEOF
21139 if { (ac_try="$ac_cpp conftest.$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } >/dev/null && {
21152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 }; then
21155 ac_header_preproc=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_header_preproc=no
21163 rm -f conftest.err conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21165 echo "${ECHO_T}$ac_header_preproc" >&6; }
21167 # So? What about this header?
21168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21169 yes:no: )
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21174 ac_header_preproc=yes
21176 no:yes:* )
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21191 esac
21192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197 eval "$as_ac_Header=\$ac_header_preproc"
21199 ac_res=`eval echo '${'$as_ac_Header'}'`
21200 { echo "$as_me:$LINENO: result: $ac_res" >&5
21201 echo "${ECHO_T}$ac_res" >&6; }
21204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21207 _ACEOF
21209 else
21211 for ac_header in kerberosIV/des.h
21213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21223 else
21224 # Is the header compilable?
21225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21227 cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h. */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 $ac_includes_default
21234 #include <$ac_header>
21235 _ACEOF
21236 rm -f conftest.$ac_objext
21237 if { (ac_try="$ac_compile"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21244 ac_status=$?
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } && {
21250 test -z "$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 } && test -s conftest.$ac_objext; then
21253 ac_header_compiler=yes
21254 else
21255 echo "$as_me: failed program was:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_header_compiler=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21263 echo "${ECHO_T}$ac_header_compiler" >&6; }
21265 # Is the header present?
21266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <$ac_header>
21275 _ACEOF
21276 if { (ac_try="$ac_cpp conftest.$ac_ext"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21280 esac
21281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21283 ac_status=$?
21284 grep -v '^ *+' conftest.er1 >conftest.err
21285 rm -f conftest.er1
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); } >/dev/null && {
21289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21290 test ! -s conftest.err
21291 }; then
21292 ac_header_preproc=yes
21293 else
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_header_preproc=no
21300 rm -f conftest.err conftest.$ac_ext
21301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21302 echo "${ECHO_T}$ac_header_preproc" >&6; }
21304 # So? What about this header?
21305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21306 yes:no: )
21307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21311 ac_header_preproc=yes
21313 no:yes:* )
21314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21328 esac
21329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21333 else
21334 eval "$as_ac_Header=\$ac_header_preproc"
21336 ac_res=`eval echo '${'$as_ac_Header'}'`
21337 { echo "$as_me:$LINENO: result: $ac_res" >&5
21338 echo "${ECHO_T}$ac_res" >&6; }
21341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21342 cat >>confdefs.h <<_ACEOF
21343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21344 _ACEOF
21346 else
21348 for ac_header in kerberos/des.h
21350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21355 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 ac_res=`eval echo '${'$as_ac_Header'}'`
21358 { echo "$as_me:$LINENO: result: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21360 else
21361 # Is the header compilable?
21362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 #include <$ac_header>
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21378 esac
21379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21381 ac_status=$?
21382 grep -v '^ *+' conftest.er1 >conftest.err
21383 rm -f conftest.er1
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390 ac_header_compiler=yes
21391 else
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_header_compiler=no
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21400 echo "${ECHO_T}$ac_header_compiler" >&6; }
21402 # Is the header present?
21403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21405 cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h. */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 #include <$ac_header>
21412 _ACEOF
21413 if { (ac_try="$ac_cpp conftest.$ac_ext"
21414 case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21417 esac
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21420 ac_status=$?
21421 grep -v '^ *+' conftest.er1 >conftest.err
21422 rm -f conftest.er1
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } >/dev/null && {
21426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21427 test ! -s conftest.err
21428 }; then
21429 ac_header_preproc=yes
21430 else
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_header_preproc=no
21437 rm -f conftest.err conftest.$ac_ext
21438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21439 echo "${ECHO_T}$ac_header_preproc" >&6; }
21441 # So? What about this header?
21442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21443 yes:no: )
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21448 ac_header_preproc=yes
21450 no:yes:* )
21451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21465 esac
21466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21469 echo $ECHO_N "(cached) $ECHO_C" >&6
21470 else
21471 eval "$as_ac_Header=\$ac_header_preproc"
21473 ac_res=`eval echo '${'$as_ac_Header'}'`
21474 { echo "$as_me:$LINENO: result: $ac_res" >&5
21475 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21481 _ACEOF
21485 done
21489 done
21493 done
21496 for ac_header in krb.h
21498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21508 else
21509 # Is the header compilable?
21510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 #include <$ac_header>
21520 _ACEOF
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_header_compiler=yes
21539 else
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <$ac_header>
21560 _ACEOF
21561 if { (ac_try="$ac_cpp conftest.$ac_ext"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } >/dev/null && {
21574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 }; then
21577 ac_header_preproc=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_header_preproc=no
21585 rm -f conftest.err conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6; }
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591 yes:no: )
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21596 ac_header_preproc=yes
21598 no:yes:* )
21599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21613 esac
21614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619 eval "$as_ac_Header=\$ac_header_preproc"
21621 ac_res=`eval echo '${'$as_ac_Header'}'`
21622 { echo "$as_me:$LINENO: result: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21627 cat >>confdefs.h <<_ACEOF
21628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21629 _ACEOF
21631 else
21633 for ac_header in kerberosIV/krb.h
21635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21645 else
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <$ac_header>
21697 _ACEOF
21698 if { (ac_try="$ac_cpp conftest.$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21705 ac_status=$?
21706 grep -v '^ *+' conftest.er1 >conftest.err
21707 rm -f conftest.er1
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 }; then
21714 ac_header_preproc=yes
21715 else
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21728 yes:no: )
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21733 ac_header_preproc=yes
21735 no:yes:* )
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21750 esac
21751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756 eval "$as_ac_Header=\$ac_header_preproc"
21758 ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21766 _ACEOF
21768 else
21770 for ac_header in kerberos/krb.h
21772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21779 ac_res=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21782 else
21783 # Is the header compilable?
21784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21786 cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h. */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 $ac_includes_default
21793 #include <$ac_header>
21794 _ACEOF
21795 rm -f conftest.$ac_objext
21796 if { (ac_try="$ac_compile"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21800 esac
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_compile") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest.$ac_objext; then
21812 ac_header_compiler=yes
21813 else
21814 echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_header_compiler=no
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21822 echo "${ECHO_T}$ac_header_compiler" >&6; }
21824 # Is the header present?
21825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h. */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 #include <$ac_header>
21834 _ACEOF
21835 if { (ac_try="$ac_cpp conftest.$ac_ext"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } >/dev/null && {
21848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21850 }; then
21851 ac_header_preproc=yes
21852 else
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_header_preproc=no
21859 rm -f conftest.err conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6; }
21863 # So? What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21865 yes:no: )
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21870 ac_header_preproc=yes
21872 no:yes:* )
21873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21887 esac
21888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21891 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893 eval "$as_ac_Header=\$ac_header_preproc"
21895 ac_res=`eval echo '${'$as_ac_Header'}'`
21896 { echo "$as_me:$LINENO: result: $ac_res" >&5
21897 echo "${ECHO_T}$ac_res" >&6; }
21900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21901 cat >>confdefs.h <<_ACEOF
21902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21903 _ACEOF
21907 done
21911 done
21915 done
21919 for ac_header in com_err.h
21921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21931 else
21932 # Is the header compilable?
21933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21942 #include <$ac_header>
21943 _ACEOF
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21952 ac_status=$?
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_header_compiler=yes
21962 else
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_header_compiler=no
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21971 echo "${ECHO_T}$ac_header_compiler" >&6; }
21973 # Is the header present?
21974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21976 cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h. */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 #include <$ac_header>
21983 _ACEOF
21984 if { (ac_try="$ac_cpp conftest.$ac_ext"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } >/dev/null && {
21997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21998 test ! -s conftest.err
21999 }; then
22000 ac_header_preproc=yes
22001 else
22002 echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_header_preproc=no
22008 rm -f conftest.err conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22010 echo "${ECHO_T}$ac_header_preproc" >&6; }
22012 # So? What about this header?
22013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22014 yes:no: )
22015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22019 ac_header_preproc=yes
22021 no:yes:* )
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22036 esac
22037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 else
22042 eval "$as_ac_Header=\$ac_header_preproc"
22044 ac_res=`eval echo '${'$as_ac_Header'}'`
22045 { echo "$as_me:$LINENO: result: $ac_res" >&5
22046 echo "${ECHO_T}$ac_res" >&6; }
22049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22050 cat >>confdefs.h <<_ACEOF
22051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22052 _ACEOF
22056 done
22060 # Solaris requires -lintl if you want strerror (which calls dgettext)
22061 # to return localized messages.
22063 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22064 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22065 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068 ac_check_lib_save_LIBS=$LIBS
22069 LIBS="-lintl $LIBS"
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 /* Override any GCC internal prototype to avoid an error.
22078 Use char because int might match the return type of a GCC
22079 builtin and then its argument prototype would still apply. */
22080 #ifdef __cplusplus
22081 extern "C"
22082 #endif
22083 char dgettext ();
22085 main ()
22087 return dgettext ();
22089 return 0;
22091 _ACEOF
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (ac_try="$ac_link"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_link") 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest$ac_exeext &&
22109 $as_test_x conftest$ac_exeext; then
22110 ac_cv_lib_intl_dgettext=yes
22111 else
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_lib_intl_dgettext=no
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22122 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22123 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22124 if test $ac_cv_lib_intl_dgettext = yes; then
22125 cat >>confdefs.h <<_ACEOF
22126 #define HAVE_LIBINTL 1
22127 _ACEOF
22129 LIBS="-lintl $LIBS"
22134 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22135 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22136 if test "${emacs_cv_localtime_cache+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139 if test x$ac_cv_func_tzset = xyes; then
22140 if test "$cross_compiling" = yes; then
22141 # If we have tzset, assume the worst when cross-compiling.
22142 emacs_cv_localtime_cache=yes
22143 else
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 #include <time.h>
22151 extern char **environ;
22152 unset_TZ ()
22154 char **from, **to;
22155 for (to = from = environ; (*to = *from); from++)
22156 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22157 to++;
22159 char TZ_GMT0[] = "TZ=GMT0";
22160 char TZ_PST8[] = "TZ=PST8";
22161 main()
22163 time_t now = time ((time_t *) 0);
22164 int hour_GMT0, hour_unset;
22165 if (putenv (TZ_GMT0) != 0)
22166 exit (1);
22167 hour_GMT0 = localtime (&now)->tm_hour;
22168 unset_TZ ();
22169 hour_unset = localtime (&now)->tm_hour;
22170 if (putenv (TZ_PST8) != 0)
22171 exit (1);
22172 if (localtime (&now)->tm_hour == hour_GMT0)
22173 exit (1);
22174 unset_TZ ();
22175 if (localtime (&now)->tm_hour != hour_unset)
22176 exit (1);
22177 exit (0);
22179 _ACEOF
22180 rm -f conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185 esac
22186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_link") 2>&5
22188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191 { (case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_try") 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 emacs_cv_localtime_cache=no
22201 else
22202 echo "$as_me: program exited with status $ac_status" >&5
22203 echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ( exit $ac_status )
22207 emacs_cv_localtime_cache=yes
22209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22213 else
22214 # If we lack tzset, report that localtime does not cache TZ,
22215 # since we can't invalidate the cache if we don't have tzset.
22216 emacs_cv_localtime_cache=no
22219 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22220 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22221 if test $emacs_cv_localtime_cache = yes; then
22223 cat >>confdefs.h <<\_ACEOF
22224 #define LOCALTIME_CACHE 1
22225 _ACEOF
22229 if test "x$HAVE_TIMEVAL" = xyes; then
22231 for ac_func in gettimeofday
22233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22238 else
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22247 #define $ac_func innocuous_$ac_func
22249 /* System header to define __stub macros and hopefully few prototypes,
22250 which can conflict with char $ac_func (); below.
22251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22252 <limits.h> exists even on freestanding compilers. */
22254 #ifdef __STDC__
22255 # include <limits.h>
22256 #else
22257 # include <assert.h>
22258 #endif
22260 #undef $ac_func
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22265 #ifdef __cplusplus
22266 extern "C"
22267 #endif
22268 char $ac_func ();
22269 /* The GNU C library defines this for functions which it implements
22270 to always fail with ENOSYS. Some functions are actually named
22271 something starting with __ and the normal name is an alias. */
22272 #if defined __stub_$ac_func || defined __stub___$ac_func
22273 choke me
22274 #endif
22277 main ()
22279 return $ac_func ();
22281 return 0;
22283 _ACEOF
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22289 esac
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_link") 2>conftest.er1
22292 ac_status=$?
22293 grep -v '^ *+' conftest.er1 >conftest.err
22294 rm -f conftest.er1
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest$ac_exeext &&
22301 $as_test_x conftest$ac_exeext; then
22302 eval "$as_ac_var=yes"
22303 else
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 eval "$as_ac_var=no"
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22311 conftest$ac_exeext conftest.$ac_ext
22313 ac_res=`eval echo '${'$as_ac_var'}'`
22314 { echo "$as_me:$LINENO: result: $ac_res" >&5
22315 echo "${ECHO_T}$ac_res" >&6; }
22316 if test `eval echo '${'$as_ac_var'}'` = yes; then
22317 cat >>confdefs.h <<_ACEOF
22318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22319 _ACEOF
22322 done
22324 if test $ac_cv_func_gettimeofday = yes; then
22325 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22326 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22327 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330 cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h. */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22337 #ifdef TIME_WITH_SYS_TIME
22338 #include <sys/time.h>
22339 #include <time.h>
22340 #else
22341 #ifdef HAVE_SYS_TIME_H
22342 #include <sys/time.h>
22343 #else
22344 #include <time.h>
22345 #endif
22346 #endif
22348 main ()
22350 struct timeval time;
22351 gettimeofday (&time, 0);
22353 return 0;
22355 _ACEOF
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_compile") 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest.$ac_objext; then
22373 emacs_cv_gettimeofday_two_arguments=yes
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 emacs_cv_gettimeofday_two_arguments=no
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22384 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22385 if test $emacs_cv_gettimeofday_two_arguments = no; then
22387 cat >>confdefs.h <<\_ACEOF
22388 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22389 _ACEOF
22395 ok_so_far=yes
22396 { echo "$as_me:$LINENO: checking for socket" >&5
22397 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22398 if test "${ac_cv_func_socket+set}" = set; then
22399 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401 cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h. */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22409 #define socket innocuous_socket
22411 /* System header to define __stub macros and hopefully few prototypes,
22412 which can conflict with char socket (); below.
22413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22414 <limits.h> exists even on freestanding compilers. */
22416 #ifdef __STDC__
22417 # include <limits.h>
22418 #else
22419 # include <assert.h>
22420 #endif
22422 #undef socket
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22427 #ifdef __cplusplus
22428 extern "C"
22429 #endif
22430 char socket ();
22431 /* The GNU C library defines this for functions which it implements
22432 to always fail with ENOSYS. Some functions are actually named
22433 something starting with __ and the normal name is an alias. */
22434 #if defined __stub_socket || defined __stub___socket
22435 choke me
22436 #endif
22439 main ()
22441 return socket ();
22443 return 0;
22445 _ACEOF
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (ac_try="$ac_link"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22451 esac
22452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_link") 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext &&
22463 $as_test_x conftest$ac_exeext; then
22464 ac_cv_func_socket=yes
22465 else
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_cv_func_socket=no
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22475 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22476 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22477 if test $ac_cv_func_socket = yes; then
22479 else
22480 ok_so_far=no
22483 if test $ok_so_far = yes; then
22484 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22485 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22486 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22487 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22491 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22492 else
22493 # Is the header compilable?
22494 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22495 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 $ac_includes_default
22503 #include <netinet/in.h>
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22510 esac
22511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_compile") 2>conftest.er1
22513 ac_status=$?
22514 grep -v '^ *+' conftest.er1 >conftest.err
22515 rm -f conftest.er1
22516 cat conftest.err >&5
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); } && {
22519 test -z "$ac_c_werror_flag" ||
22520 test ! -s conftest.err
22521 } && test -s conftest.$ac_objext; then
22522 ac_header_compiler=yes
22523 else
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_header_compiler=no
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22532 echo "${ECHO_T}$ac_header_compiler" >&6; }
22534 # Is the header present?
22535 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22536 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22537 cat >conftest.$ac_ext <<_ACEOF
22538 /* confdefs.h. */
22539 _ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 #include <netinet/in.h>
22544 _ACEOF
22545 if { (ac_try="$ac_cpp conftest.$ac_ext"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22552 ac_status=$?
22553 grep -v '^ *+' conftest.er1 >conftest.err
22554 rm -f conftest.er1
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } >/dev/null && {
22558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 }; then
22561 ac_header_preproc=yes
22562 else
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_header_preproc=no
22569 rm -f conftest.err conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22571 echo "${ECHO_T}$ac_header_preproc" >&6; }
22573 # So? What about this header?
22574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22575 yes:no: )
22576 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22577 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22578 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22579 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22580 ac_header_preproc=yes
22582 no:yes:* )
22583 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22584 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22585 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22586 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22587 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22588 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22589 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22590 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22591 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22592 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22593 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22594 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22597 esac
22598 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22599 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22600 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22602 else
22603 ac_cv_header_netinet_in_h=$ac_header_preproc
22605 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22606 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22609 if test $ac_cv_header_netinet_in_h = yes; then
22611 else
22612 ok_so_far=no
22617 if test $ok_so_far = yes; then
22618 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22619 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22620 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22621 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22625 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22626 else
22627 # Is the header compilable?
22628 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22629 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 $ac_includes_default
22637 #include <arpa/inet.h>
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22647 ac_status=$?
22648 grep -v '^ *+' conftest.er1 >conftest.err
22649 rm -f conftest.er1
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_header_compiler=yes
22657 else
22658 echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_header_compiler=no
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22666 echo "${ECHO_T}$ac_header_compiler" >&6; }
22668 # Is the header present?
22669 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22670 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h. */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 #include <arpa/inet.h>
22678 _ACEOF
22679 if { (ac_try="$ac_cpp conftest.$ac_ext"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } >/dev/null && {
22692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22694 }; then
22695 ac_header_preproc=yes
22696 else
22697 echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_header_preproc=no
22703 rm -f conftest.err conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22705 echo "${ECHO_T}$ac_header_preproc" >&6; }
22707 # So? What about this header?
22708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22709 yes:no: )
22710 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22711 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22712 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22713 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22714 ac_header_preproc=yes
22716 no:yes:* )
22717 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22718 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22719 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22720 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22721 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22722 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22723 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22724 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22725 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22726 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22727 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22728 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22731 esac
22732 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22733 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22734 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22735 echo $ECHO_N "(cached) $ECHO_C" >&6
22736 else
22737 ac_cv_header_arpa_inet_h=$ac_header_preproc
22739 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22740 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22743 if test $ac_cv_header_arpa_inet_h = yes; then
22745 else
22746 ok_so_far=no
22751 if test $ok_so_far = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_INET_SOCKETS 1
22755 _ACEOF
22760 for ac_header in sys/ioctl.h
22762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22769 ac_res=`eval echo '${'$as_ac_Header'}'`
22770 { echo "$as_me:$LINENO: result: $ac_res" >&5
22771 echo "${ECHO_T}$ac_res" >&6; }
22772 else
22773 # Is the header compilable?
22774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22776 cat >conftest.$ac_ext <<_ACEOF
22777 /* confdefs.h. */
22778 _ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782 $ac_includes_default
22783 #include <$ac_header>
22784 _ACEOF
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22790 esac
22791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22793 ac_status=$?
22794 grep -v '^ *+' conftest.er1 >conftest.err
22795 rm -f conftest.er1
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 ac_header_compiler=yes
22803 else
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 ac_header_compiler=no
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22812 echo "${ECHO_T}$ac_header_compiler" >&6; }
22814 # Is the header present?
22815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h. */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 #include <$ac_header>
22824 _ACEOF
22825 if { (ac_try="$ac_cpp conftest.$ac_ext"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22832 ac_status=$?
22833 grep -v '^ *+' conftest.er1 >conftest.err
22834 rm -f conftest.er1
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } >/dev/null && {
22838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 }; then
22841 ac_header_preproc=yes
22842 else
22843 echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_header_preproc=no
22849 rm -f conftest.err conftest.$ac_ext
22850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22851 echo "${ECHO_T}$ac_header_preproc" >&6; }
22853 # So? What about this header?
22854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22855 yes:no: )
22856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22860 ac_header_preproc=yes
22862 no:yes:* )
22863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22877 esac
22878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883 eval "$as_ac_Header=\$ac_header_preproc"
22885 ac_res=`eval echo '${'$as_ac_Header'}'`
22886 { echo "$as_me:$LINENO: result: $ac_res" >&5
22887 echo "${ECHO_T}$ac_res" >&6; }
22890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22891 cat >>confdefs.h <<_ACEOF
22892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22893 _ACEOF
22897 done
22900 if test -f /usr/lpp/X11/bin/smt.exp; then
22902 cat >>confdefs.h <<\_ACEOF
22903 #define HAVE_AIX_SMT_EXP 1
22904 _ACEOF
22908 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22909 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22910 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22911 { echo "$as_me:$LINENO: result: yes" >&5
22912 echo "${ECHO_T}yes" >&6; }
22914 cat >>confdefs.h <<\_ACEOF
22915 #define HAVE_DEV_PTMX 1
22916 _ACEOF
22918 else
22919 { echo "$as_me:$LINENO: result: no" >&5
22920 echo "${ECHO_T}no" >&6; }
22923 { echo "$as_me:$LINENO: checking for pid_t" >&5
22924 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22925 if test "${ac_cv_type_pid_t+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928 cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h. */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22934 $ac_includes_default
22935 typedef pid_t ac__type_new_;
22937 main ()
22939 if ((ac__type_new_ *) 0)
22940 return 0;
22941 if (sizeof (ac__type_new_))
22942 return 0;
22944 return 0;
22946 _ACEOF
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_compile") 2>conftest.er1
22955 ac_status=$?
22956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest.$ac_objext; then
22964 ac_cv_type_pid_t=yes
22965 else
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22969 ac_cv_type_pid_t=no
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22975 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22976 if test $ac_cv_type_pid_t = yes; then
22978 else
22980 cat >>confdefs.h <<_ACEOF
22981 #define pid_t int
22982 _ACEOF
22987 for ac_header in vfork.h
22989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 ac_res=`eval echo '${'$as_ac_Header'}'`
22997 { echo "$as_me:$LINENO: result: $ac_res" >&5
22998 echo "${ECHO_T}$ac_res" >&6; }
22999 else
23000 # Is the header compilable?
23001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23003 cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h. */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 $ac_includes_default
23010 #include <$ac_header>
23011 _ACEOF
23012 rm -f conftest.$ac_objext
23013 if { (ac_try="$ac_compile"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23017 esac
23018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval "$ac_compile") 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } && {
23026 test -z "$ac_c_werror_flag" ||
23027 test ! -s conftest.err
23028 } && test -s conftest.$ac_objext; then
23029 ac_header_compiler=yes
23030 else
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_header_compiler=no
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23039 echo "${ECHO_T}$ac_header_compiler" >&6; }
23041 # Is the header present?
23042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h. */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <$ac_header>
23051 _ACEOF
23052 if { (ac_try="$ac_cpp conftest.$ac_ext"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23059 ac_status=$?
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } >/dev/null && {
23065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 }; then
23068 ac_header_preproc=yes
23069 else
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_header_preproc=no
23076 rm -f conftest.err conftest.$ac_ext
23077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23078 echo "${ECHO_T}$ac_header_preproc" >&6; }
23080 # So? What about this header?
23081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23082 yes:no: )
23083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23087 ac_header_preproc=yes
23089 no:yes:* )
23090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23104 esac
23105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23109 else
23110 eval "$as_ac_Header=\$ac_header_preproc"
23112 ac_res=`eval echo '${'$as_ac_Header'}'`
23113 { echo "$as_me:$LINENO: result: $ac_res" >&5
23114 echo "${ECHO_T}$ac_res" >&6; }
23117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23120 _ACEOF
23124 done
23128 for ac_func in fork vfork
23130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135 else
23136 cat >conftest.$ac_ext <<_ACEOF
23137 /* confdefs.h. */
23138 _ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23144 #define $ac_func innocuous_$ac_func
23146 /* System header to define __stub macros and hopefully few prototypes,
23147 which can conflict with char $ac_func (); below.
23148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23149 <limits.h> exists even on freestanding compilers. */
23151 #ifdef __STDC__
23152 # include <limits.h>
23153 #else
23154 # include <assert.h>
23155 #endif
23157 #undef $ac_func
23159 /* Override any GCC internal prototype to avoid an error.
23160 Use char because int might match the return type of a GCC
23161 builtin and then its argument prototype would still apply. */
23162 #ifdef __cplusplus
23163 extern "C"
23164 #endif
23165 char $ac_func ();
23166 /* The GNU C library defines this for functions which it implements
23167 to always fail with ENOSYS. Some functions are actually named
23168 something starting with __ and the normal name is an alias. */
23169 #if defined __stub_$ac_func || defined __stub___$ac_func
23170 choke me
23171 #endif
23174 main ()
23176 return $ac_func ();
23178 return 0;
23180 _ACEOF
23181 rm -f conftest.$ac_objext conftest$ac_exeext
23182 if { (ac_try="$ac_link"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23186 esac
23187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188 (eval "$ac_link") 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest$ac_exeext &&
23198 $as_test_x conftest$ac_exeext; then
23199 eval "$as_ac_var=yes"
23200 else
23201 echo "$as_me: failed program was:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 eval "$as_ac_var=no"
23207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23208 conftest$ac_exeext conftest.$ac_ext
23210 ac_res=`eval echo '${'$as_ac_var'}'`
23211 { echo "$as_me:$LINENO: result: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23213 if test `eval echo '${'$as_ac_var'}'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23216 _ACEOF
23219 done
23221 if test "x$ac_cv_func_fork" = xyes; then
23222 { echo "$as_me:$LINENO: checking for working fork" >&5
23223 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23224 if test "${ac_cv_func_fork_works+set}" = set; then
23225 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227 if test "$cross_compiling" = yes; then
23228 ac_cv_func_fork_works=cross
23229 else
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 $ac_includes_default
23238 main ()
23241 /* By Ruediger Kuhlmann. */
23242 return fork () < 0;
23245 return 0;
23247 _ACEOF
23248 rm -f conftest$ac_exeext
23249 if { (ac_try="$ac_link"
23250 case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_link") 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_try") 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 ac_cv_func_fork_works=yes
23269 else
23270 echo "$as_me: program exited with status $ac_status" >&5
23271 echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ( exit $ac_status )
23275 ac_cv_func_fork_works=no
23277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23282 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23283 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23285 else
23286 ac_cv_func_fork_works=$ac_cv_func_fork
23288 if test "x$ac_cv_func_fork_works" = xcross; then
23289 case $host in
23290 *-*-amigaos* | *-*-msdosdjgpp*)
23291 # Override, as these systems have only a dummy fork() stub
23292 ac_cv_func_fork_works=no
23295 ac_cv_func_fork_works=yes
23297 esac
23298 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23299 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23301 ac_cv_func_vfork_works=$ac_cv_func_vfork
23302 if test "x$ac_cv_func_vfork" = xyes; then
23303 { echo "$as_me:$LINENO: checking for working vfork" >&5
23304 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23305 if test "${ac_cv_func_vfork_works+set}" = set; then
23306 echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308 if test "$cross_compiling" = yes; then
23309 ac_cv_func_vfork_works=cross
23310 else
23311 cat >conftest.$ac_ext <<_ACEOF
23312 /* confdefs.h. */
23313 _ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h. */
23317 /* Thanks to Paul Eggert for this test. */
23318 $ac_includes_default
23319 #include <sys/wait.h>
23320 #ifdef HAVE_VFORK_H
23321 # include <vfork.h>
23322 #endif
23323 /* On some sparc systems, changes by the child to local and incoming
23324 argument registers are propagated back to the parent. The compiler
23325 is told about this with #include <vfork.h>, but some compilers
23326 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23327 static variable whose address is put into a register that is
23328 clobbered by the vfork. */
23329 static void
23330 #ifdef __cplusplus
23331 sparc_address_test (int arg)
23332 # else
23333 sparc_address_test (arg) int arg;
23334 #endif
23336 static pid_t child;
23337 if (!child) {
23338 child = vfork ();
23339 if (child < 0) {
23340 perror ("vfork");
23341 _exit(2);
23343 if (!child) {
23344 arg = getpid();
23345 write(-1, "", 0);
23346 _exit (arg);
23352 main ()
23354 pid_t parent = getpid ();
23355 pid_t child;
23357 sparc_address_test (0);
23359 child = vfork ();
23361 if (child == 0) {
23362 /* Here is another test for sparc vfork register problems. This
23363 test uses lots of local variables, at least as many local
23364 variables as main has allocated so far including compiler
23365 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23366 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23367 reuse the register of parent for one of the local variables,
23368 since it will think that parent can't possibly be used any more
23369 in this routine. Assigning to the local variable will thus
23370 munge parent in the parent process. */
23371 pid_t
23372 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23373 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23374 /* Convince the compiler that p..p7 are live; otherwise, it might
23375 use the same hardware register for all 8 local variables. */
23376 if (p != p1 || p != p2 || p != p3 || p != p4
23377 || p != p5 || p != p6 || p != p7)
23378 _exit(1);
23380 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23381 from child file descriptors. If the child closes a descriptor
23382 before it execs or exits, this munges the parent's descriptor
23383 as well. Test for this by closing stdout in the child. */
23384 _exit(close(fileno(stdout)) != 0);
23385 } else {
23386 int status;
23387 struct stat st;
23389 while (wait(&status) != child)
23391 return (
23392 /* Was there some problem with vforking? */
23393 child < 0
23395 /* Did the child fail? (This shouldn't happen.) */
23396 || status
23398 /* Did the vfork/compiler bug occur? */
23399 || parent != getpid()
23401 /* Did the file descriptor bug occur? */
23402 || fstat(fileno(stdout), &st) != 0
23406 _ACEOF
23407 rm -f conftest$ac_exeext
23408 if { (ac_try="$ac_link"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23412 esac
23413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_link") 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23418 { (case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23421 esac
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_try") 2>&5
23424 ac_status=$?
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_func_vfork_works=yes
23428 else
23429 echo "$as_me: program exited with status $ac_status" >&5
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ( exit $ac_status )
23434 ac_cv_func_vfork_works=no
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23442 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23445 if test "x$ac_cv_func_fork_works" = xcross; then
23446 ac_cv_func_vfork_works=$ac_cv_func_vfork
23447 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23448 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23451 if test "x$ac_cv_func_vfork_works" = xyes; then
23453 cat >>confdefs.h <<\_ACEOF
23454 #define HAVE_WORKING_VFORK 1
23455 _ACEOF
23457 else
23459 cat >>confdefs.h <<\_ACEOF
23460 #define vfork fork
23461 _ACEOF
23464 if test "x$ac_cv_func_fork_works" = xyes; then
23466 cat >>confdefs.h <<\_ACEOF
23467 #define HAVE_WORKING_FORK 1
23468 _ACEOF
23473 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23474 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23475 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478 cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h. */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23484 #include <langinfo.h>
23486 main ()
23488 char* cs = nl_langinfo(CODESET);
23490 return 0;
23492 _ACEOF
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_link") 2>conftest.er1
23501 ac_status=$?
23502 grep -v '^ *+' conftest.er1 >conftest.err
23503 rm -f conftest.er1
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest$ac_exeext &&
23510 $as_test_x conftest$ac_exeext; then
23511 emacs_cv_langinfo_codeset=yes
23512 else
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 emacs_cv_langinfo_codeset=no
23519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23520 conftest$ac_exeext conftest.$ac_ext
23523 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23524 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23525 if test $emacs_cv_langinfo_codeset = yes; then
23527 cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_LANGINFO_CODESET 1
23529 _ACEOF
23533 { echo "$as_me:$LINENO: checking for size_t" >&5
23534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23535 if test "${ac_cv_type_size_t+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 else
23538 cat >conftest.$ac_ext <<_ACEOF
23539 /* confdefs.h. */
23540 _ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23544 $ac_includes_default
23545 typedef size_t ac__type_new_;
23547 main ()
23549 if ((ac__type_new_ *) 0)
23550 return 0;
23551 if (sizeof (ac__type_new_))
23552 return 0;
23554 return 0;
23556 _ACEOF
23557 rm -f conftest.$ac_objext
23558 if { (ac_try="$ac_compile"
23559 case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23562 esac
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23565 ac_status=$?
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 ac_cv_type_size_t=yes
23575 else
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ac_cv_type_size_t=no
23582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23585 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23586 if test $ac_cv_type_size_t = yes; then
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE_SIZE_T 1
23590 _ACEOF
23596 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23597 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23598 if test "${ac_cv_type_mbstate_t+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600 else
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h. */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 $ac_includes_default
23608 # include <wchar.h>
23610 main ()
23612 mbstate_t x; return sizeof x;
23614 return 0;
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622 esac
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 ac_cv_type_mbstate_t=yes
23635 else
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_type_mbstate_t=no
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23645 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23646 if test $ac_cv_type_mbstate_t = yes; then
23648 cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_MBSTATE_T 1
23650 _ACEOF
23652 else
23654 cat >>confdefs.h <<\_ACEOF
23655 #define mbstate_t int
23656 _ACEOF
23660 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23661 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23662 if test "${emacs_cv_c_restrict+set}" = set; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 else
23665 cat >conftest.$ac_ext <<_ACEOF
23666 /* confdefs.h. */
23667 _ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23671 void fred (int *restrict x);
23673 main ()
23677 return 0;
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } && {
23694 test -z "$ac_c_werror_flag" ||
23695 test ! -s conftest.err
23696 } && test -s conftest.$ac_objext; then
23697 emacs_cv_c_restrict=yes
23698 else
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h. */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 void fred (int *__restrict x);
23710 main ()
23714 return 0;
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_compile") 2>conftest.er1
23725 ac_status=$?
23726 grep -v '^ *+' conftest.er1 >conftest.err
23727 rm -f conftest.er1
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest.$ac_objext; then
23734 emacs_cv_c_restrict=__restrict
23735 else
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 emacs_cv_c_restrict=no
23742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23748 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23749 case "$emacs_cv_c_restrict" in
23750 yes) emacs_restrict=restrict;;
23751 no) emacs_restrict="";;
23752 *) emacs_restrict="$emacs_cv_c_restrict";;
23753 esac
23754 if test "$emacs_restrict" != __restrict; then
23756 cat >>confdefs.h <<_ACEOF
23757 #define __restrict $emacs_restrict
23758 _ACEOF
23762 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23763 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23764 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767 cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h. */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 void fred (int x[__restrict]);
23775 main ()
23779 return 0;
23781 _ACEOF
23782 rm -f conftest.$ac_objext
23783 if { (ac_try="$ac_compile"
23784 case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_compile") 2>conftest.er1
23790 ac_status=$?
23791 grep -v '^ *+' conftest.er1 >conftest.err
23792 rm -f conftest.er1
23793 cat conftest.err >&5
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); } && {
23796 test -z "$ac_c_werror_flag" ||
23797 test ! -s conftest.err
23798 } && test -s conftest.$ac_objext; then
23799 emacs_cv_c_restrict_arr=yes
23800 else
23801 echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23804 emacs_cv_c_restrict_arr=no
23807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23810 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23811 if test "$emacs_cv_c_restrict_arr" = yes; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define __restrict_arr __restrict
23815 _ACEOF
23821 # Set up the CFLAGS for real compilation, so we can substitute it.
23822 CFLAGS="$REAL_CFLAGS"
23823 CPPFLAGS="$REAL_CPPFLAGS"
23825 #### Find out which version of Emacs this is.
23826 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23827 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23828 if test x"${version}" = x; then
23829 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23830 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23831 { (exit 1); exit 1; }; }
23834 ### Specify what sort of things we'll be editing into Makefile and config.h.
23835 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23875 cat >>confdefs.h <<_ACEOF
23876 #define EMACS_CONFIGURATION "${canonical}"
23877 _ACEOF
23880 cat >>confdefs.h <<_ACEOF
23881 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23882 _ACEOF
23885 cat >>confdefs.h <<_ACEOF
23886 #define config_machfile "${machfile}"
23887 _ACEOF
23890 cat >>confdefs.h <<_ACEOF
23891 #define config_opsysfile "${opsysfile}"
23892 _ACEOF
23895 cat >>confdefs.h <<_ACEOF
23896 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23897 _ACEOF
23900 cat >>confdefs.h <<_ACEOF
23901 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23902 _ACEOF
23905 cat >>confdefs.h <<_ACEOF
23906 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23907 _ACEOF
23910 cat >>confdefs.h <<_ACEOF
23911 #define UNEXEC_SRC ${UNEXEC_SRC}
23912 _ACEOF
23915 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_X_WINDOWS 1
23919 _ACEOF
23922 if test "${USE_X_TOOLKIT}" != "none" ; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define USE_X_TOOLKIT 1
23926 _ACEOF
23928 if test "${USE_X_TOOLKIT}" = "LUCID"; then
23930 cat >>confdefs.h <<\_ACEOF
23931 #define USE_LUCID 1
23932 _ACEOF
23934 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
23936 cat >>confdefs.h <<\_ACEOF
23937 #define USE_MOTIF 1
23938 _ACEOF
23942 if test "${HAVE_X11}" = "yes" ; then
23944 cat >>confdefs.h <<\_ACEOF
23945 #define HAVE_X11 1
23946 _ACEOF
23949 if test "${HAVE_MENUS}" = "yes" ; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_MENUS 1
23953 _ACEOF
23956 if test "${GNU_MALLOC}" = "yes" ; then
23958 cat >>confdefs.h <<\_ACEOF
23959 #define GNU_MALLOC 1
23960 _ACEOF
23963 if test "${REL_ALLOC}" = "yes" ; then
23965 cat >>confdefs.h <<\_ACEOF
23966 #define REL_ALLOC 1
23967 _ACEOF
23976 #### Report on what we decided to do.
23977 #### Report GTK as a toolkit, even if it doesn't use Xt.
23978 #### It makes printing result more understandable as using GTK sets
23979 #### toolkit_scroll_bars to yes by default.
23980 if test "${HAVE_GTK}" = "yes"; then
23981 USE_X_TOOLKIT=GTK
23984 echo "
23985 Configured for \`${canonical}'.
23987 Where should the build process find the source code? ${srcdir}
23988 What operating system and machine description files should Emacs use?
23989 \`${opsysfile}' and \`${machfile}'
23990 What compiler should emacs be built with? ${CC} ${CFLAGS}
23991 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23992 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23993 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23994 What window system should Emacs use? ${window_system}
23995 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23997 if test -n "${x_includes}"; then
23998 echo " Where do we find X Windows header files? ${x_includes}"
23999 else
24000 echo " Where do we find X Windows header files? Standard dirs"
24002 if test -n "${x_libraries}"; then
24003 echo " Where do we find X Windows libraries? ${x_libraries}"
24004 else
24005 echo " Where do we find X Windows libraries? Standard dirs"
24008 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24009 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24010 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24011 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24012 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24013 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24014 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24015 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24016 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24018 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24019 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24020 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24021 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24023 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24024 echo
24026 if test $USE_XASSERTS = yes; then
24027 echo " Compiling with asserts turned on."
24028 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24031 echo
24033 if test "$USE_X_TOOLKIT" = GTK; then
24034 case "$canonical" in
24035 *cygwin*)
24036 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24037 will probably get a crash on startup. If this happens, please use another
24038 toolkit for Emacs. See etc/PROBLEMS for more information."
24040 esac
24043 if test "$HAVE_NS" = "yes"; then
24044 echo
24045 echo "You must run \"make install\" in order to test the built application.
24046 The installed application will go to nextstep/Emacs.app and can be
24047 run or moved from there."
24048 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24049 echo "The application will be fully self-contained."
24050 else
24051 echo "The lisp resources for the application will be installed under ${prefix}.
24052 You may need to run \"make install\" with sudo. The application will fail
24053 to run if these resources are not installed."
24055 echo
24058 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24059 echo "D-Bus integration has been tested for GNU/Linux only."
24060 echo
24064 # Remove any trailing slashes in these variables.
24065 test "${prefix}" != NONE &&
24066 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24067 test "${exec_prefix}" != NONE &&
24068 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24070 # Now get this: Some word that is part of the ${srcdir} directory name
24071 # or the ${configuration} value might, just might, happen to be an
24072 # identifier like `sun4' or `i386' or something, and be predefined by
24073 # the C preprocessor to some helpful value like 1, or maybe the empty
24074 # string. Needless to say consequent macro substitutions are less
24075 # than conducive to the makefile finding the correct directory.
24076 cpp_undefs="`echo $srcdir $configuration $canonical |
24077 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24078 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24080 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24081 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24082 ## from Makefile.c can correctly provide the arg `-traditional' to the
24083 ## C preprocessor.
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 yes..yes
24092 _ACEOF
24093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24094 $EGREP "yes..yes" >/dev/null 2>&1; then
24095 CPP_NEED_TRADITIONAL=no
24096 else
24097 CPP_NEED_TRADITIONAL=yes
24099 rm -f conftest*
24102 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"
24104 ac_config_commands="$ac_config_commands default"
24106 cat >confcache <<\_ACEOF
24107 # This file is a shell script that caches the results of configure
24108 # tests run on this system so they can be shared between configure
24109 # scripts and configure runs, see configure's option --config-cache.
24110 # It is not useful on other systems. If it contains results you don't
24111 # want to keep, you may remove or edit it.
24113 # config.status only pays attention to the cache file if you give it
24114 # the --recheck option to rerun configure.
24116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24118 # following values.
24120 _ACEOF
24122 # The following way of writing the cache mishandles newlines in values,
24123 # but we know of no workaround that is simple, portable, and efficient.
24124 # So, we kill variables containing newlines.
24125 # Ultrix sh set writes to stderr and can't be redirected directly,
24126 # and sets the high bit in the cache file unless we assign to the vars.
24128 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24129 eval ac_val=\$$ac_var
24130 case $ac_val in #(
24131 *${as_nl}*)
24132 case $ac_var in #(
24133 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24134 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24135 esac
24136 case $ac_var in #(
24137 _ | IFS | as_nl) ;; #(
24138 *) $as_unset $ac_var ;;
24139 esac ;;
24140 esac
24141 done
24143 (set) 2>&1 |
24144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24145 *${as_nl}ac_space=\ *)
24146 # `set' does not quote correctly, so add quotes (double-quote
24147 # substitution turns \\\\ into \\, and sed turns \\ into \).
24148 sed -n \
24149 "s/'/'\\\\''/g;
24150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24151 ;; #(
24153 # `set' quotes correctly as required by POSIX, so do not add quotes.
24154 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24156 esac |
24157 sort
24159 sed '
24160 /^ac_cv_env_/b end
24161 t clear
24162 :clear
24163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24164 t end
24165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24166 :end' >>confcache
24167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24168 if test -w "$cache_file"; then
24169 test "x$cache_file" != "x/dev/null" &&
24170 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24171 echo "$as_me: updating cache $cache_file" >&6;}
24172 cat confcache >$cache_file
24173 else
24174 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24175 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24178 rm -f confcache
24180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24181 # Let make expand exec_prefix.
24182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24184 DEFS=-DHAVE_CONFIG_H
24186 ac_libobjs=
24187 ac_ltlibobjs=
24188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24189 # 1. Remove the extension, and $U if already installed.
24190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24191 ac_i=`echo "$ac_i" | sed "$ac_script"`
24192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24193 # will be set to the directory where LIBOBJS objects are built.
24194 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24195 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24196 done
24197 LIBOBJS=$ac_libobjs
24199 LTLIBOBJS=$ac_ltlibobjs
24203 : ${CONFIG_STATUS=./config.status}
24204 ac_clean_files_save=$ac_clean_files
24205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24206 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24208 cat >$CONFIG_STATUS <<_ACEOF
24209 #! $SHELL
24210 # Generated by $as_me.
24211 # Run this file to recreate the current configuration.
24212 # Compiler output produced by configure, useful for debugging
24213 # configure, is in config.log if it exists.
24215 debug=false
24216 ac_cs_recheck=false
24217 ac_cs_silent=false
24218 SHELL=\${CONFIG_SHELL-$SHELL}
24219 _ACEOF
24221 cat >>$CONFIG_STATUS <<\_ACEOF
24222 ## --------------------- ##
24223 ## M4sh Initialization. ##
24224 ## --------------------- ##
24226 # Be more Bourne compatible
24227 DUALCASE=1; export DUALCASE # for MKS sh
24228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24229 emulate sh
24230 NULLCMD=:
24231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24232 # is contrary to our usage. Disable this feature.
24233 alias -g '${1+"$@"}'='"$@"'
24234 setopt NO_GLOB_SUBST
24235 else
24236 case `(set -o) 2>/dev/null` in
24237 *posix*) set -o posix ;;
24238 esac
24245 # PATH needs CR
24246 # Avoid depending upon Character Ranges.
24247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24250 as_cr_digits='0123456789'
24251 as_cr_alnum=$as_cr_Letters$as_cr_digits
24253 # The user is always right.
24254 if test "${PATH_SEPARATOR+set}" != set; then
24255 echo "#! /bin/sh" >conf$$.sh
24256 echo "exit 0" >>conf$$.sh
24257 chmod +x conf$$.sh
24258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24259 PATH_SEPARATOR=';'
24260 else
24261 PATH_SEPARATOR=:
24263 rm -f conf$$.sh
24266 # Support unset when possible.
24267 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24268 as_unset=unset
24269 else
24270 as_unset=false
24274 # IFS
24275 # We need space, tab and new line, in precisely that order. Quoting is
24276 # there to prevent editors from complaining about space-tab.
24277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24278 # splitting by setting IFS to empty value.)
24279 as_nl='
24281 IFS=" "" $as_nl"
24283 # Find who we are. Look in the path if we contain no directory separator.
24284 case $0 in
24285 *[\\/]* ) as_myself=$0 ;;
24286 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24287 for as_dir in $PATH
24289 IFS=$as_save_IFS
24290 test -z "$as_dir" && as_dir=.
24291 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24292 done
24293 IFS=$as_save_IFS
24296 esac
24297 # We did not find ourselves, most probably we were run as `sh COMMAND'
24298 # in which case we are not to be found in the path.
24299 if test "x$as_myself" = x; then
24300 as_myself=$0
24302 if test ! -f "$as_myself"; then
24303 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24304 { (exit 1); exit 1; }
24307 # Work around bugs in pre-3.0 UWIN ksh.
24308 for as_var in ENV MAIL MAILPATH
24309 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24310 done
24311 PS1='$ '
24312 PS2='> '
24313 PS4='+ '
24315 # NLS nuisances.
24316 for as_var in \
24317 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24318 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24319 LC_TELEPHONE LC_TIME
24321 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24322 eval $as_var=C; export $as_var
24323 else
24324 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24326 done
24328 # Required to use basename.
24329 if expr a : '\(a\)' >/dev/null 2>&1 &&
24330 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24331 as_expr=expr
24332 else
24333 as_expr=false
24336 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24337 as_basename=basename
24338 else
24339 as_basename=false
24343 # Name of the executable.
24344 as_me=`$as_basename -- "$0" ||
24345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24346 X"$0" : 'X\(//\)$' \| \
24347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24348 echo X/"$0" |
24349 sed '/^.*\/\([^/][^/]*\)\/*$/{
24350 s//\1/
24353 /^X\/\(\/\/\)$/{
24354 s//\1/
24357 /^X\/\(\/\).*/{
24358 s//\1/
24361 s/.*/./; q'`
24363 # CDPATH.
24364 $as_unset CDPATH
24368 as_lineno_1=$LINENO
24369 as_lineno_2=$LINENO
24370 test "x$as_lineno_1" != "x$as_lineno_2" &&
24371 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24374 # uniformly replaced by the line number. The first 'sed' inserts a
24375 # line-number line after each line using $LINENO; the second 'sed'
24376 # does the real work. The second script uses 'N' to pair each
24377 # line-number line with the line containing $LINENO, and appends
24378 # trailing '-' during substitution so that $LINENO is not a special
24379 # case at line end.
24380 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24381 # scripts with optimization help from Paolo Bonzini. Blame Lee
24382 # E. McMahon (1931-1989) for sed's syntax. :-)
24383 sed -n '
24385 /[$]LINENO/=
24386 ' <$as_myself |
24387 sed '
24388 s/[$]LINENO.*/&-/
24389 t lineno
24391 :lineno
24393 :loop
24394 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24395 t loop
24396 s/-\n.*//
24397 ' >$as_me.lineno &&
24398 chmod +x "$as_me.lineno" ||
24399 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24400 { (exit 1); exit 1; }; }
24402 # Don't try to exec as it changes $[0], causing all sort of problems
24403 # (the dirname of $[0] is not the place where we might find the
24404 # original and so on. Autoconf is especially sensitive to this).
24405 . "./$as_me.lineno"
24406 # Exit status is that of the last command.
24407 exit
24411 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24412 as_dirname=dirname
24413 else
24414 as_dirname=false
24417 ECHO_C= ECHO_N= ECHO_T=
24418 case `echo -n x` in
24419 -n*)
24420 case `echo 'x\c'` in
24421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24422 *) ECHO_C='\c';;
24423 esac;;
24425 ECHO_N='-n';;
24426 esac
24428 if expr a : '\(a\)' >/dev/null 2>&1 &&
24429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24430 as_expr=expr
24431 else
24432 as_expr=false
24435 rm -f conf$$ conf$$.exe conf$$.file
24436 if test -d conf$$.dir; then
24437 rm -f conf$$.dir/conf$$.file
24438 else
24439 rm -f conf$$.dir
24440 mkdir conf$$.dir
24442 echo >conf$$.file
24443 if ln -s conf$$.file conf$$ 2>/dev/null; then
24444 as_ln_s='ln -s'
24445 # ... but there are two gotchas:
24446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24448 # In both cases, we have to default to `cp -p'.
24449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24450 as_ln_s='cp -p'
24451 elif ln conf$$.file conf$$ 2>/dev/null; then
24452 as_ln_s=ln
24453 else
24454 as_ln_s='cp -p'
24456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24457 rmdir conf$$.dir 2>/dev/null
24459 if mkdir -p . 2>/dev/null; then
24460 as_mkdir_p=:
24461 else
24462 test -d ./-p && rmdir ./-p
24463 as_mkdir_p=false
24466 if test -x / >/dev/null 2>&1; then
24467 as_test_x='test -x'
24468 else
24469 if ls -dL / >/dev/null 2>&1; then
24470 as_ls_L_option=L
24471 else
24472 as_ls_L_option=
24474 as_test_x='
24475 eval sh -c '\''
24476 if test -d "$1"; then
24477 test -d "$1/.";
24478 else
24479 case $1 in
24480 -*)set "./$1";;
24481 esac;
24482 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24483 ???[sx]*):;;*)false;;esac;fi
24484 '\'' sh
24487 as_executable_p=$as_test_x
24489 # Sed expression to map a string onto a valid CPP name.
24490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24492 # Sed expression to map a string onto a valid variable name.
24493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24496 exec 6>&1
24498 # Save the log message, to keep $[0] and so on meaningful, and to
24499 # report actual input values of CONFIG_FILES etc. instead of their
24500 # values after options handling.
24501 ac_log="
24502 This file was extended by emacs $as_me 23.0.60, which was
24503 generated by GNU Autoconf 2.61. Invocation command line was
24505 CONFIG_FILES = $CONFIG_FILES
24506 CONFIG_HEADERS = $CONFIG_HEADERS
24507 CONFIG_LINKS = $CONFIG_LINKS
24508 CONFIG_COMMANDS = $CONFIG_COMMANDS
24509 $ $0 $@
24511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24514 _ACEOF
24516 cat >>$CONFIG_STATUS <<_ACEOF
24517 # Files that config.status was made for.
24518 config_files="$ac_config_files"
24519 config_headers="$ac_config_headers"
24520 config_commands="$ac_config_commands"
24522 _ACEOF
24524 cat >>$CONFIG_STATUS <<\_ACEOF
24525 ac_cs_usage="\
24526 \`$as_me' instantiates files from templates according to the
24527 current configuration.
24529 Usage: $0 [OPTIONS] [FILE]...
24531 -h, --help print this help, then exit
24532 -V, --version print version number and configuration settings, then exit
24533 -q, --quiet do not print progress messages
24534 -d, --debug don't remove temporary files
24535 --recheck update $as_me by reconfiguring in the same conditions
24536 --file=FILE[:TEMPLATE]
24537 instantiate the configuration file FILE
24538 --header=FILE[:TEMPLATE]
24539 instantiate the configuration header FILE
24541 Configuration files:
24542 $config_files
24544 Configuration headers:
24545 $config_headers
24547 Configuration commands:
24548 $config_commands
24550 Report bugs to <bug-autoconf@gnu.org>."
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<_ACEOF
24554 ac_cs_version="\\
24555 emacs config.status 23.0.60
24556 configured by $0, generated by GNU Autoconf 2.61,
24557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24559 Copyright (C) 2006 Free Software Foundation, Inc.
24560 This config.status script is free software; the Free Software Foundation
24561 gives unlimited permission to copy, distribute and modify it."
24563 ac_pwd='$ac_pwd'
24564 srcdir='$srcdir'
24565 INSTALL='$INSTALL'
24566 _ACEOF
24568 cat >>$CONFIG_STATUS <<\_ACEOF
24569 # If no file are specified by the user, then we need to provide default
24570 # value. By we need to know if files were specified by the user.
24571 ac_need_defaults=:
24572 while test $# != 0
24574 case $1 in
24575 --*=*)
24576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24578 ac_shift=:
24581 ac_option=$1
24582 ac_optarg=$2
24583 ac_shift=shift
24585 esac
24587 case $ac_option in
24588 # Handling of the options.
24589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24590 ac_cs_recheck=: ;;
24591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24592 echo "$ac_cs_version"; exit ;;
24593 --debug | --debu | --deb | --de | --d | -d )
24594 debug=: ;;
24595 --file | --fil | --fi | --f )
24596 $ac_shift
24597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24598 ac_need_defaults=false;;
24599 --header | --heade | --head | --hea )
24600 $ac_shift
24601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24602 ac_need_defaults=false;;
24603 --he | --h)
24604 # Conflict between --help and --header
24605 { echo "$as_me: error: ambiguous option: $1
24606 Try \`$0 --help' for more information." >&2
24607 { (exit 1); exit 1; }; };;
24608 --help | --hel | -h )
24609 echo "$ac_cs_usage"; exit ;;
24610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24612 ac_cs_silent=: ;;
24614 # This is an error.
24615 -*) { echo "$as_me: error: unrecognized option: $1
24616 Try \`$0 --help' for more information." >&2
24617 { (exit 1); exit 1; }; } ;;
24619 *) ac_config_targets="$ac_config_targets $1"
24620 ac_need_defaults=false ;;
24622 esac
24623 shift
24624 done
24626 ac_configure_extra_args=
24628 if $ac_cs_silent; then
24629 exec 6>/dev/null
24630 ac_configure_extra_args="$ac_configure_extra_args --silent"
24633 _ACEOF
24634 cat >>$CONFIG_STATUS <<_ACEOF
24635 if \$ac_cs_recheck; then
24636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24637 CONFIG_SHELL=$SHELL
24638 export CONFIG_SHELL
24639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24642 _ACEOF
24643 cat >>$CONFIG_STATUS <<\_ACEOF
24644 exec 5>>config.log
24646 echo
24647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24648 ## Running $as_me. ##
24649 _ASBOX
24650 echo "$ac_log"
24651 } >&5
24653 _ACEOF
24654 cat >>$CONFIG_STATUS <<_ACEOF
24656 # INIT-COMMANDS
24658 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24660 _ACEOF
24662 cat >>$CONFIG_STATUS <<\_ACEOF
24664 # Handling of arguments.
24665 for ac_config_target in $ac_config_targets
24667 case $ac_config_target in
24668 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24670 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24671 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24672 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24673 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24674 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24675 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24676 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24677 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24678 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24679 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24680 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24684 { (exit 1); exit 1; }; };;
24685 esac
24686 done
24689 # If the user did not use the arguments to specify the items to instantiate,
24690 # then the envvar interface is used. Set only those that are not.
24691 # We use the long form for the default assignment because of an extremely
24692 # bizarre bug on SunOS 4.1.3.
24693 if $ac_need_defaults; then
24694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24699 # Have a temporary directory for convenience. Make it in the build tree
24700 # simply because there is no reason against having it here, and in addition,
24701 # creating and moving files from /tmp can sometimes cause problems.
24702 # Hook for its removal unless debugging.
24703 # Note that there is a small window in which the directory will not be cleaned:
24704 # after its creation but before its name has been assigned to `$tmp'.
24705 $debug ||
24707 tmp=
24708 trap 'exit_status=$?
24709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24711 trap '{ (exit 1); exit 1; }' 1 2 13 15
24713 # Create a (secure) tmp directory for tmp files.
24716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24717 test -n "$tmp" && test -d "$tmp"
24718 } ||
24720 tmp=./conf$$-$RANDOM
24721 (umask 077 && mkdir "$tmp")
24722 } ||
24724 echo "$me: cannot create a temporary directory in ." >&2
24725 { (exit 1); exit 1; }
24729 # Set up the sed scripts for CONFIG_FILES section.
24732 # No need to generate the scripts if there are no CONFIG_FILES.
24733 # This happens for instance when ./config.status config.h
24734 if test -n "$CONFIG_FILES"; then
24736 _ACEOF
24740 ac_delim='%!_!# '
24741 for ac_last_try in false false false false false :; do
24742 cat >conf$$subs.sed <<_ACEOF
24743 SHELL!$SHELL$ac_delim
24744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24750 exec_prefix!$exec_prefix$ac_delim
24751 prefix!$prefix$ac_delim
24752 program_transform_name!$program_transform_name$ac_delim
24753 bindir!$bindir$ac_delim
24754 sbindir!$sbindir$ac_delim
24755 libexecdir!$libexecdir$ac_delim
24756 datarootdir!$datarootdir$ac_delim
24757 datadir!$datadir$ac_delim
24758 sysconfdir!$sysconfdir$ac_delim
24759 sharedstatedir!$sharedstatedir$ac_delim
24760 localstatedir!$localstatedir$ac_delim
24761 includedir!$includedir$ac_delim
24762 oldincludedir!$oldincludedir$ac_delim
24763 docdir!$docdir$ac_delim
24764 infodir!$infodir$ac_delim
24765 htmldir!$htmldir$ac_delim
24766 dvidir!$dvidir$ac_delim
24767 pdfdir!$pdfdir$ac_delim
24768 psdir!$psdir$ac_delim
24769 libdir!$libdir$ac_delim
24770 localedir!$localedir$ac_delim
24771 mandir!$mandir$ac_delim
24772 DEFS!$DEFS$ac_delim
24773 ECHO_C!$ECHO_C$ac_delim
24774 ECHO_N!$ECHO_N$ac_delim
24775 ECHO_T!$ECHO_T$ac_delim
24776 LIBS!$LIBS$ac_delim
24777 build_alias!$build_alias$ac_delim
24778 host_alias!$host_alias$ac_delim
24779 target_alias!$target_alias$ac_delim
24780 MAINT!$MAINT$ac_delim
24781 build!$build$ac_delim
24782 build_cpu!$build_cpu$ac_delim
24783 build_vendor!$build_vendor$ac_delim
24784 build_os!$build_os$ac_delim
24785 host!$host$ac_delim
24786 host_cpu!$host_cpu$ac_delim
24787 host_vendor!$host_vendor$ac_delim
24788 host_os!$host_os$ac_delim
24789 CC!$CC$ac_delim
24790 CFLAGS!$CFLAGS$ac_delim
24791 LDFLAGS!$LDFLAGS$ac_delim
24792 CPPFLAGS!$CPPFLAGS$ac_delim
24793 ac_ct_CC!$ac_ct_CC$ac_delim
24794 EXEEXT!$EXEEXT$ac_delim
24795 OBJEXT!$OBJEXT$ac_delim
24796 CPP!$CPP$ac_delim
24797 GREP!$GREP$ac_delim
24798 EGREP!$EGREP$ac_delim
24799 LN_S!$LN_S$ac_delim
24800 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24801 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24802 INSTALL_DATA!$INSTALL_DATA$ac_delim
24803 RANLIB!$RANLIB$ac_delim
24804 INSTALL_INFO!$INSTALL_INFO$ac_delim
24805 GZIP_PROG!$GZIP_PROG$ac_delim
24806 MAKEINFO!$MAKEINFO$ac_delim
24807 LIBSOUND!$LIBSOUND$ac_delim
24808 PKG_CONFIG!$PKG_CONFIG$ac_delim
24809 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24810 ALSA_LIBS!$ALSA_LIBS$ac_delim
24811 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24812 SET_MAKE!$SET_MAKE$ac_delim
24813 XMKMF!$XMKMF$ac_delim
24814 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24815 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24816 RSVG_LIBS!$RSVG_LIBS$ac_delim
24817 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24818 GTK_LIBS!$GTK_LIBS$ac_delim
24819 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24820 DBUS_LIBS!$DBUS_LIBS$ac_delim
24821 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24822 XFT_LIBS!$XFT_LIBS$ac_delim
24823 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24824 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24825 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24826 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24827 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24828 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24829 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24830 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24831 ALLOCA!$ALLOCA$ac_delim
24832 liblockfile!$liblockfile$ac_delim
24833 LIBOBJS!$LIBOBJS$ac_delim
24834 NEED_SETGID!$NEED_SETGID$ac_delim
24835 KMEM_GROUP!$KMEM_GROUP$ac_delim
24836 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24837 GETOPT_H!$GETOPT_H$ac_delim
24838 GETOPTOBJS!$GETOPTOBJS$ac_delim
24839 version!$version$ac_delim
24840 _ACEOF
24842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24843 break
24844 elif $ac_last_try; then
24845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24847 { (exit 1); exit 1; }; }
24848 else
24849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24851 done
24853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24854 if test -n "$ac_eof"; then
24855 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24856 ac_eof=`expr $ac_eof + 1`
24859 cat >>$CONFIG_STATUS <<_ACEOF
24860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24862 _ACEOF
24863 sed '
24864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24865 s/^/s,@/; s/!/@,|#_!!_#|/
24868 s/'"$ac_delim"'$/,g/; t
24869 s/$/\\/; p
24870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24871 ' >>$CONFIG_STATUS <conf$$subs.sed
24872 rm -f conf$$subs.sed
24873 cat >>$CONFIG_STATUS <<_ACEOF
24874 CEOF$ac_eof
24875 _ACEOF
24878 ac_delim='%!_!# '
24879 for ac_last_try in false false false false false :; do
24880 cat >conf$$subs.sed <<_ACEOF
24881 configuration!$configuration$ac_delim
24882 canonical!$canonical$ac_delim
24883 srcdir!$srcdir$ac_delim
24884 lispdir!$lispdir$ac_delim
24885 locallisppath!$locallisppath$ac_delim
24886 lisppath!$lisppath$ac_delim
24887 x_default_search_path!$x_default_search_path$ac_delim
24888 etcdir!$etcdir$ac_delim
24889 archlibdir!$archlibdir$ac_delim
24890 bitmapdir!$bitmapdir$ac_delim
24891 gamedir!$gamedir$ac_delim
24892 gameuser!$gameuser$ac_delim
24893 c_switch_system!$c_switch_system$ac_delim
24894 c_switch_machine!$c_switch_machine$ac_delim
24895 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24896 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24897 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24898 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24899 machfile!$machfile$ac_delim
24900 opsysfile!$opsysfile$ac_delim
24901 ns_appdir!$ns_appdir$ac_delim
24902 ns_appbindir!$ns_appbindir$ac_delim
24903 ns_appresdir!$ns_appresdir$ac_delim
24904 ns_appsrc!$ns_appsrc$ac_delim
24905 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
24906 LTLIBOBJS!$LTLIBOBJS$ac_delim
24907 _ACEOF
24909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
24910 break
24911 elif $ac_last_try; then
24912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24914 { (exit 1); exit 1; }; }
24915 else
24916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24918 done
24920 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24921 if test -n "$ac_eof"; then
24922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24923 ac_eof=`expr $ac_eof + 1`
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24929 _ACEOF
24930 sed '
24931 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24932 s/^/s,@/; s/!/@,|#_!!_#|/
24935 s/'"$ac_delim"'$/,g/; t
24936 s/$/\\/; p
24937 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24938 ' >>$CONFIG_STATUS <conf$$subs.sed
24939 rm -f conf$$subs.sed
24940 cat >>$CONFIG_STATUS <<_ACEOF
24941 :end
24942 s/|#_!!_#|//g
24943 CEOF$ac_eof
24944 _ACEOF
24947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24949 # trailing colons and then remove the whole line if VPATH becomes empty
24950 # (actually we leave an empty line to preserve line numbers).
24951 if test "x$srcdir" = x.; then
24952 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24953 s/:*\$(srcdir):*/:/
24954 s/:*\${srcdir}:*/:/
24955 s/:*@srcdir@:*/:/
24956 s/^\([^=]*=[ ]*\):*/\1/
24957 s/:*$//
24958 s/^[^=]*=[ ]*$//
24962 cat >>$CONFIG_STATUS <<\_ACEOF
24963 fi # test -n "$CONFIG_FILES"
24966 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24968 case $ac_tag in
24969 :[FHLC]) ac_mode=$ac_tag; continue;;
24970 esac
24971 case $ac_mode$ac_tag in
24972 :[FHL]*:*);;
24973 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24974 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24975 { (exit 1); exit 1; }; };;
24976 :[FH]-) ac_tag=-:-;;
24977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24978 esac
24979 ac_save_IFS=$IFS
24980 IFS=:
24981 set x $ac_tag
24982 IFS=$ac_save_IFS
24983 shift
24984 ac_file=$1
24985 shift
24987 case $ac_mode in
24988 :L) ac_source=$1;;
24989 :[FH])
24990 ac_file_inputs=
24991 for ac_f
24993 case $ac_f in
24994 -) ac_f="$tmp/stdin";;
24995 *) # Look for the file first in the build tree, then in the source tree
24996 # (if the path is not absolute). The absolute path cannot be DOS-style,
24997 # because $ac_f cannot contain `:'.
24998 test -f "$ac_f" ||
24999 case $ac_f in
25000 [\\/$]*) false;;
25001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25002 esac ||
25003 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25004 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25005 { (exit 1); exit 1; }; };;
25006 esac
25007 ac_file_inputs="$ac_file_inputs $ac_f"
25008 done
25010 # Let's still pretend it is `configure' which instantiates (i.e., don't
25011 # use $as_me), people would be surprised to read:
25012 # /* config.h. Generated by config.status. */
25013 configure_input="Generated from "`IFS=:
25014 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25015 if test x"$ac_file" != x-; then
25016 configure_input="$ac_file. $configure_input"
25017 { echo "$as_me:$LINENO: creating $ac_file" >&5
25018 echo "$as_me: creating $ac_file" >&6;}
25021 case $ac_tag in
25022 *:-:* | *:-) cat >"$tmp/stdin";;
25023 esac
25025 esac
25027 ac_dir=`$as_dirname -- "$ac_file" ||
25028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25029 X"$ac_file" : 'X\(//\)[^/]' \| \
25030 X"$ac_file" : 'X\(//\)$' \| \
25031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25032 echo X"$ac_file" |
25033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25034 s//\1/
25037 /^X\(\/\/\)[^/].*/{
25038 s//\1/
25041 /^X\(\/\/\)$/{
25042 s//\1/
25045 /^X\(\/\).*/{
25046 s//\1/
25049 s/.*/./; q'`
25050 { as_dir="$ac_dir"
25051 case $as_dir in #(
25052 -*) as_dir=./$as_dir;;
25053 esac
25054 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25055 as_dirs=
25056 while :; do
25057 case $as_dir in #(
25058 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25059 *) as_qdir=$as_dir;;
25060 esac
25061 as_dirs="'$as_qdir' $as_dirs"
25062 as_dir=`$as_dirname -- "$as_dir" ||
25063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25064 X"$as_dir" : 'X\(//\)[^/]' \| \
25065 X"$as_dir" : 'X\(//\)$' \| \
25066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25067 echo X"$as_dir" |
25068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25069 s//\1/
25072 /^X\(\/\/\)[^/].*/{
25073 s//\1/
25076 /^X\(\/\/\)$/{
25077 s//\1/
25080 /^X\(\/\).*/{
25081 s//\1/
25084 s/.*/./; q'`
25085 test -d "$as_dir" && break
25086 done
25087 test -z "$as_dirs" || eval "mkdir $as_dirs"
25088 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25089 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25090 { (exit 1); exit 1; }; }; }
25091 ac_builddir=.
25093 case "$ac_dir" in
25094 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25097 # A ".." for each directory in $ac_dir_suffix.
25098 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25099 case $ac_top_builddir_sub in
25100 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25101 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25102 esac ;;
25103 esac
25104 ac_abs_top_builddir=$ac_pwd
25105 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25106 # for backward compatibility:
25107 ac_top_builddir=$ac_top_build_prefix
25109 case $srcdir in
25110 .) # We are building in place.
25111 ac_srcdir=.
25112 ac_top_srcdir=$ac_top_builddir_sub
25113 ac_abs_top_srcdir=$ac_pwd ;;
25114 [\\/]* | ?:[\\/]* ) # Absolute name.
25115 ac_srcdir=$srcdir$ac_dir_suffix;
25116 ac_top_srcdir=$srcdir
25117 ac_abs_top_srcdir=$srcdir ;;
25118 *) # Relative name.
25119 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25120 ac_top_srcdir=$ac_top_build_prefix$srcdir
25121 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25122 esac
25123 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25126 case $ac_mode in
25129 # CONFIG_FILE
25132 case $INSTALL in
25133 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25134 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25135 esac
25136 _ACEOF
25138 cat >>$CONFIG_STATUS <<\_ACEOF
25139 # If the template does not know about datarootdir, expand it.
25140 # FIXME: This hack should be removed a few years after 2.60.
25141 ac_datarootdir_hack=; ac_datarootdir_seen=
25143 case `sed -n '/datarootdir/ {
25147 /@datadir@/p
25148 /@docdir@/p
25149 /@infodir@/p
25150 /@localedir@/p
25151 /@mandir@/p
25152 ' $ac_file_inputs` in
25153 *datarootdir*) ac_datarootdir_seen=yes;;
25154 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25155 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25157 _ACEOF
25158 cat >>$CONFIG_STATUS <<_ACEOF
25159 ac_datarootdir_hack='
25160 s&@datadir@&$datadir&g
25161 s&@docdir@&$docdir&g
25162 s&@infodir@&$infodir&g
25163 s&@localedir@&$localedir&g
25164 s&@mandir@&$mandir&g
25165 s&\\\${datarootdir}&$datarootdir&g' ;;
25166 esac
25167 _ACEOF
25169 # Neutralize VPATH when `$srcdir' = `.'.
25170 # Shell code in configure.ac might set extrasub.
25171 # FIXME: do we really want to maintain this feature?
25172 cat >>$CONFIG_STATUS <<_ACEOF
25173 sed "$ac_vpsub
25174 $extrasub
25175 _ACEOF
25176 cat >>$CONFIG_STATUS <<\_ACEOF
25178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25179 s&@configure_input@&$configure_input&;t t
25180 s&@top_builddir@&$ac_top_builddir_sub&;t t
25181 s&@srcdir@&$ac_srcdir&;t t
25182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25183 s&@top_srcdir@&$ac_top_srcdir&;t t
25184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25185 s&@builddir@&$ac_builddir&;t t
25186 s&@abs_builddir@&$ac_abs_builddir&;t t
25187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25188 s&@INSTALL@&$ac_INSTALL&;t t
25189 $ac_datarootdir_hack
25190 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25195 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25196 which seems to be undefined. Please make sure it is defined." >&5
25197 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25198 which seems to be undefined. Please make sure it is defined." >&2;}
25200 rm -f "$tmp/stdin"
25201 case $ac_file in
25202 -) cat "$tmp/out"; rm -f "$tmp/out";;
25203 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25204 esac
25208 # CONFIG_HEADER
25210 _ACEOF
25212 # Transform confdefs.h into a sed script `conftest.defines', that
25213 # substitutes the proper values into config.h.in to produce config.h.
25214 rm -f conftest.defines conftest.tail
25215 # First, append a space to every undef/define line, to ease matching.
25216 echo 's/$/ /' >conftest.defines
25217 # Then, protect against being on the right side of a sed subst, or in
25218 # an unquoted here document, in config.status. If some macros were
25219 # called several times there might be several #defines for the same
25220 # symbol, which is useless. But do not sort them, since the last
25221 # AC_DEFINE must be honored.
25222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25223 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25224 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25225 # PARAMS is the parameter list in the macro definition--in most cases, it's
25226 # just an empty string.
25227 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25228 ac_dB='\\)[ (].*,\\1define\\2'
25229 ac_dC=' '
25230 ac_dD=' ,'
25232 uniq confdefs.h |
25233 sed -n '
25234 t rset
25235 :rset
25236 s/^[ ]*#[ ]*define[ ][ ]*//
25237 t ok
25240 s/[\\&,]/\\&/g
25241 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25242 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25243 ' >>conftest.defines
25245 # Remove the space that was appended to ease matching.
25246 # Then replace #undef with comments. This is necessary, for
25247 # example, in the case of _POSIX_SOURCE, which is predefined and required
25248 # on some systems where configure will not decide to define it.
25249 # (The regexp can be short, since the line contains either #define or #undef.)
25250 echo 's/ $//
25251 s,^[ #]*u.*,/* & */,' >>conftest.defines
25253 # Break up conftest.defines:
25254 ac_max_sed_lines=50
25256 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25257 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25258 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25259 # et cetera.
25260 ac_in='$ac_file_inputs'
25261 ac_out='"$tmp/out1"'
25262 ac_nxt='"$tmp/out2"'
25264 while :
25266 # Write a here document:
25267 cat >>$CONFIG_STATUS <<_ACEOF
25268 # First, check the format of the line:
25269 cat >"\$tmp/defines.sed" <<\\CEOF
25270 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25271 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25273 :def
25274 _ACEOF
25275 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25276 echo 'CEOF
25277 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25278 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25279 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25280 grep . conftest.tail >/dev/null || break
25281 rm -f conftest.defines
25282 mv conftest.tail conftest.defines
25283 done
25284 rm -f conftest.defines conftest.tail
25286 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25287 cat >>$CONFIG_STATUS <<\_ACEOF
25288 if test x"$ac_file" != x-; then
25289 echo "/* $configure_input */" >"$tmp/config.h"
25290 cat "$ac_result" >>"$tmp/config.h"
25291 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25293 echo "$as_me: $ac_file is unchanged" >&6;}
25294 else
25295 rm -f $ac_file
25296 mv "$tmp/config.h" $ac_file
25298 else
25299 echo "/* $configure_input */"
25300 cat "$ac_result"
25302 rm -f "$tmp/out12"
25305 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25306 echo "$as_me: executing $ac_file commands" >&6;}
25308 esac
25311 case $ac_file$ac_mode in
25312 "default":C)
25314 ### Make the necessary directories, if they don't exist.
25315 for dir in etc lisp ; do
25316 test -d ${dir} || mkdir ${dir}
25317 done
25319 # Build src/Makefile from ${srcdir}/src/Makefile.c
25320 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25321 # This must be done after src/config.h is built, since we rely on that file.
25323 echo creating src/epaths.h
25324 ${MAKE-make} epaths-force
25326 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25327 # `..' to `. .' unless invoked with -traditional
25329 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25330 CPPFLAGS="$CPPFLAGS -traditional"
25333 echo creating lib-src/Makefile
25334 ( cd lib-src
25335 rm -f junk.c junk1.c junk2.c
25336 sed -e '/start of cpp stuff/q' \
25337 < Makefile.c > junk1.c
25338 sed -e '1,/start of cpp stuff/d'\
25339 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25340 < Makefile.c > junk.c
25341 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25342 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25343 cat junk1.c junk2.c > Makefile.new
25344 rm -f junk.c junk1.c junk2.c
25345 chmod 444 Makefile.new
25346 mv -f Makefile.new Makefile
25349 echo creating src/Makefile
25350 ( cd src
25351 rm -f junk.c junk1.c junk2.c
25352 sed -e '/start of cpp stuff/q' \
25353 < Makefile.c > junk1.c
25354 sed -e '1,/start of cpp stuff/d'\
25355 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25356 < Makefile.c > junk.c
25357 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25358 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25359 cat junk1.c junk2.c > Makefile.new
25360 rm -f junk.c junk1.c junk2.c
25361 chmod 444 Makefile.new
25362 mv -f Makefile.new Makefile
25365 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25366 echo creating src/.gdbinit
25367 echo source $srcdir/src/.gdbinit > src/.gdbinit
25372 esac
25373 done # for ac_tag
25376 { (exit 0); exit 0; }
25377 _ACEOF
25378 chmod +x $CONFIG_STATUS
25379 ac_clean_files=$ac_clean_files_save
25382 # configure is writing to config.log, and then calls config.status.
25383 # config.status does its own redirection, appending to config.log.
25384 # Unfortunately, on DOS this fails, as config.log is still kept open
25385 # by configure, so config.status won't be able to write to it; its
25386 # output is simply discarded. So we exec the FD to /dev/null,
25387 # effectively closing config.log, so it can be properly (re)opened and
25388 # appended to by config.status. When coming back to configure, we
25389 # need to make the FD available again.
25390 if test "$no_create" != yes; then
25391 ac_cs_success=:
25392 ac_config_status_args=
25393 test "$silent" = yes &&
25394 ac_config_status_args="$ac_config_status_args --quiet"
25395 exec 5>/dev/null
25396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25397 exec 5>>config.log
25398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25399 # would make configure fail if this is the last instruction.
25400 $ac_cs_success || { (exit 1); exit 1; }