* modes.texi (Derived Modes): Note that define-derive-mode sets the
[emacs.git] / configure
blob5de7c663bd191036af30f85e31496b6894fa184b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.91.
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.91'
576 PACKAGE_STRING='emacs 23.0.91'
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 FONTCONFIG_CFLAGS
698 FONTCONFIG_LIBS
699 XFT_CFLAGS
700 XFT_LIBS
701 FREETYPE_CFLAGS
702 FREETYPE_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 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 XMKMF'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
805 ac_prev=
806 ac_dashdash=
807 for ac_option
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
825 ac_dashdash=yes ;;
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
844 --config-cache | -C)
845 cache_file=config.cache ;;
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1133 esac
1134 done
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1178 test "$silent" = yes && exec 6>/dev/null
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1209 /^X\(\/\/\)$/{
1210 s//\1/
1213 /^X\(\/\).*/{
1214 s//\1/
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1222 else
1223 ac_srcdir_defaulted=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.91 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.91:";;
1334 esac
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --disable-largefile omit support for large files
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --without-pop don't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1361 motif, gtk, no)
1362 --without-xpm don't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don't use Freetype for local font support
1369 --without-xft don't use XFT for anti aliased fonts
1370 --without-libotf don't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt for text shaping
1372 --without-toolkit-scroll-bars
1373 don't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don't use X11 XIM
1376 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1377 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1378 console
1379 --without-dbus don't compile with D-Bus support
1380 --without-makeinfo don't require makeinfo for building manuals
1382 --with-pkg-config-prog=PATH
1383 path to pkg-config for finding GTK and librsvg
1384 --with-gnustep-conf=PATH
1385 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1386 or /etc/GNUstep/GNUstep.conf
1387 --with-x use the X Window System
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398 XMKMF Path to xmkmf, Makefile generator for X Window System
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 _ACEOF
1404 ac_status=$?
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" || continue
1411 ac_builddir=.
1413 case "$ac_dir" in
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422 esac ;;
1423 esac
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1429 case $srcdir in
1430 .) # We are building in place.
1431 ac_srcdir=.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1438 *) # Relative name.
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 esac
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1453 else
1454 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 fi || ac_status=$?
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1457 done
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1462 cat <<\_ACEOF
1463 emacs configure 23.0.91
1464 generated by GNU Autoconf 2.61
1466 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1467 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1473 cat >config.log <<_ACEOF
1474 This file contains any messages produced by compilers while
1475 running configure, to aid debugging if configure makes a mistake.
1477 It was created by emacs $as_me 23.0.91, which was
1478 generated by GNU Autoconf 2.61. Invocation command line was
1480 $ $0 $@
1482 _ACEOF
1483 exec 5>>config.log
1485 cat <<_ASUNAME
1486 ## --------- ##
1487 ## Platform. ##
1488 ## --------- ##
1490 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1496 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1499 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1507 _ASUNAME
1509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 for as_dir in $PATH
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 echo "PATH: $as_dir"
1515 done
1516 IFS=$as_save_IFS
1518 } >&5
1520 cat >&5 <<_ACEOF
1523 ## ----------- ##
1524 ## Core tests. ##
1525 ## ----------- ##
1527 _ACEOF
1530 # Keep a trace of the command line.
1531 # Strip out --no-create and --no-recursion so they do not pile up.
1532 # Strip out --silent because we don't want to record it for future runs.
1533 # Also quote any args containing shell meta-characters.
1534 # Make two passes to allow for proper duplicate-argument suppression.
1535 ac_configure_args=
1536 ac_configure_args0=
1537 ac_configure_args1=
1538 ac_must_keep_next=false
1539 for ac_pass in 1 2
1541 for ac_arg
1543 case $ac_arg in
1544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1546 | -silent | --silent | --silen | --sile | --sil)
1547 continue ;;
1548 *\'*)
1549 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1550 esac
1551 case $ac_pass in
1552 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1554 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1555 if test $ac_must_keep_next = true; then
1556 ac_must_keep_next=false # Got value, back to normal.
1557 else
1558 case $ac_arg in
1559 *=* | --config-cache | -C | -disable-* | --disable-* \
1560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1562 | -with-* | --with-* | -without-* | --without-* | --x)
1563 case "$ac_configure_args0 " in
1564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565 esac
1567 -* ) ac_must_keep_next=true ;;
1568 esac
1570 ac_configure_args="$ac_configure_args '$ac_arg'"
1572 esac
1573 done
1574 done
1575 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1576 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1578 # When interrupted or exit'd, cleanup temporary files, and complete
1579 # config.log. We remove comments because anyway the quotes in there
1580 # would cause problems or look ugly.
1581 # WARNING: Use '\'' to represent an apostrophe within the trap.
1582 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1583 trap 'exit_status=$?
1584 # Save into config.log some information that might help in debugging.
1586 echo
1588 cat <<\_ASBOX
1589 ## ---------------- ##
1590 ## Cache variables. ##
1591 ## ---------------- ##
1592 _ASBOX
1593 echo
1594 # The following way of writing the cache mishandles newlines in values,
1596 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1597 eval ac_val=\$$ac_var
1598 case $ac_val in #(
1599 *${as_nl}*)
1600 case $ac_var in #(
1601 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1603 esac
1604 case $ac_var in #(
1605 _ | IFS | as_nl) ;; #(
1606 *) $as_unset $ac_var ;;
1607 esac ;;
1608 esac
1609 done
1610 (set) 2>&1 |
1611 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 *${as_nl}ac_space=\ *)
1613 sed -n \
1614 "s/'\''/'\''\\\\'\'''\''/g;
1615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1616 ;; #(
1618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1620 esac |
1621 sort
1623 echo
1625 cat <<\_ASBOX
1626 ## ----------------- ##
1627 ## Output variables. ##
1628 ## ----------------- ##
1629 _ASBOX
1630 echo
1631 for ac_var in $ac_subst_vars
1633 eval ac_val=\$$ac_var
1634 case $ac_val in
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 esac
1637 echo "$ac_var='\''$ac_val'\''"
1638 done | sort
1639 echo
1641 if test -n "$ac_subst_files"; then
1642 cat <<\_ASBOX
1643 ## ------------------- ##
1644 ## File substitutions. ##
1645 ## ------------------- ##
1646 _ASBOX
1647 echo
1648 for ac_var in $ac_subst_files
1650 eval ac_val=\$$ac_var
1651 case $ac_val in
1652 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 esac
1654 echo "$ac_var='\''$ac_val'\''"
1655 done | sort
1656 echo
1659 if test -s confdefs.h; then
1660 cat <<\_ASBOX
1661 ## ----------- ##
1662 ## confdefs.h. ##
1663 ## ----------- ##
1664 _ASBOX
1665 echo
1666 cat confdefs.h
1667 echo
1669 test "$ac_signal" != 0 &&
1670 echo "$as_me: caught signal $ac_signal"
1671 echo "$as_me: exit $exit_status"
1672 } >&5
1673 rm -f core *.core core.conftest.* &&
1674 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1675 exit $exit_status
1677 for ac_signal in 1 2 13 15; do
1678 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1679 done
1680 ac_signal=0
1682 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1683 rm -f -r conftest* confdefs.h
1685 # Predefined preprocessor variables.
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_NAME "$PACKAGE_NAME"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_STRING "$PACKAGE_STRING"
1704 _ACEOF
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1709 _ACEOF
1712 # Let the site file select an alternate cache file if it wants to.
1713 # Prefer explicitly selected file to automatically selected ones.
1714 if test -n "$CONFIG_SITE"; then
1715 set x "$CONFIG_SITE"
1716 elif test "x$prefix" != xNONE; then
1717 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1718 else
1719 set x "$ac_default_prefix/share/config.site" \
1720 "$ac_default_prefix/etc/config.site"
1722 shift
1723 for ac_site_file
1725 if test -r "$ac_site_file"; then
1726 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1727 echo "$as_me: loading site script $ac_site_file" >&6;}
1728 sed 's/^/| /' "$ac_site_file" >&5
1729 . "$ac_site_file"
1731 done
1733 if test -r "$cache_file"; then
1734 # Some versions of bash will fail to source /dev/null (special
1735 # files actually), so we avoid doing that.
1736 if test -f "$cache_file"; then
1737 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1738 echo "$as_me: loading cache $cache_file" >&6;}
1739 case $cache_file in
1740 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1741 *) . "./$cache_file";;
1742 esac
1744 else
1745 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1746 echo "$as_me: creating cache $cache_file" >&6;}
1747 >$cache_file
1750 ac_header_list="$ac_header_list sys/time.h"
1751 ac_header_list="$ac_header_list unistd.h"
1752 ac_func_list="$ac_func_list alarm"
1753 # Check that the precious variables saved in the cache have kept the same
1754 # value.
1755 ac_cache_corrupted=false
1756 for ac_var in $ac_precious_vars; do
1757 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1758 eval ac_new_set=\$ac_env_${ac_var}_set
1759 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1760 eval ac_new_val=\$ac_env_${ac_var}_value
1761 case $ac_old_set,$ac_new_set in
1762 set,)
1763 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1764 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1765 ac_cache_corrupted=: ;;
1766 ,set)
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1768 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1770 ,);;
1772 if test "x$ac_old_val" != "x$ac_new_val"; then
1773 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1774 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1775 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1776 echo "$as_me: former value: $ac_old_val" >&2;}
1777 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1778 echo "$as_me: current value: $ac_new_val" >&2;}
1779 ac_cache_corrupted=:
1780 fi;;
1781 esac
1782 # Pass precious variables to config.status.
1783 if test "$ac_new_set" = set; then
1784 case $ac_new_val in
1785 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 *) ac_arg=$ac_var=$ac_new_val ;;
1787 esac
1788 case " $ac_configure_args " in
1789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1790 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1791 esac
1793 done
1794 if $ac_cache_corrupted; then
1795 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1796 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1798 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1799 { (exit 1); exit 1; }; }
1826 ac_ext=c
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1837 test "$program_prefix" != NONE &&
1838 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1839 # Use a double $ so make ignores it.
1840 test "$program_suffix" != NONE &&
1841 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1842 # Double any \ or $. echo might interpret backslashes.
1843 # By default was `s,x,x', remove it if useless.
1844 cat <<\_ACEOF >conftest.sed
1845 s/[\\$]/&&/g;s/;s,x,x,$//
1846 _ACEOF
1847 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848 rm -f conftest.sed
1851 lispdir='${datadir}/emacs/${version}/lisp'
1852 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1853 '${datadir}/emacs/site-lisp'
1854 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1855 etcdir='${datadir}/emacs/${version}/etc'
1856 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1857 docdir='${datadir}/emacs/${version}/etc'
1858 gamedir='${localstatedir}/games/emacs'
1860 gameuser=games
1865 # Check whether --with-pop was given.
1866 if test "${with_pop+set}" = set; then
1867 withval=$with_pop;
1868 else
1869 with_pop=yes
1872 if test "$with_pop" = yes; then
1873 cat >>confdefs.h <<\_ACEOF
1874 #define MAIL_USE_POP 1
1875 _ACEOF
1881 # Check whether --with-kerberos was given.
1882 if test "${with_kerberos+set}" = set; then
1883 withval=$with_kerberos;
1884 else
1885 with_kerberos=no
1888 if test "$with_kerberos" != no; then
1889 cat >>confdefs.h <<\_ACEOF
1890 #define KERBEROS 1
1891 _ACEOF
1897 # Check whether --with-kerberos5 was given.
1898 if test "${with_kerberos5+set}" = set; then
1899 withval=$with_kerberos5;
1900 else
1901 with_kerberos5=no
1904 if test "${with_kerberos5}" != no; then
1905 if test "${with_kerberos}" = no; then
1906 with_kerberos=yes
1907 cat >>confdefs.h <<\_ACEOF
1908 #define KERBEROS 1
1909 _ACEOF
1913 cat >>confdefs.h <<\_ACEOF
1914 #define KERBEROS5 1
1915 _ACEOF
1920 # Check whether --with-hesiod was given.
1921 if test "${with_hesiod+set}" = set; then
1922 withval=$with_hesiod;
1923 else
1924 with_hesiod=no
1927 if test "$with_hesiod" != no; then
1929 cat >>confdefs.h <<\_ACEOF
1930 #define HESIOD 1
1931 _ACEOF
1936 # Check whether --with-sound was given.
1937 if test "${with_sound+set}" = set; then
1938 withval=$with_sound;
1939 else
1940 with_sound=yes
1945 # Check whether --with-sync-input was given.
1946 if test "${with_sync_input+set}" = set; then
1947 withval=$with_sync_input;
1948 else
1949 with_sync_input=yes
1952 if test "$with_sync_input" = yes; then
1954 cat >>confdefs.h <<\_ACEOF
1955 #define SYNC_INPUT 1
1956 _ACEOF
1961 # Check whether --with-x-toolkit was given.
1962 if test "${with_x_toolkit+set}" = set; then
1963 withval=$with_x_toolkit; case "${withval}" in
1964 y | ye | yes ) val=gtk ;;
1965 n | no ) val=no ;;
1966 l | lu | luc | luci | lucid ) val=lucid ;;
1967 a | at | ath | athe | athen | athena ) val=athena ;;
1968 m | mo | mot | moti | motif ) val=motif ;;
1969 g | gt | gtk ) val=gtk ;;
1971 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1972 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1973 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1974 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1975 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1976 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1977 { (exit 1); exit 1; }; }
1979 esac
1980 with_x_toolkit=$val
1986 # Check whether --with-xpm was given.
1987 if test "${with_xpm+set}" = set; then
1988 withval=$with_xpm;
1989 else
1990 with_xpm=yes
1994 # Check whether --with-jpeg was given.
1995 if test "${with_jpeg+set}" = set; then
1996 withval=$with_jpeg;
1997 else
1998 with_jpeg=yes
2002 # Check whether --with-tiff was given.
2003 if test "${with_tiff+set}" = set; then
2004 withval=$with_tiff;
2005 else
2006 with_tiff=yes
2010 # Check whether --with-gif was given.
2011 if test "${with_gif+set}" = set; then
2012 withval=$with_gif;
2013 else
2014 with_gif=yes
2018 # Check whether --with-png was given.
2019 if test "${with_png+set}" = set; then
2020 withval=$with_png;
2021 else
2022 with_png=yes
2026 # Check whether --with-rsvg was given.
2027 if test "${with_rsvg+set}" = set; then
2028 withval=$with_rsvg;
2029 else
2030 with_rsvg=yes
2035 # Check whether --with-freetype was given.
2036 if test "${with_freetype+set}" = set; then
2037 withval=$with_freetype;
2038 else
2039 with_freetype=yes
2043 # Check whether --with-xft was given.
2044 if test "${with_xft+set}" = set; then
2045 withval=$with_xft;
2046 else
2047 with_xft=yes
2051 # Check whether --with-libotf was given.
2052 if test "${with_libotf+set}" = set; then
2053 withval=$with_libotf;
2054 else
2055 with_libotf=yes
2059 # Check whether --with-m17n-flt was given.
2060 if test "${with_m17n_flt+set}" = set; then
2061 withval=$with_m17n_flt;
2062 else
2063 with_m17n_flt=yes
2068 # Check whether --with-toolkit-scroll-bars was given.
2069 if test "${with_toolkit_scroll_bars+set}" = set; then
2070 withval=$with_toolkit_scroll_bars;
2071 else
2072 with_toolkit_scroll_bars=yes
2076 # Check whether --with-xaw3d was given.
2077 if test "${with_xaw3d+set}" = set; then
2078 withval=$with_xaw3d;
2079 else
2080 with_xaw3d=yes
2084 # Check whether --with-xim was given.
2085 if test "${with_xim+set}" = set; then
2086 withval=$with_xim;
2087 else
2088 with_xim=yes
2092 # Check whether --with-ns was given.
2093 if test "${with_ns+set}" = set; then
2094 withval=$with_ns;
2095 else
2096 with_ns=no
2101 # Check whether --with-gpm was given.
2102 if test "${with_gpm+set}" = set; then
2103 withval=$with_gpm;
2104 else
2105 with_gpm=yes
2109 # Check whether --with-dbus was given.
2110 if test "${with_dbus+set}" = set; then
2111 withval=$with_dbus;
2112 else
2113 with_dbus=yes
2117 ## For the times when you want to build Emacs but don't have
2118 ## a suitable makeinfo, and can live without the manuals.
2120 # Check whether --with-makeinfo was given.
2121 if test "${with_makeinfo+set}" = set; then
2122 withval=$with_makeinfo;
2123 else
2124 with_makeinfo=yes
2129 # Check whether --with-gtk was given.
2130 if test "${with_gtk+set}" = set; then
2131 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2132 specify a toolkit." >&5
2133 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&2;}
2135 { (exit 1); exit 1; }; }
2140 # Check whether --with-gcc was given.
2141 if test "${with_gcc+set}" = set; then
2142 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2143 variable to specify a compiler." >&5
2144 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&2;}
2146 { (exit 1); exit 1; }; }
2151 # Check whether --with-pkg-config-prog was given.
2152 if test "${with_pkg_config_prog+set}" = set; then
2153 withval=$with_pkg_config_prog;
2156 if test "X${with_pkg_config_prog}" != X; then
2157 if test "${with_pkg_config_prog}" != yes; then
2158 PKG_CONFIG="${with_pkg_config_prog}"
2163 # Check whether --with-gnustep-conf was given.
2164 if test "${with_gnustep_conf+set}" = set; then
2165 withval=$with_gnustep_conf;
2168 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2169 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2170 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2171 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2173 # Check whether --enable-ns-self-contained was given.
2174 if test "${enable_ns_self_contained+set}" = set; then
2175 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2176 else
2177 EN_NS_SELF_CONTAINED=yes
2181 # Check whether --enable-asserts was given.
2182 if test "${enable_asserts+set}" = set; then
2183 enableval=$enable_asserts; USE_XASSERTS=$enableval
2184 else
2185 USE_XASSERTS=no
2189 # Check whether --enable-maintainer-mode was given.
2190 if test "${enable_maintainer_mode+set}" = set; then
2191 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2192 else
2193 USE_MAINTAINER_MODE=no
2196 if test $USE_MAINTAINER_MODE = yes; then
2197 MAINT=
2198 else
2199 MAINT=#
2203 # Check whether --enable-locallisppath was given.
2204 if test "${enable_locallisppath+set}" = set; then
2205 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2206 locallisppath=
2207 elif test "${enableval}" != "yes"; then
2208 locallisppath=${enableval}
2213 #### Make srcdir absolute, if it isn't already. It's important to
2214 #### avoid running the path through pwd unnecessarily, since pwd can
2215 #### give you automounter prefixes, which can go away. We do all this
2216 #### so Emacs can find its files when run uninstalled.
2217 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2218 unset CDPATH
2219 case "${srcdir}" in
2220 /* ) ;;
2222 ## We may be able to use the $PWD environment variable to make this
2223 ## absolute. But sometimes PWD is inaccurate.
2224 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2225 ## but that tested only for a well-formed and valid PWD,
2226 ## it did not object when PWD was well-formed and valid but just wrong.
2227 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2228 then
2229 srcdir="$PWD"
2230 else
2231 srcdir="`(cd ${srcdir}; pwd)`"
2234 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2235 esac
2237 #### Check if the source directory already has a configured system in it.
2238 if test `pwd` != `(cd ${srcdir} && pwd)` \
2239 && test -f "${srcdir}/src/config.h" ; then
2240 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2241 as a build directory right now; it has been configured in its own
2242 right. To configure in another directory as well, you MUST
2243 use GNU make. If you do not have GNU make, then you must
2244 now do \`make distclean' in ${srcdir},
2245 and then run $0 again." >&5
2246 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2247 as a build directory right now; it has been configured in its own
2248 right. To configure in another directory as well, you MUST
2249 use GNU make. If you do not have GNU make, then you must
2250 now do \`make distclean' in ${srcdir},
2251 and then run $0 again." >&2;}
2254 #### Given the configuration name, set machfile and opsysfile to the
2255 #### names of the m/*.h and s/*.h files we should use.
2257 ### Canonicalize the configuration name.
2259 ac_aux_dir=
2260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2261 if test -f "$ac_dir/install-sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install-sh -c"
2264 break
2265 elif test -f "$ac_dir/install.sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install.sh -c"
2268 break
2269 elif test -f "$ac_dir/shtool"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 break
2274 done
2275 if test -z "$ac_aux_dir"; then
2276 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2277 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2278 { (exit 1); exit 1; }; }
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290 # Make sure we can run config.sub.
2291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2292 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2293 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2294 { (exit 1); exit 1; }; }
2296 { echo "$as_me:$LINENO: checking build system type" >&5
2297 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2298 if test "${ac_cv_build+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 ac_build_alias=$build_alias
2302 test "x$ac_build_alias" = x &&
2303 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2304 test "x$ac_build_alias" = x &&
2305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2307 { (exit 1); exit 1; }; }
2308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2310 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2311 { (exit 1); exit 1; }; }
2314 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2315 echo "${ECHO_T}$ac_cv_build" >&6; }
2316 case $ac_cv_build in
2317 *-*-*) ;;
2318 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2319 echo "$as_me: error: invalid value of canonical build" >&2;}
2320 { (exit 1); exit 1; }; };;
2321 esac
2322 build=$ac_cv_build
2323 ac_save_IFS=$IFS; IFS='-'
2324 set x $ac_cv_build
2325 shift
2326 build_cpu=$1
2327 build_vendor=$2
2328 shift; shift
2329 # Remember, the first character of IFS is used to create $*,
2330 # except with old shells:
2331 build_os=$*
2332 IFS=$ac_save_IFS
2333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2336 { echo "$as_me:$LINENO: checking host system type" >&5
2337 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2338 if test "${ac_cv_host+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test "x$host_alias" = x; then
2342 ac_cv_host=$ac_cv_build
2343 else
2344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2345 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2346 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2347 { (exit 1); exit 1; }; }
2351 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2352 echo "${ECHO_T}$ac_cv_host" >&6; }
2353 case $ac_cv_host in
2354 *-*-*) ;;
2355 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2356 echo "$as_me: error: invalid value of canonical host" >&2;}
2357 { (exit 1); exit 1; }; };;
2358 esac
2359 host=$ac_cv_host
2360 ac_save_IFS=$IFS; IFS='-'
2361 set x $ac_cv_host
2362 shift
2363 host_cpu=$1
2364 host_vendor=$2
2365 shift; shift
2366 # Remember, the first character of IFS is used to create $*,
2367 # except with old shells:
2368 host_os=$*
2369 IFS=$ac_save_IFS
2370 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373 canonical=$host
2374 configuration=${host_alias-${build_alias-$host}}
2378 ### If you add support for a new configuration, add code to this
2379 ### switch statement to recognize your configuration name and select
2380 ### the appropriate operating system and machine description files.
2382 ### You would hope that you could choose an m/*.h file pretty much
2383 ### based on the machine portion of the configuration name, and an s-
2384 ### file based on the operating system portion. However, it turns out
2385 ### that each m/*.h file is pretty manufacturer-specific - for
2386 ### example mips.h is MIPS
2387 ### So we basically have to have a special case for each
2388 ### configuration name.
2390 ### As far as handling version numbers on operating systems is
2391 ### concerned, make sure things will fail in a fixable way. If
2392 ### /etc/MACHINES doesn't say anything about version numbers, be
2393 ### prepared to handle anything reasonably. If version numbers
2394 ### matter, be sure /etc/MACHINES says something about it.
2396 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2397 ### "System V Release 4"; he writes, "The old convention encouraged
2398 ### confusion between `system' and `release' levels'."
2400 machine='' opsys='' unported=no
2401 case "${canonical}" in
2403 ## FreeBSD ports
2404 *-*-freebsd* )
2405 opsys=freebsd
2406 case "${canonical}" in
2407 alpha*-*-freebsd*) machine=alpha ;;
2408 arm*-*-freebsd*) machine=arm ;;
2409 ia64-*-freebsd*) machine=ia64 ;;
2410 sparc-*-freebsd*) machine=sparc ;;
2411 sparc64-*-freebsd*) machine=sparc ;;
2412 powerpc-*-freebsd*) machine=macppc ;;
2413 i[3456]86-*-freebsd*) machine=intel386 ;;
2414 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2415 esac
2418 ## FreeBSD kernel + glibc based userland
2419 *-*-kfreebsd*gnu* )
2420 opsys=gnu-kfreebsd
2421 case "${canonical}" in
2422 alpha*-*-kfreebsd*) machine=alpha ;;
2423 ia64-*-kfreebsd*) machine=ia64 ;;
2424 sparc-*-kfreebsd*) machine=sparc ;;
2425 sparc64-*-kfreebsd*) machine=sparc ;;
2426 powerpc-*-kfreebsd*) machine=macppc ;;
2427 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2428 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2429 esac
2432 ## NetBSD ports
2433 *-*-netbsd* )
2434 opsys=netbsd
2435 if test -f /usr/lib/crti.o; then
2437 cat >>confdefs.h <<\_ACEOF
2438 #define HAVE_CRTIN
2439 _ACEOF
2443 case "${canonical}" in
2444 alpha*-*-netbsd*) machine=alpha ;;
2445 i[3456]86-*-netbsd*) machine=intel386 ;;
2446 powerpc-*-netbsd*) machine=macppc ;;
2447 sparc*-*-netbsd*) machine=sparc ;;
2448 vax-*-netbsd*) machine=vax ;;
2449 arm-*-netbsd*) machine=arm ;;
2450 x86_64-*-netbsd*) machine=amdx86-64 ;;
2451 hppa-*-netbsd*) machine=hp800 ;;
2452 m68k-*-netbsd*) machine=m68k ;;
2453 esac
2456 ## OpenBSD ports
2457 *-*-openbsd* )
2458 opsys=openbsd
2459 case "${canonical}" in
2460 alpha*-*-openbsd*) machine=alpha ;;
2461 arm-*-openbsd*) machine=arm ;;
2462 i386-*-openbsd*) machine=intel386 ;;
2463 powerpc-*-openbsd*) machine=macppc ;;
2464 sparc*-*-openbsd*) machine=sparc ;;
2465 vax-*-openbsd*) machine=vax ;;
2466 x86_64-*-openbsd*) machine=amdx86-64 ;;
2467 hppa-*-openbsd*) machine=hp800 ;;
2468 esac
2471 ## LynxOS ports
2472 *-*-lynxos* )
2473 opsys=lynxos
2474 case "${canonical}" in
2475 i[3456]86-*-lynxos*) machine=intel386 ;;
2476 powerpc-*-lynxos*) machine=powerpc ;;
2477 esac
2480 alpha*-*-linux-gnu* )
2481 machine=alpha opsys=gnu-linux
2484 arm*-*-linux-gnu* )
2485 machine=arm opsys=gnu-linux
2488 ## Apple Darwin / Mac OS X
2489 *-apple-darwin* )
2490 case "${canonical}" in
2491 i[3456]86-* ) machine=intel386 ;;
2492 powerpc-* ) machine=macppc ;;
2493 * ) unported=yes ;;
2494 esac
2495 opsys=darwin
2496 # Define CPP as follows to make autoconf work correctly.
2497 CPP="${CC-cc} -E -no-cpp-precomp"
2498 # Use fink packages if available.
2499 if test -d /sw/include && test -d /sw/lib; then
2500 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2501 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2502 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2506 ## HP 9000 series 700 and 800, running HP/UX
2507 hppa*-hp-hpux10.2* )
2508 machine=hp800 opsys=hpux10-20
2510 hppa*-hp-hpux1[1-9]* )
2511 machine=hp800 opsys=hpux11
2512 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2515 hppa*-*-linux-gnu* )
2516 machine=hp800 opsys=gnu-linux
2519 ## IBM machines
2520 s390-*-linux-gnu* )
2521 machine=ibms390 opsys=gnu-linux
2523 s390x-*-linux-gnu* )
2524 machine=ibms390x opsys=gnu-linux
2526 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2527 machine=ibmrs6000 opsys=aix4-2
2529 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2530 machine=ibmrs6000 opsys=aix4-2
2532 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2533 machine=ibmrs6000 opsys=aix4-2
2535 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2536 machine=ibmrs6000 opsys=aix4-2
2539 ## Macintosh PowerPC
2540 powerpc*-*-linux-gnu* )
2541 machine=macppc opsys=gnu-linux
2544 ## Silicon Graphics machines
2545 ## Iris 4D
2546 mips-sgi-irix6.5 )
2547 machine=iris4d opsys=irix6-5
2548 # Without defining _LANGUAGE_C, things get masked out in the headers
2549 # so that, for instance, grepping for `free' in stdlib.h fails and
2550 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2551 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2552 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2555 ## Suns
2556 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2557 machine=sparc opsys=gnu-linux
2560 *-sun-solaris* \
2561 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2562 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2563 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2564 case "${canonical}" in
2565 i[3456]86-*-* ) machine=intel386 ;;
2566 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2567 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2568 sparc* ) machine=sparc ;;
2569 * ) unported=yes ;;
2570 esac
2571 case "${canonical}" in
2572 *-sunos5.3* | *-solaris2.3* )
2573 opsys=sol2-3
2574 NON_GNU_CPP=/usr/ccs/lib/cpp
2576 *-sunos5.4* | *-solaris2.4* )
2577 opsys=sol2-4
2578 NON_GNU_CPP=/usr/ccs/lib/cpp
2579 RANLIB="ar -ts"
2581 *-sunos5.5* | *-solaris2.5* )
2582 opsys=sol2-5
2583 NON_GNU_CPP=/usr/ccs/lib/cpp
2584 RANLIB="ar -ts"
2586 *-sunos5.6* | *-solaris2.6* )
2587 opsys=sol2-6
2588 NON_GNU_CPP=/usr/ccs/lib/cpp
2589 RANLIB="ar -ts"
2591 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2592 opsys=sol2-6
2593 emacs_check_sunpro_c=yes
2594 NON_GNU_CPP=/usr/ccs/lib/cpp
2596 *-sunos5* | *-solaris* )
2597 opsys=sol2-10
2598 emacs_check_sunpro_c=yes
2599 NON_GNU_CPP=/usr/ccs/lib/cpp
2601 esac
2602 ## Watch out for a compiler that we know will not work.
2603 case "${canonical}" in
2604 *-solaris* | *-sunos5* )
2605 if [ "x$CC" = x/usr/ucb/cc ]; then
2606 ## /usr/ucb/cc doesn't work;
2607 ## we should find some other compiler that does work.
2608 unset CC
2611 *) ;;
2612 esac
2615 ## Vaxen.
2616 vax-dec-* )
2617 machine=vax
2618 case "${canonical}" in
2619 *-vms* ) opsys=vms ;;
2620 * ) unported=yes
2621 esac
2624 ## IA-64
2625 ia64*-*-linux* )
2626 machine=ia64 opsys=gnu-linux
2629 ## Intel 386 machines where we don't care about the manufacturer
2630 i[3456]86-*-* )
2631 machine=intel386
2632 case "${canonical}" in
2633 *-cygwin ) opsys=cygwin ;;
2634 *-darwin* ) opsys=darwin
2635 CPP="${CC-cc} -E -no-cpp-precomp"
2637 *-linux-gnu* ) opsys=gnu-linux ;;
2638 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2639 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2640 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2641 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2642 esac
2645 ## m68k Linux-based GNU system
2646 m68k-*-linux-gnu* )
2647 machine=m68k opsys=gnu-linux
2650 ## Mips Linux-based GNU system
2651 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2652 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2653 machine=mips opsys=gnu-linux
2656 ## AMD x86-64 Linux-based GNU system
2657 x86_64-*-linux-gnu* )
2658 machine=amdx86-64 opsys=gnu-linux
2661 ## Tensilica Xtensa Linux-based GNU system
2662 xtensa*-*-linux-gnu* )
2663 machine=xtensa opsys=gnu-linux
2666 ## SuperH Linux-based GNU system
2667 sh[34]*-*-linux-gnu* )
2668 machine=sh3 opsys=gnu-linux
2672 unported=yes
2674 esac
2676 ### If the code above didn't choose an operating system, just choose
2677 ### an operating system based on the configuration name. You really
2678 ### only want to use this when you have no idea what the right
2679 ### operating system is; if you know what operating systems a machine
2680 ### runs, it's cleaner to make it explicit in the case statement
2681 ### above.
2682 if test x"${opsys}" = x; then
2683 case "${canonical}" in
2684 *-gnu* ) opsys=gnu ;;
2685 *-sysv4.2uw* ) opsys=unixware ;;
2686 *-sysv5uw* ) opsys=unixware ;;
2687 *-sysv5OpenUNIX* ) opsys=unixware ;;
2688 *-sysv4.1* | *-sysvr4.1* )
2689 NON_GNU_CPP=/usr/lib/cpp
2690 opsys=usg5-4 ;;
2691 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2692 if [ x$NON_GNU_CPP = x ]; then
2693 if [ -f /usr/ccs/lib/cpp ]; then
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 else
2696 NON_GNU_CPP=/lib/cpp
2699 opsys=usg5-4-2 ;;
2700 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2702 unported=yes
2704 esac
2709 if test $unported = yes; then
2710 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2711 Check \`etc/MACHINES' for recognized configuration names." >&5
2712 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2713 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2714 { (exit 1); exit 1; }; }
2717 machfile="m/${machine}.h"
2718 opsysfile="s/${opsys}.h"
2721 #### Choose a compiler.
2722 test -n "$CC" && cc_specified=yes
2724 # Save the value of CFLAGS that the user specified.
2725 SPECIFIED_CFLAGS="$CFLAGS"
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_CC+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740 if test -n "$CC"; then
2741 ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2754 done
2755 done
2756 IFS=$as_save_IFS
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762 { echo "$as_me:$LINENO: result: $CC" >&5
2763 echo "${ECHO_T}$CC" >&6; }
2764 else
2765 { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2771 if test -z "$ac_cv_prog_CC"; then
2772 ac_ct_CC=$CC
2773 # Extract the first word of "gcc", so it can be a program name with args.
2774 set dummy gcc; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 if test -n "$ac_ct_CC"; then
2781 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_ac_ct_CC="gcc"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2801 if test -n "$ac_ct_CC"; then
2802 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2803 echo "${ECHO_T}$ac_ct_CC" >&6; }
2804 else
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet. If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet. If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822 CC=$ac_ct_CC
2824 else
2825 CC="$ac_cv_prog_CC"
2828 if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="${ac_tool_prefix}cc"
2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6; }
2861 else
2862 { echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6; }
2869 if test -z "$CC"; then
2870 # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_CC+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 ac_prog_rejected=no
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889 ac_prog_rejected=yes
2890 continue
2892 ac_cv_prog_CC="cc"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2898 IFS=$as_save_IFS
2900 if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2903 shift
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2908 shift
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { echo "$as_me:$LINENO: result: $CC" >&5
2917 echo "${ECHO_T}$CC" >&6; }
2918 else
2919 { echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6; }
2925 if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in cl.exe
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2950 done
2951 done
2952 IFS=$as_save_IFS
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6; }
2960 else
2961 { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2966 test -n "$CC" && break
2967 done
2969 if test -z "$CC"; then
2970 ac_ct_CC=$CC
2971 for ac_prog in cl.exe
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3003 echo "${ECHO_T}$ac_ct_CC" >&6; }
3004 else
3005 { echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6; }
3010 test -n "$ac_ct_CC" && break
3011 done
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&5
3021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet. If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3024 ac_tool_warned=yes ;;
3025 esac
3026 CC=$ac_ct_CC
3033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: no acceptable C compiler found in \$PATH
3036 See \`config.log' for more details." >&2;}
3037 { (exit 1); exit 1; }; }
3039 # Provide some information about the compiler.
3040 echo "$as_me:$LINENO: checking for C compiler version" >&5
3041 ac_compiler=`set X $ac_compile; echo $2`
3042 { (ac_try="$ac_compiler --version >&5"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler --version >&5") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (ac_try="$ac_compiler -v >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler -v >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 { (ac_try="$ac_compiler -V >&5"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compiler -V >&5") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3081 main ()
3085 return 0;
3087 _ACEOF
3088 ac_clean_files_save=$ac_clean_files
3089 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3090 # Try to create an executable without -o first, disregard a.out.
3091 # It will help us diagnose broken compilers, and finding out an intuition
3092 # of exeext.
3093 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3094 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3095 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3097 # List of possible output files, starting from the most likely.
3098 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3099 # only as a last resort. b.out is created by i960 compilers.
3100 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3102 # The IRIX 6 linker writes into existing files which may not be
3103 # executable, retaining their permissions. Remove them first so a
3104 # subsequent execution test works.
3105 ac_rmfiles=
3106 for ac_file in $ac_files
3108 case $ac_file in
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3110 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111 esac
3112 done
3113 rm -f $ac_rmfiles
3115 if { (ac_try="$ac_link_default"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_link_default") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; then
3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3129 # Autoconf.
3130 for ac_file in $ac_files ''
3132 test -f "$ac_file" || continue
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3136 [ab].out )
3137 # We found the default executable, but exeext='' is most
3138 # certainly right.
3139 break;;
3140 *.* )
3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3142 then :; else
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 # We set ac_cv_exeext here because the later test for it is not
3146 # safe: cross compilers may not add the suffix if given an `-o'
3147 # argument, so we may need to know it at that point already.
3148 # Even if this section looks crufty: it has the advantage of
3149 # actually working.
3150 break;;
3152 break;;
3153 esac
3154 done
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3157 else
3158 ac_file=''
3161 { echo "$as_me:$LINENO: result: $ac_file" >&5
3162 echo "${ECHO_T}$ac_file" >&6; }
3163 if test -z "$ac_file"; then
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3167 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3168 See \`config.log' for more details." >&5
3169 echo "$as_me: error: C compiler cannot create executables
3170 See \`config.log' for more details." >&2;}
3171 { (exit 77); exit 77; }; }
3174 ac_exeext=$ac_cv_exeext
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3179 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3180 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3181 # If not cross compiling, check that we can run a simple program.
3182 if test "$cross_compiling" != yes; then
3183 if { ac_try='./$ac_file'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3193 cross_compiling=no
3194 else
3195 if test "$cross_compiling" = maybe; then
3196 cross_compiling=yes
3197 else
3198 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3199 If you meant to cross compile, use \`--host'.
3200 See \`config.log' for more details." >&5
3201 echo "$as_me: error: cannot run C compiled programs.
3202 If you meant to cross compile, use \`--host'.
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3208 { echo "$as_me:$LINENO: result: yes" >&5
3209 echo "${ECHO_T}yes" >&6; }
3211 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3212 ac_clean_files=$ac_clean_files_save
3213 # Check that the compiler produces executables we can run. If not, either
3214 # the compiler is broken, or we cross compile.
3215 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3216 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3217 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3218 echo "${ECHO_T}$cross_compiling" >&6; }
3220 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3221 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3222 if { (ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_link") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; then
3232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3234 # work properly (i.e., refer to `conftest.exe'), while it won't with
3235 # `rm'.
3236 for ac_file in conftest.exe conftest conftest.*; do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 break;;
3242 * ) break;;
3243 esac
3244 done
3245 else
3246 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3249 See \`config.log' for more details." >&2;}
3250 { (exit 1); exit 1; }; }
3253 rm -f conftest$ac_cv_exeext
3254 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3255 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3257 rm -f conftest.$ac_ext
3258 EXEEXT=$ac_cv_exeext
3259 ac_exeext=$EXEEXT
3260 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3262 if test "${ac_cv_objext+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h. */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 rm -f conftest.o conftest.obj
3281 if { (ac_try="$ac_compile"
3282 case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; then
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." >&5
3305 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details." >&2;}
3307 { (exit 1); exit 1; }; }
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3313 echo "${ECHO_T}$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3317 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3318 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 main ()
3331 #ifndef __GNUC__
3332 choke me
3333 #endif
3336 return 0;
3338 _ACEOF
3339 rm -f conftest.$ac_objext
3340 if { (ac_try="$ac_compile"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && {
3353 test -z "$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 } && test -s conftest.$ac_objext; then
3356 ac_compiler_gnu=yes
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 ac_compiler_gnu=no
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3368 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3370 GCC=`test $ac_compiler_gnu = yes && echo yes`
3371 ac_test_CFLAGS=${CFLAGS+set}
3372 ac_save_CFLAGS=$CFLAGS
3373 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_cc_g+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 ac_save_c_werror_flag=$ac_c_werror_flag
3379 ac_c_werror_flag=yes
3380 ac_cv_prog_cc_g=no
3381 CFLAGS="-g"
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3390 main ()
3394 return 0;
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_compile") 2>conftest.er1
3405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } && {
3411 test -z "$ac_c_werror_flag" ||
3412 test ! -s conftest.err
3413 } && test -s conftest.$ac_objext; then
3414 ac_cv_prog_cc_g=yes
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 CFLAGS=""
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h. */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3428 main ()
3432 return 0;
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3453 else
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 ac_c_werror_flag=$ac_save_c_werror_flag
3458 CFLAGS="-g"
3459 cat >conftest.$ac_ext <<_ACEOF
3460 /* confdefs.h. */
3461 _ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.$ac_objext
3475 if { (ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_compile") 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } && {
3488 test -z "$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3490 } && test -s conftest.$ac_objext; then
3491 ac_cv_prog_cc_g=yes
3492 else
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3514 CFLAGS="-g -O2"
3515 else
3516 CFLAGS="-g"
3518 else
3519 if test "$GCC" = yes; then
3520 CFLAGS="-O2"
3521 else
3522 CFLAGS=
3525 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3526 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530 ac_cv_prog_cc_c89=no
3531 ac_save_CC=$CC
3532 cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h. */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3538 #include <stdarg.h>
3539 #include <stdio.h>
3540 #include <sys/types.h>
3541 #include <sys/stat.h>
3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543 struct buf { int x; };
3544 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545 static char *e (p, i)
3546 char **p;
3547 int i;
3549 return p[i];
3551 static char *f (char * (*g) (char **, int), char **p, ...)
3553 char *s;
3554 va_list v;
3555 va_start (v,p);
3556 s = g (p, va_arg (v,int));
3557 va_end (v);
3558 return s;
3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562 function prototypes and stuff, but not '\xHH' hex character constants.
3563 These don't provoke an error unfortunately, instead are silently treated
3564 as 'x'. The following induces an error, until -std is added to get
3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566 array size at least. It's necessary to write '\x00'==0 to get something
3567 that's true only with -std. */
3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571 inside strings and character constants. */
3572 #define FOO(x) 'x'
3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575 int test (int i, double x);
3576 struct s1 {int (*f) (int a);};
3577 struct s2 {int (*f) (double a);};
3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579 int argc;
3580 char **argv;
3582 main ()
3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586 return 0;
3588 _ACEOF
3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 CC="$ac_save_CC $ac_arg"
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_compile") 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && {
3607 test -z "$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 } && test -s conftest.$ac_objext; then
3610 ac_cv_prog_cc_c89=$ac_arg
3611 else
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3618 rm -f core conftest.err conftest.$ac_objext
3619 test "x$ac_cv_prog_cc_c89" != "xno" && break
3620 done
3621 rm -f conftest.$ac_ext
3622 CC=$ac_save_CC
3625 # AC_CACHE_VAL
3626 case "x$ac_cv_prog_cc_c89" in
3628 { echo "$as_me:$LINENO: result: none needed" >&5
3629 echo "${ECHO_T}none needed" >&6; } ;;
3630 xno)
3631 { echo "$as_me:$LINENO: result: unsupported" >&5
3632 echo "${ECHO_T}unsupported" >&6; } ;;
3634 CC="$CC $ac_cv_prog_cc_c89"
3635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3636 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3637 esac
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649 CPP=
3652 ## If not using gcc, and on Solaris, and no CPP specified, see if
3653 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3654 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3655 test x"$CPP" = x; then
3656 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3657 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3659 if test "${emacs_cv_sunpro_c+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3672 #ifndef __SUNPRO_C
3673 fail;
3674 #endif
3677 return 0;
3679 _ACEOF
3680 rm -f conftest.$ac_objext conftest$ac_exeext
3681 if { (ac_try="$ac_link"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_link") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } && {
3694 test -z "$ac_c_werror_flag" ||
3695 test ! -s conftest.err
3696 } && test -s conftest$ac_exeext &&
3697 $as_test_x conftest$ac_exeext; then
3698 emacs_cv_sunpro_c=yes
3699 else
3700 echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3703 emacs_cv_sunpro_c=no
3706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3707 conftest$ac_exeext conftest.$ac_ext
3710 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3711 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3713 if test x"$emacs_cv_sunpro_c" = xyes; then
3714 NON_GNU_CPP="$CC -E -Xs"
3718 #### Some systems specify a CPP to use unless we are using GCC.
3719 #### Now that we know whether we are using GCC, we can decide whether
3720 #### to use that one.
3721 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3722 then
3723 CPP="$NON_GNU_CPP"
3726 #### Some systems specify a CC to use unless we are using GCC.
3727 #### Now that we know whether we are using GCC, we can decide whether
3728 #### to use that one.
3729 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3730 test x$cc_specified != xyes
3731 then
3732 CC="$NON_GNU_CC"
3735 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3736 then
3737 CC="$CC $GCC_TEST_OPTIONS"
3740 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3741 then
3742 CC="$CC $NON_GCC_TEST_OPTIONS"
3746 cat >>confdefs.h <<\_ACEOF
3747 #define _GNU_SOURCE 1
3748 _ACEOF
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3758 # On Suns, sometimes $CPP names a directory.
3759 if test -n "$CPP" && test -d "$CPP"; then
3760 CPP=
3762 if test -z "$CPP"; then
3763 if test "${ac_cv_prog_CPP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 # Double quotes because CPP needs to be expanded
3767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789 Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null && {
3804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805 test ! -s conftest.err
3806 }; then
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 # Broken: fails on valid input.
3813 continue
3816 rm -f conftest.err conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null && {
3841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 }; then
3844 # Broken: success on invalid input.
3845 continue
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3855 rm -f conftest.err conftest.$ac_ext
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861 break
3864 done
3865 ac_cv_prog_CPP=$CPP
3868 CPP=$ac_cv_prog_CPP
3869 else
3870 ac_cv_prog_CPP=$CPP
3872 { echo "$as_me:$LINENO: result: $CPP" >&5
3873 echo "${ECHO_T}$CPP" >&6; }
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 Syntax error
3895 _ACEOF
3896 if { (ac_try="$ac_cpp conftest.$ac_ext"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null && {
3909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 }; then
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 # Broken: fails on valid input.
3918 continue
3921 rm -f conftest.err conftest.$ac_ext
3923 # OK, works on sane cases. Now check whether nonexistent headers
3924 # can be detected and how.
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <ac_nonexistent.h>
3932 _ACEOF
3933 if { (ac_try="$ac_cpp conftest.$ac_ext"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null && {
3946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 }; then
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Passes both tests.
3956 ac_preproc_ok=:
3957 break
3960 rm -f conftest.err conftest.$ac_ext
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then
3967 else
3968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&5
3970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3971 See \`config.log' for more details." >&2;}
3972 { (exit 1); exit 1; }; }
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3983 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 # Extract the first word of "grep ggrep" to use in msg output
3988 if test -z "$GREP"; then
3989 set dummy grep ggrep; ac_prog_name=$2
3990 if test "${ac_cv_path_GREP+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993 ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 IFS=$as_save_IFS
3999 test -z "$as_dir" && as_dir=.
4000 for ac_prog in grep ggrep; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004 # Check for GNU ac_path_GREP and select it if it is found.
4005 # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010 ac_count=0
4011 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012 while :
4014 cat "conftest.in" "conftest.in" >"conftest.tmp"
4015 mv "conftest.tmp" "conftest.in"
4016 cp "conftest.in" "conftest.nl"
4017 echo 'GREP' >> "conftest.nl"
4018 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020 ac_count=`expr $ac_count + 1`
4021 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022 # Best one so far, save it but keep looking for a better one
4023 ac_cv_path_GREP="$ac_path_GREP"
4024 ac_path_GREP_max=$ac_count
4026 # 10*(2^10) chars as input seems more than enough
4027 test $ac_count -gt 10 && break
4028 done
4029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4033 $ac_path_GREP_found && break 3
4034 done
4035 done
4037 done
4038 IFS=$as_save_IFS
4043 GREP="$ac_cv_path_GREP"
4044 if test -z "$GREP"; then
4045 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4046 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4047 { (exit 1); exit 1; }; }
4050 else
4051 ac_cv_path_GREP=$GREP
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4058 GREP="$ac_cv_path_GREP"
4061 { echo "$as_me:$LINENO: checking for egrep" >&5
4062 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4067 then ac_cv_path_EGREP="$GREP -E"
4068 else
4069 # Extract the first word of "egrep" to use in msg output
4070 if test -z "$EGREP"; then
4071 set dummy egrep; ac_prog_name=$2
4072 if test "${ac_cv_path_EGREP+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 ac_path_EGREP_found=false
4076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_prog in egrep; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4085 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4086 # Check for GNU ac_path_EGREP and select it if it is found.
4087 # Check for GNU $ac_path_EGREP
4088 case `"$ac_path_EGREP" --version 2>&1` in
4089 *GNU*)
4090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4092 ac_count=0
4093 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4094 while :
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
4099 echo 'EGREP' >> "conftest.nl"
4100 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102 ac_count=`expr $ac_count + 1`
4103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_EGREP="$ac_path_EGREP"
4106 ac_path_EGREP_max=$ac_count
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 esac
4115 $ac_path_EGREP_found && break 3
4116 done
4117 done
4119 done
4120 IFS=$as_save_IFS
4125 EGREP="$ac_cv_path_EGREP"
4126 if test -z "$EGREP"; then
4127 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129 { (exit 1); exit 1; }; }
4132 else
4133 ac_cv_path_EGREP=$EGREP
4139 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4140 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4145 { echo "$as_me:$LINENO: checking for AIX" >&5
4146 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #ifdef _AIX
4155 #endif
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "yes" >/dev/null 2>&1; then
4160 { echo "$as_me:$LINENO: result: yes" >&5
4161 echo "${ECHO_T}yes" >&6; }
4162 cat >>confdefs.h <<\_ACEOF
4163 #define _ALL_SOURCE 1
4164 _ACEOF
4166 else
4167 { echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6; }
4170 rm -f conftest*
4173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4175 if test "${ac_cv_header_stdc+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h. */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4184 #include <stdlib.h>
4185 #include <stdarg.h>
4186 #include <string.h>
4187 #include <float.h>
4190 main ()
4194 return 0;
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_compile") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && {
4211 test -z "$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 } && test -s conftest.$ac_objext; then
4214 ac_cv_header_stdc=yes
4215 else
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 ac_cv_header_stdc=no
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 if test $ac_cv_header_stdc = yes; then
4225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #include <string.h>
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "memchr" >/dev/null 2>&1; then
4238 else
4239 ac_cv_header_stdc=no
4241 rm -f conftest*
4245 if test $ac_cv_header_stdc = yes; then
4246 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257 $EGREP "free" >/dev/null 2>&1; then
4259 else
4260 ac_cv_header_stdc=no
4262 rm -f conftest*
4266 if test $ac_cv_header_stdc = yes; then
4267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268 if test "$cross_compiling" = yes; then
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <ctype.h>
4278 #include <stdlib.h>
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 #else
4283 # define ISLOWER(c) \
4284 (('a' <= (c) && (c) <= 'i') \
4285 || ('j' <= (c) && (c) <= 'r') \
4286 || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #endif
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4292 main ()
4294 int i;
4295 for (i = 0; i < 256; i++)
4296 if (XOR (islower (i), ISLOWER (i))
4297 || toupper (i) != TOUPPER (i))
4298 return 2;
4299 return 0;
4301 _ACEOF
4302 rm -f conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4304 case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_link") 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313 { (case "(($ac_try" in
4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315 *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318 (eval "$ac_try") 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; }; then
4323 else
4324 echo "$as_me: program exited with status $ac_status" >&5
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 ( exit $ac_status )
4329 ac_cv_header_stdc=no
4331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4343 _ACEOF
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358 inttypes.h stdint.h unistd.h
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 $ac_includes_default
4374 #include <$ac_header>
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 eval "$as_ac_Header=yes"
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 eval "$as_ac_Header=no"
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 ac_res=`eval echo '${'$as_ac_Header'}'`
4404 { echo "$as_me:$LINENO: result: $ac_res" >&5
4405 echo "${ECHO_T}$ac_res" >&6; }
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407 cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 _ACEOF
4413 done
4416 if test "${ac_cv_header_minix_config_h+set}" = set; then
4417 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4418 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4419 if test "${ac_cv_header_minix_config_h+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4423 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4424 else
4425 # Is the header compilable?
4426 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4427 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 $ac_includes_default
4435 #include <minix/config.h>
4436 _ACEOF
4437 rm -f conftest.$ac_objext
4438 if { (ac_try="$ac_compile"
4439 case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_compile") 2>conftest.er1
4445 ac_status=$?
4446 grep -v '^ *+' conftest.er1 >conftest.err
4447 rm -f conftest.er1
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } && {
4451 test -z "$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4453 } && test -s conftest.$ac_objext; then
4454 ac_header_compiler=yes
4455 else
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4459 ac_header_compiler=no
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4464 echo "${ECHO_T}$ac_header_compiler" >&6; }
4466 # Is the header present?
4467 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4468 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <minix/config.h>
4476 _ACEOF
4477 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484 ac_status=$?
4485 grep -v '^ *+' conftest.er1 >conftest.err
4486 rm -f conftest.er1
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } >/dev/null && {
4490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4492 }; then
4493 ac_header_preproc=yes
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 ac_header_preproc=no
4501 rm -f conftest.err conftest.$ac_ext
4502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4503 echo "${ECHO_T}$ac_header_preproc" >&6; }
4505 # So? What about this header?
4506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4507 yes:no: )
4508 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4509 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4511 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4512 ac_header_preproc=yes
4514 no:yes:* )
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4516 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4518 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4519 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4520 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4521 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4522 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4523 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4524 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4526 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4529 esac
4530 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4531 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4532 if test "${ac_cv_header_minix_config_h+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535 ac_cv_header_minix_config_h=$ac_header_preproc
4537 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4538 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4541 if test $ac_cv_header_minix_config_h = yes; then
4542 MINIX=yes
4543 else
4544 MINIX=
4548 if test "$MINIX" = yes; then
4550 cat >>confdefs.h <<\_ACEOF
4551 #define _POSIX_SOURCE 1
4552 _ACEOF
4555 cat >>confdefs.h <<\_ACEOF
4556 #define _POSIX_1_SOURCE 2
4557 _ACEOF
4560 cat >>confdefs.h <<\_ACEOF
4561 #define _MINIX 1
4562 _ACEOF
4576 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4577 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4578 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h. */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4588 # define __EXTENSIONS__ 1
4589 $ac_includes_default
4591 main ()
4595 return 0;
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (ac_try="$ac_compile"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_compile") 2>conftest.er1
4606 ac_status=$?
4607 grep -v '^ *+' conftest.er1 >conftest.err
4608 rm -f conftest.er1
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest.$ac_objext; then
4615 ac_cv_safe_to_define___extensions__=yes
4616 else
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4620 ac_cv_safe_to_define___extensions__=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4626 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4627 test $ac_cv_safe_to_define___extensions__ = yes &&
4628 cat >>confdefs.h <<\_ACEOF
4629 #define __EXTENSIONS__ 1
4630 _ACEOF
4632 cat >>confdefs.h <<\_ACEOF
4633 #define _POSIX_PTHREAD_SEMANTICS 1
4634 _ACEOF
4636 cat >>confdefs.h <<\_ACEOF
4637 #define _TANDEM_SOURCE 1
4638 _ACEOF
4642 ### Use -Wno-pointer-sign if the compiler supports it
4643 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4644 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4645 SAVE_CFLAGS="$CFLAGS"
4646 CFLAGS="$CFLAGS -Wno-pointer-sign"
4647 cat >conftest.$ac_ext <<_ACEOF
4648 /* confdefs.h. */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4655 main ()
4659 return 0;
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (ac_try="$ac_compile"
4664 case "(($ac_try" in
4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666 *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669 (eval "$ac_compile") 2>conftest.er1
4670 ac_status=$?
4671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && {
4676 test -z "$ac_c_werror_flag" ||
4677 test ! -s conftest.err
4678 } && test -s conftest.$ac_objext; then
4679 has_option=yes
4680 else
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4684 has_option=no
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 if test $has_option = yes; then
4689 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4691 { echo "$as_me:$LINENO: result: $has_option" >&5
4692 echo "${ECHO_T}$has_option" >&6; }
4693 CFLAGS="$SAVE_CFLAGS"
4694 unset has_option
4695 unset SAVE_CFLAGS
4697 #### Some other nice autoconf tests.
4699 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4700 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4701 LN_S=$as_ln_s
4702 if test "$LN_S" = "ln -s"; then
4703 { echo "$as_me:$LINENO: result: yes" >&5
4704 echo "${ECHO_T}yes" >&6; }
4705 else
4706 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4707 echo "${ECHO_T}no, using $LN_S" >&6; }
4710 ac_ext=c
4711 ac_cpp='$CPP $CPPFLAGS'
4712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4715 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4716 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4717 # On Suns, sometimes $CPP names a directory.
4718 if test -n "$CPP" && test -d "$CPP"; then
4719 CPP=
4721 if test -z "$CPP"; then
4722 if test "${ac_cv_prog_CPP+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725 # Double quotes because CPP needs to be expanded
4726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4728 ac_preproc_ok=false
4729 for ac_c_preproc_warn_flag in '' yes
4731 # Use a header file that comes with gcc, so configuring glibc
4732 # with a fresh cross-compiler works.
4733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734 # <limits.h> exists even on freestanding compilers.
4735 # On the NeXT, cc -E runs the code through the compiler's parser,
4736 # not just through cpp. "Syntax error" is here to catch this case.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748 Syntax error
4749 _ACEOF
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null && {
4763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 }; then
4767 else
4768 echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 # Broken: fails on valid input.
4772 continue
4775 rm -f conftest.err conftest.$ac_ext
4777 # OK, works on sane cases. Now check whether nonexistent headers
4778 # can be detected and how.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <ac_nonexistent.h>
4786 _ACEOF
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } >/dev/null && {
4800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 }; then
4803 # Broken: success on invalid input.
4804 continue
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 # Passes both tests.
4810 ac_preproc_ok=:
4811 break
4814 rm -f conftest.err conftest.$ac_ext
4816 done
4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818 rm -f conftest.err conftest.$ac_ext
4819 if $ac_preproc_ok; then
4820 break
4823 done
4824 ac_cv_prog_CPP=$CPP
4827 CPP=$ac_cv_prog_CPP
4828 else
4829 ac_cv_prog_CPP=$CPP
4831 { echo "$as_me:$LINENO: result: $CPP" >&5
4832 echo "${ECHO_T}$CPP" >&6; }
4833 ac_preproc_ok=false
4834 for ac_c_preproc_warn_flag in '' yes
4836 # Use a header file that comes with gcc, so configuring glibc
4837 # with a fresh cross-compiler works.
4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4839 # <limits.h> exists even on freestanding compilers.
4840 # On the NeXT, cc -E runs the code through the compiler's parser,
4841 # not just through cpp. "Syntax error" is here to catch this case.
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 #ifdef __STDC__
4849 # include <limits.h>
4850 #else
4851 # include <assert.h>
4852 #endif
4853 Syntax error
4854 _ACEOF
4855 if { (ac_try="$ac_cpp conftest.$ac_ext"
4856 case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859 esac
4860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4862 ac_status=$?
4863 grep -v '^ *+' conftest.er1 >conftest.err
4864 rm -f conftest.er1
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } >/dev/null && {
4868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4869 test ! -s conftest.err
4870 }; then
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4876 # Broken: fails on valid input.
4877 continue
4880 rm -f conftest.err conftest.$ac_ext
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat >conftest.$ac_ext <<_ACEOF
4885 /* confdefs.h. */
4886 _ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4891 _ACEOF
4892 if { (ac_try="$ac_cpp conftest.$ac_ext"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } >/dev/null && {
4905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 }; then
4908 # Broken: success on invalid input.
4909 continue
4910 else
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 # Passes both tests.
4915 ac_preproc_ok=:
4916 break
4919 rm -f conftest.err conftest.$ac_ext
4921 done
4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4923 rm -f conftest.err conftest.$ac_ext
4924 if $ac_preproc_ok; then
4926 else
4927 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4928 See \`config.log' for more details." >&5
4929 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4930 See \`config.log' for more details." >&2;}
4931 { (exit 1); exit 1; }; }
4934 ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 # Find a good install program. We prefer a C program (faster),
4941 # so one script is as good as another. But avoid the broken or
4942 # incompatible versions:
4943 # SysV /etc/install, /usr/sbin/install
4944 # SunOS /usr/etc/install
4945 # IRIX /sbin/install
4946 # AIX /bin/install
4947 # AmigaOS /C/install, which installs bootblocks on floppy discs
4948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4951 # OS/2's system install, which has a completely different semantic
4952 # ./install, which can be erroneously created by make from ./install.sh.
4953 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4954 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4955 if test -z "$INSTALL"; then
4956 if test "${ac_cv_path_install+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 # Account for people who put trailing slashes in PATH elements.
4965 case $as_dir/ in
4966 ./ | .// | /cC/* | \
4967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4969 /usr/ucb/* ) ;;
4971 # OSF1 and SCO ODT 3.0 have their own names for install.
4972 # Don't use installbsd from OSF since it installs stuff as root
4973 # by default.
4974 for ac_prog in ginstall scoinst install; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4977 if test $ac_prog = install &&
4978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4979 # AIX install. It has an incompatible calling convention.
4981 elif test $ac_prog = install &&
4982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4983 # program-specific install script used by HP pwplus--don't use.
4985 else
4986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4987 break 3
4990 done
4991 done
4993 esac
4994 done
4995 IFS=$as_save_IFS
4999 if test "${ac_cv_path_install+set}" = set; then
5000 INSTALL=$ac_cv_path_install
5001 else
5002 # As a last resort, use the slow shell script. Don't cache a
5003 # value for INSTALL within a source directory, because that will
5004 # break other packages using the cache if that directory is
5005 # removed, or if the value is a relative name.
5006 INSTALL=$ac_install_sh
5009 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5010 echo "${ECHO_T}$INSTALL" >&6; }
5012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5013 # It thinks the first close brace ends the variable substitution.
5014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5020 if test "x$RANLIB" = x; then
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5026 if test "${ac_cv_prog_RANLIB+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 if test -n "$RANLIB"; then
5030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 RANLIB=$ac_cv_prog_RANLIB
5050 if test -n "$RANLIB"; then
5051 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5052 echo "${ECHO_T}$RANLIB" >&6; }
5053 else
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5060 if test -z "$ac_cv_prog_RANLIB"; then
5061 ac_ct_RANLIB=$RANLIB
5062 # Extract the first word of "ranlib", so it can be a program name with args.
5063 set dummy ranlib; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test -n "$ac_ct_RANLIB"; then
5070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_RANLIB="ranlib"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5090 if test -n "$ac_ct_RANLIB"; then
5091 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5092 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5093 else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5098 if test "x$ac_ct_RANLIB" = x; then
5099 RANLIB=":"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet. If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet. If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111 RANLIB=$ac_ct_RANLIB
5113 else
5114 RANLIB="$ac_cv_prog_RANLIB"
5118 # Extract the first word of "install-info", so it can be a program name with args.
5119 set dummy install-info; ac_word=$2
5120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5122 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125 case $INSTALL_INFO in
5126 [\\/]* | ?:[\\/]*)
5127 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5146 esac
5148 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5149 if test -n "$INSTALL_INFO"; then
5150 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5151 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5152 else
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5158 # Extract the first word of "install-info", so it can be a program name with args.
5159 set dummy install-info; ac_word=$2
5160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5162 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 case $INSTALL_INFO in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in /usr/sbin
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5186 esac
5188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5189 if test -n "$INSTALL_INFO"; then
5190 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5191 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5192 else
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5198 # Extract the first word of "install-info", so it can be a program name with args.
5199 set dummy install-info; ac_word=$2
5200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5202 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 case $INSTALL_INFO in
5206 [\\/]* | ?:[\\/]*)
5207 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in /sbin
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5225 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5227 esac
5229 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5230 if test -n "$INSTALL_INFO"; then
5231 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5232 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5233 else
5234 { echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6; }
5239 # Extract the first word of "gzip", so it can be a program name with args.
5240 set dummy gzip; ac_word=$2
5241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5243 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 case $GZIP_PROG in
5247 [\\/]* | ?:[\\/]*)
5248 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5267 esac
5269 GZIP_PROG=$ac_cv_path_GZIP_PROG
5270 if test -n "$GZIP_PROG"; then
5271 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5272 echo "${ECHO_T}$GZIP_PROG" >&6; }
5273 else
5274 { echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6; }
5281 ## Need makeinfo >= 4.6 (?) to build the manuals.
5282 # Extract the first word of "makeinfo", so it can be a program name with args.
5283 set dummy makeinfo; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 case $MAKEINFO in
5290 [\\/]* | ?:[\\/]*)
5291 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5309 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5311 esac
5313 MAKEINFO=$ac_cv_path_MAKEINFO
5314 if test -n "$MAKEINFO"; then
5315 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5316 echo "${ECHO_T}$MAKEINFO" >&6; }
5317 else
5318 { echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6; }
5323 if test "$MAKEINFO" != "no" && \
5324 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
5325 MAKEINFO=no
5328 ## Makeinfo is unusual. For a released Emacs, the manuals are
5329 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5330 ## therefore in the category of "special tools" not normally required, which
5331 ## configure does not have to check for (eg autoconf itself).
5332 ## In a CVS checkout on the other hand, the manuals are not included.
5333 ## So makeinfo is a requirement to build from CVS, and configure
5334 ## should test for it as it does for any other build requirement.
5335 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5336 ## with pre-built manuals, from a CVS checkout.
5337 if test "$MAKEINFO" = "no"; then
5338 if test "x${with_makeinfo}" = "xno"; then
5339 MAKEINFO=off
5340 elif ! test -e $srcdir/info/emacs; then
5341 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5342 source tree does not seem to have pre-built manuals in the \`info' directory.
5343 Either install a suitable version of makeinfo, or re-run configure
5344 with the \`--without-makeinfo' option to build without the manuals. " >&5
5345 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5346 source tree does not seem to have pre-built manuals in the \`info' directory.
5347 Either install a suitable version of makeinfo, or re-run configure
5348 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5349 { (exit 1); exit 1; }; }
5354 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5355 then
5356 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5359 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5360 then
5361 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5365 late_LDFLAGS=$LDFLAGS
5366 if test "$GCC" = yes; then
5367 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5368 else
5369 LDFLAGS="$LDFLAGS -znocombreloc"
5372 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5373 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5374 cat >conftest.$ac_ext <<_ACEOF
5375 main(){return 0;}
5376 _ACEOF
5377 rm -f conftest.$ac_objext conftest$ac_exeext
5378 if { (ac_try="$ac_link"
5379 case "(($ac_try" in
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest$ac_exeext &&
5394 $as_test_x conftest$ac_exeext; then
5395 { echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6; }
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 LDFLAGS=$late_LDFLAGS
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5409 #### Extract some information from the operating system and machine files.
5411 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5412 - which libraries the lib-src programs will want, and
5413 - whether the GNU malloc routines are usable..." >&5
5414 echo "$as_me: checking the machine- and system-dependent files to find out
5415 - which libraries the lib-src programs will want, and
5416 - whether the GNU malloc routines are usable..." >&6;}
5418 ### First figure out CFLAGS (which we use for running the compiler here)
5419 ### and REAL_CFLAGS (which we use for real compilation).
5420 ### The two are the same except on a few systems, where they are made
5421 ### different to work around various lossages. For example,
5422 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5423 ### as implying static linking.
5425 ### If the CFLAGS env var is specified, we use that value
5426 ### instead of the default.
5428 ### It's not important that this name contain the PID; you can't run
5429 ### two configures in the same directory and have anything work
5430 ### anyway.
5431 tempcname="conftest.c"
5433 echo '
5434 #include "'${srcdir}'/src/'${opsysfile}'"
5435 #include "'${srcdir}'/src/'${machfile}'"
5436 #ifndef LIBS_MACHINE
5437 #define LIBS_MACHINE
5438 #endif
5439 #ifndef LIBS_SYSTEM
5440 #define LIBS_SYSTEM
5441 #endif
5442 #ifndef C_SWITCH_SYSTEM
5443 #define C_SWITCH_SYSTEM
5444 #endif
5445 #ifndef C_SWITCH_MACHINE
5446 #define C_SWITCH_MACHINE
5447 #endif
5448 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5449 configure___ c_switch_system=C_SWITCH_SYSTEM
5450 configure___ c_switch_machine=C_SWITCH_MACHINE
5452 #ifndef LIB_X11_LIB
5453 #define LIB_X11_LIB -lX11
5454 #endif
5456 #ifndef LIBX11_SYSTEM
5457 #define LIBX11_SYSTEM
5458 #endif
5459 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5461 #ifdef UNEXEC
5462 configure___ unexec=UNEXEC
5463 #else
5464 configure___ unexec=unexec.o
5465 #endif
5467 #ifdef SYSTEM_MALLOC
5468 configure___ system_malloc=yes
5469 #else
5470 configure___ system_malloc=no
5471 #endif
5473 #ifdef USE_MMAP_FOR_BUFFERS
5474 configure___ use_mmap_for_buffers=yes
5475 #else
5476 configure___ use_mmap_for_buffers=no
5477 #endif
5479 #ifndef C_DEBUG_SWITCH
5480 #define C_DEBUG_SWITCH -g
5481 #endif
5483 #ifndef C_OPTIMIZE_SWITCH
5484 #ifdef __GNUC__
5485 #define C_OPTIMIZE_SWITCH -O2
5486 #else
5487 #define C_OPTIMIZE_SWITCH -O
5488 #endif
5489 #endif
5491 #ifndef C_WARNINGS_SWITCH
5492 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5493 #endif
5495 #ifndef LD_SWITCH_MACHINE
5496 #define LD_SWITCH_MACHINE
5497 #endif
5499 #ifndef LD_SWITCH_SYSTEM
5500 #define LD_SWITCH_SYSTEM
5501 #endif
5503 #ifndef LD_SWITCH_X_SITE_AUX
5504 #define LD_SWITCH_X_SITE_AUX
5505 #endif
5507 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5508 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5510 #ifdef THIS_IS_CONFIGURE
5512 /* Get the CFLAGS for tests in configure. */
5513 #ifdef __GNUC__
5514 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5515 #else
5516 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5517 #endif
5519 #else /* not THIS_IS_CONFIGURE */
5521 /* Get the CFLAGS for real compilation. */
5522 #ifdef __GNUC__
5523 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5524 #else
5525 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5526 #endif
5528 #endif /* not THIS_IS_CONFIGURE */
5529 ' > ${tempcname}
5531 # The value of CPP is a quoted variable reference, so we need to do this
5532 # to get its actual value...
5533 CPP=`eval "echo $CPP"`
5534 eval `${CPP} -Isrc ${tempcname} \
5535 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5536 if test "x$SPECIFIED_CFLAGS" = x; then
5537 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5538 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5539 else
5540 REAL_CFLAGS="$CFLAGS"
5542 rm ${tempcname}
5544 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5546 ### Make sure subsequent tests use flags consistent with the build flags.
5548 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5549 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5550 else
5551 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5556 # Check whether --enable-largefile was given.
5557 if test "${enable_largefile+set}" = set; then
5558 enableval=$enable_largefile;
5561 if test "$enable_largefile" != no; then
5563 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5564 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5565 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 ac_cv_sys_largefile_CC=no
5569 if test "$GCC" != yes; then
5570 ac_save_CC=$CC
5571 while :; do
5572 # IRIX 6.2 and later do not support large files by default,
5573 # so use the C compiler's -n32 option if that helps.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #include <sys/types.h>
5581 /* Check that off_t can represent 2**63 - 1 correctly.
5582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5583 since some C++ compilers masquerading as C compilers
5584 incorrectly reject 9223372036854775807. */
5585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5587 && LARGE_OFF_T % 2147483647 == 1)
5588 ? 1 : -1];
5590 main ()
5594 return 0;
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (ac_try="$ac_compile"
5599 case "(($ac_try" in
5600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5602 esac
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 break
5615 else
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext
5623 CC="$CC -n32"
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compile") 2>conftest.er1
5632 ac_status=$?
5633 grep -v '^ *+' conftest.er1 >conftest.err
5634 rm -f conftest.er1
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } && {
5638 test -z "$ac_c_werror_flag" ||
5639 test ! -s conftest.err
5640 } && test -s conftest.$ac_objext; then
5641 ac_cv_sys_largefile_CC=' -n32'; break
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5649 rm -f core conftest.err conftest.$ac_objext
5650 break
5651 done
5652 CC=$ac_save_CC
5653 rm -f conftest.$ac_ext
5656 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5657 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5658 if test "$ac_cv_sys_largefile_CC" != no; then
5659 CC=$CC$ac_cv_sys_largefile_CC
5662 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667 while :; do
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5682 ? 1 : -1];
5684 main ()
5688 return 0;
5690 _ACEOF
5691 rm -f conftest.$ac_objext
5692 if { (ac_try="$ac_compile"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_compile") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_c_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest.$ac_objext; then
5708 ac_cv_sys_file_offset_bits=no; break
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 cat >conftest.$ac_ext <<_ACEOF
5718 /* confdefs.h. */
5719 _ACEOF
5720 cat confdefs.h >>conftest.$ac_ext
5721 cat >>conftest.$ac_ext <<_ACEOF
5722 /* end confdefs.h. */
5723 #define _FILE_OFFSET_BITS 64
5724 #include <sys/types.h>
5725 /* Check that off_t can represent 2**63 - 1 correctly.
5726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5727 since some C++ compilers masquerading as C compilers
5728 incorrectly reject 9223372036854775807. */
5729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5731 && LARGE_OFF_T % 2147483647 == 1)
5732 ? 1 : -1];
5734 main ()
5738 return 0;
5740 _ACEOF
5741 rm -f conftest.$ac_objext
5742 if { (ac_try="$ac_compile"
5743 case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } && {
5755 test -z "$ac_c_werror_flag" ||
5756 test ! -s conftest.err
5757 } && test -s conftest.$ac_objext; then
5758 ac_cv_sys_file_offset_bits=64; break
5759 else
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 ac_cv_sys_file_offset_bits=unknown
5768 break
5769 done
5771 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5772 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5773 case $ac_cv_sys_file_offset_bits in #(
5774 no | unknown) ;;
5776 cat >>confdefs.h <<_ACEOF
5777 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5778 _ACEOF
5780 esac
5781 rm -f conftest*
5782 if test $ac_cv_sys_file_offset_bits = unknown; then
5783 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5784 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5785 if test "${ac_cv_sys_large_files+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788 while :; do
5789 cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h. */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5795 #include <sys/types.h>
5796 /* Check that off_t can represent 2**63 - 1 correctly.
5797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5798 since some C++ compilers masquerading as C compilers
5799 incorrectly reject 9223372036854775807. */
5800 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5802 && LARGE_OFF_T % 2147483647 == 1)
5803 ? 1 : -1];
5805 main ()
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5814 case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
5829 ac_cv_sys_large_files=no; break
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 #define _LARGE_FILES 1
5845 #include <sys/types.h>
5846 /* Check that off_t can represent 2**63 - 1 correctly.
5847 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5848 since some C++ compilers masquerading as C compilers
5849 incorrectly reject 9223372036854775807. */
5850 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5851 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5852 && LARGE_OFF_T % 2147483647 == 1)
5853 ? 1 : -1];
5855 main ()
5859 return 0;
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (ac_try="$ac_compile"
5864 case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867 esac
5868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_sys_large_files=1; break
5880 else
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_sys_large_files=unknown
5889 break
5890 done
5892 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5893 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5894 case $ac_cv_sys_large_files in #(
5895 no | unknown) ;;
5897 cat >>confdefs.h <<_ACEOF
5898 #define _LARGE_FILES $ac_cv_sys_large_files
5899 _ACEOF
5901 esac
5902 rm -f conftest*
5908 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5909 ### be located in either /usr/lib64 or /usr/lib.
5910 ### In some rare cases, /usr/lib64 exists but does not contain the
5911 ### relevant files (bug#1287). Hence test for crtn.o.
5912 case "${canonical}" in
5913 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5914 if test -e /usr/lib64/crtn.o; then
5916 cat >>confdefs.h <<\_ACEOF
5917 #define HAVE_LIB64_DIR 1
5918 _ACEOF
5921 esac
5926 if test "${with_sound}" != "no"; then
5927 # Sound support for GNU/Linux and the free BSDs.
5931 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_res=`eval echo '${'$as_ac_Header'}'`
5941 { echo "$as_me:$LINENO: result: $ac_res" >&5
5942 echo "${ECHO_T}$ac_res" >&6; }
5943 else
5944 # Is the header compilable?
5945 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5946 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5947 cat >conftest.$ac_ext <<_ACEOF
5948 /* confdefs.h. */
5949 _ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5954 #include <$ac_header>
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5958 case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_header_compiler=yes
5974 else
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_header_compiler=no
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5983 echo "${ECHO_T}$ac_header_compiler" >&6; }
5985 # Is the header present?
5986 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <$ac_header>
5995 _ACEOF
5996 if { (ac_try="$ac_cpp conftest.$ac_ext"
5997 case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } >/dev/null && {
6009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 }; then
6012 ac_header_preproc=yes
6013 else
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_header_preproc=no
6020 rm -f conftest.err conftest.$ac_ext
6021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6022 echo "${ECHO_T}$ac_header_preproc" >&6; }
6024 # So? What about this header?
6025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6026 yes:no: )
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6031 ac_header_preproc=yes
6033 no:yes:* )
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6048 esac
6049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 eval "$as_ac_Header=\$ac_header_preproc"
6056 ac_res=`eval echo '${'$as_ac_Header'}'`
6057 { echo "$as_me:$LINENO: result: $ac_res" >&5
6058 echo "${ECHO_T}$ac_res" >&6; }
6061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6062 cat >>confdefs.h <<_ACEOF
6063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6068 done
6070 # Emulation library used on NetBSD.
6071 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6072 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6073 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076 ac_check_lib_save_LIBS=$LIBS
6077 LIBS="-lossaudio $LIBS"
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6085 /* Override any GCC internal prototype to avoid an error.
6086 Use char because int might match the return type of a GCC
6087 builtin and then its argument prototype would still apply. */
6088 #ifdef __cplusplus
6089 extern "C"
6090 #endif
6091 char _oss_ioctl ();
6093 main ()
6095 return _oss_ioctl ();
6097 return 0;
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (ac_try="$ac_link"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_link") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest$ac_exeext &&
6117 $as_test_x conftest$ac_exeext; then
6118 ac_cv_lib_ossaudio__oss_ioctl=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 ac_cv_lib_ossaudio__oss_ioctl=no
6126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6127 conftest$ac_exeext conftest.$ac_ext
6128 LIBS=$ac_check_lib_save_LIBS
6130 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6131 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6132 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6133 LIBSOUND=-lossaudio
6134 else
6135 LIBSOUND=
6140 ALSA_REQUIRED=1.0.0
6141 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6143 succeeded=no
6145 # Extract the first word of "pkg-config", so it can be a program name with args.
6146 set dummy pkg-config; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 case $PKG_CONFIG in
6153 [\\/]* | ?:[\\/]*)
6154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6172 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6174 esac
6176 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6177 if test -n "$PKG_CONFIG"; then
6178 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6179 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6180 else
6181 { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6187 if test "$PKG_CONFIG" = "no" ; then
6188 HAVE_ALSA=no
6189 else
6190 PKG_CONFIG_MIN_VERSION=0.9.0
6191 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6192 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6193 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6195 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6196 { echo "$as_me:$LINENO: result: yes" >&5
6197 echo "${ECHO_T}yes" >&6; }
6198 succeeded=yes
6200 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6201 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6202 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6203 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6204 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6206 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6207 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6208 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6209 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6210 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 ALSA_CFLAGS=""
6215 ALSA_LIBS=""
6216 ## If we have a custom action on failure, don't print errors, but
6217 ## do set a variable so people can do so.
6218 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6224 else
6225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6230 if test $succeeded = yes; then
6231 HAVE_ALSA=yes
6232 else
6233 HAVE_ALSA=no
6236 if test $HAVE_ALSA = yes; then
6237 SAVE_CFLAGS="$CFLAGS"
6238 SAVE_LDFLAGS="$LDFLAGS"
6239 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6240 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 /* confdefs.h. */
6243 _ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 #include <asoundlib.h>
6249 main ()
6251 snd_lib_error_set_handler (0);
6253 return 0;
6255 _ACEOF
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 emacs_alsa_normal=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 emacs_alsa_normal=no
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 if test "$emacs_alsa_normal" != yes; then
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 #include <alsa/asoundlib.h>
6291 main ()
6293 snd_lib_error_set_handler (0);
6295 return 0;
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 emacs_alsa_subdir=yes
6316 else
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 emacs_alsa_subdir=no
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 if test "$emacs_alsa_subdir" != yes; then
6325 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6326 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6327 { (exit 1); exit 1; }; }
6329 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6332 CFLAGS="$SAVE_CFLAGS"
6333 LDFLAGS="$SAVE_LDFLAGS"
6334 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6335 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_ALSA 1
6339 _ACEOF
6370 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6371 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6372 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6373 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6374 sys/utsname.h pwd.h
6376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_res=`eval echo '${'$as_ac_Header'}'`
6384 { echo "$as_me:$LINENO: result: $ac_res" >&5
6385 echo "${ECHO_T}$ac_res" >&6; }
6386 else
6387 # Is the header compilable?
6388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (ac_try="$ac_compile"
6401 case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_compile") 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } && {
6413 test -z "$ac_c_werror_flag" ||
6414 test ! -s conftest.err
6415 } && test -s conftest.$ac_objext; then
6416 ac_header_compiler=yes
6417 else
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_header_compiler=no
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6426 echo "${ECHO_T}$ac_header_compiler" >&6; }
6428 # Is the header present?
6429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h. */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 #include <$ac_header>
6438 _ACEOF
6439 if { (ac_try="$ac_cpp conftest.$ac_ext"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } >/dev/null && {
6452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 }; then
6455 ac_header_preproc=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 ac_header_preproc=no
6463 rm -f conftest.err conftest.$ac_ext
6464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6465 echo "${ECHO_T}$ac_header_preproc" >&6; }
6467 # So? What about this header?
6468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6469 yes:no: )
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6474 ac_header_preproc=yes
6476 no:yes:* )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 esac
6492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 else
6497 eval "$as_ac_Header=\$ac_header_preproc"
6499 ac_res=`eval echo '${'$as_ac_Header'}'`
6500 { echo "$as_me:$LINENO: result: $ac_res" >&5
6501 echo "${ECHO_T}$ac_res" >&6; }
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6511 done
6514 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6515 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 #include <sys/personality.h>
6524 main ()
6526 personality (PER_LINUX32)
6528 return 0;
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6533 case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536 esac
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_c_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 emacs_cv_personality_linux32=yes
6549 else
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 emacs_cv_personality_linux32=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6558 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6560 if test $emacs_cv_personality_linux32 = yes; then
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_PERSONALITY_LINUX32 1
6564 _ACEOF
6569 for ac_header in term.h
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 #include <$ac_header>
6584 _ACEOF
6585 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592 ac_status=$?
6593 grep -v '^ *+' conftest.er1 >conftest.err
6594 rm -f conftest.er1
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } >/dev/null && {
6598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 }; then
6601 eval "$as_ac_Header=yes"
6602 else
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 eval "$as_ac_Header=no"
6609 rm -f conftest.err conftest.$ac_ext
6611 ac_res=`eval echo '${'$as_ac_Header'}'`
6612 { echo "$as_me:$LINENO: result: $ac_res" >&5
6613 echo "${ECHO_T}$ac_res" >&6; }
6614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 _ACEOF
6621 done
6623 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6625 if test "${ac_cv_header_stdc+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6634 #include <stdlib.h>
6635 #include <stdarg.h>
6636 #include <string.h>
6637 #include <float.h>
6640 main ()
6644 return 0;
6646 _ACEOF
6647 rm -f conftest.$ac_objext
6648 if { (ac_try="$ac_compile"
6649 case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_cv_header_stdc=yes
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_cv_header_stdc=no
6672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 if test $ac_cv_header_stdc = yes; then
6675 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <string.h>
6684 _ACEOF
6685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6686 $EGREP "memchr" >/dev/null 2>&1; then
6688 else
6689 ac_cv_header_stdc=no
6691 rm -f conftest*
6695 if test $ac_cv_header_stdc = yes; then
6696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #include <stdlib.h>
6705 _ACEOF
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707 $EGREP "free" >/dev/null 2>&1; then
6709 else
6710 ac_cv_header_stdc=no
6712 rm -f conftest*
6716 if test $ac_cv_header_stdc = yes; then
6717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6718 if test "$cross_compiling" = yes; then
6720 else
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <ctype.h>
6728 #include <stdlib.h>
6729 #if ((' ' & 0x0FF) == 0x020)
6730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6732 #else
6733 # define ISLOWER(c) \
6734 (('a' <= (c) && (c) <= 'i') \
6735 || ('j' <= (c) && (c) <= 'r') \
6736 || ('s' <= (c) && (c) <= 'z'))
6737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6738 #endif
6740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6742 main ()
6744 int i;
6745 for (i = 0; i < 256; i++)
6746 if (XOR (islower (i), ISLOWER (i))
6747 || toupper (i) != TOUPPER (i))
6748 return 2;
6749 return 0;
6751 _ACEOF
6752 rm -f conftest$ac_exeext
6753 if { (ac_try="$ac_link"
6754 case "(($ac_try" in
6755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6757 esac
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_link") 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6763 { (case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_try") 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; }; then
6773 else
6774 echo "$as_me: program exited with status $ac_status" >&5
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ( exit $ac_status )
6779 ac_cv_header_stdc=no
6781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6788 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6789 if test $ac_cv_header_stdc = yes; then
6791 cat >>confdefs.h <<\_ACEOF
6792 #define STDC_HEADERS 1
6793 _ACEOF
6797 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6798 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6799 if test "${ac_cv_header_time+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802 cat >conftest.$ac_ext <<_ACEOF
6803 /* confdefs.h. */
6804 _ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 #include <sys/time.h>
6810 #include <time.h>
6813 main ()
6815 if ((struct tm *) 0)
6816 return 0;
6818 return 0;
6820 _ACEOF
6821 rm -f conftest.$ac_objext
6822 if { (ac_try="$ac_compile"
6823 case "(($ac_try" in
6824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6826 esac
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_compile") 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && {
6835 test -z "$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 } && test -s conftest.$ac_objext; then
6838 ac_cv_header_time=yes
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_header_time=no
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6849 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6850 if test $ac_cv_header_time = yes; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define TIME_WITH_SYS_TIME 1
6854 _ACEOF
6858 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6859 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6860 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 $ac_includes_default
6871 main ()
6873 #ifndef sys_siglist
6874 (void) sys_siglist;
6875 #endif
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_have_decl_sys_siglist=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_have_decl_sys_siglist=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6909 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6910 if test $ac_cv_have_decl_sys_siglist = yes; then
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_DECL_SYS_SIGLIST 1
6914 _ACEOF
6917 else
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_DECL_SYS_SIGLIST 0
6920 _ACEOF
6926 if test $ac_cv_have_decl_sys_siglist != yes; then
6927 # For Tru64, at least:
6928 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6929 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6930 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 else
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 $ac_includes_default
6941 main ()
6943 #ifndef __sys_siglist
6944 (void) __sys_siglist;
6945 #endif
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext
6952 if { (ac_try="$ac_compile"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6959 ac_status=$?
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6968 ac_cv_have_decl___sys_siglist=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_cv_have_decl___sys_siglist=no
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6979 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6980 if test $ac_cv_have_decl___sys_siglist = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_DECL___SYS_SIGLIST 1
6984 _ACEOF
6987 else
6988 cat >>confdefs.h <<_ACEOF
6989 #define HAVE_DECL___SYS_SIGLIST 0
6990 _ACEOF
6996 if test $ac_cv_have_decl___sys_siglist = yes; then
6998 cat >>confdefs.h <<\_ACEOF
6999 #define sys_siglist __sys_siglist
7000 _ACEOF
7004 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7005 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7006 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 else
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 #include <sys/types.h>
7016 #include <sys/wait.h>
7017 #ifndef WEXITSTATUS
7018 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7019 #endif
7020 #ifndef WIFEXITED
7021 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7022 #endif
7025 main ()
7027 int s;
7028 wait (&s);
7029 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7031 return 0;
7033 _ACEOF
7034 rm -f conftest.$ac_objext
7035 if { (ac_try="$ac_compile"
7036 case "(($ac_try" in
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7039 esac
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_compile") 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && {
7048 test -z "$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 } && test -s conftest.$ac_objext; then
7051 ac_cv_header_sys_wait_h=yes
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_header_sys_wait_h=no
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7062 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7063 if test $ac_cv_header_sys_wait_h = yes; then
7065 cat >>confdefs.h <<\_ACEOF
7066 #define HAVE_SYS_WAIT_H 1
7067 _ACEOF
7072 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7073 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7074 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 #ifdef TIME_WITH_SYS_TIME
7084 #include <sys/time.h>
7085 #include <time.h>
7086 #else
7087 #ifdef HAVE_SYS_TIME_H
7088 #include <sys/time.h>
7089 #else
7090 #include <time.h>
7091 #endif
7092 #endif
7093 #ifdef HAVE_UTIME_H
7094 #include <utime.h>
7095 #endif
7097 main ()
7099 static struct utimbuf x; x.actime = x.modtime;
7101 return 0;
7103 _ACEOF
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7106 case "(($ac_try" in
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 emacs_cv_struct_utimbuf=yes
7122 else
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 emacs_cv_struct_utimbuf=no
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7132 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7133 if test $emacs_cv_struct_utimbuf = yes; then
7135 cat >>confdefs.h <<\_ACEOF
7136 #define HAVE_STRUCT_UTIMBUF 1
7137 _ACEOF
7141 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7143 if test "${ac_cv_type_signal+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h. */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7153 #include <signal.h>
7156 main ()
7158 return *(signal (0, 0)) (0) == 1;
7160 return 0;
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7171 ac_status=$?
7172 grep -v '^ *+' conftest.er1 >conftest.err
7173 rm -f conftest.er1
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 ac_cv_type_signal=int
7181 else
7182 echo "$as_me: failed program was:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_cv_type_signal=void
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7191 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7193 cat >>confdefs.h <<_ACEOF
7194 #define RETSIGTYPE $ac_cv_type_signal
7195 _ACEOF
7199 { echo "$as_me:$LINENO: checking for speed_t" >&5
7200 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7201 if test "${emacs_cv_speed_t+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 else
7204 cat >conftest.$ac_ext <<_ACEOF
7205 /* confdefs.h. */
7206 _ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7210 #include <termios.h>
7212 main ()
7214 speed_t x = 1;
7216 return 0;
7218 _ACEOF
7219 rm -f conftest.$ac_objext
7220 if { (ac_try="$ac_compile"
7221 case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224 esac
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 emacs_cv_speed_t=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 emacs_cv_speed_t=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7247 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7248 if test $emacs_cv_speed_t = yes; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SPEED_T 1
7252 _ACEOF
7256 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7257 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7258 if test "${emacs_cv_struct_timeval+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 cat >conftest.$ac_ext <<_ACEOF
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 #ifdef TIME_WITH_SYS_TIME
7268 #include <sys/time.h>
7269 #include <time.h>
7270 #else
7271 #ifdef HAVE_SYS_TIME_H
7272 #include <sys/time.h>
7273 #else
7274 #include <time.h>
7275 #endif
7276 #endif
7278 main ()
7280 static struct timeval x; x.tv_sec = x.tv_usec;
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 emacs_cv_struct_timeval=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 emacs_cv_struct_timeval=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7313 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7314 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7315 if test $emacs_cv_struct_timeval = yes; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define HAVE_TIMEVAL 1
7319 _ACEOF
7323 { echo "$as_me:$LINENO: checking for struct exception" >&5
7324 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7325 if test "${emacs_cv_struct_exception+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <math.h>
7336 main ()
7338 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7340 return 0;
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 emacs_cv_struct_exception=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 emacs_cv_struct_exception=no
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7371 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7372 HAVE_EXCEPTION=$emacs_cv_struct_exception
7373 if test $emacs_cv_struct_exception != yes; then
7375 cat >>confdefs.h <<\_ACEOF
7376 #define NO_MATHERR 1
7377 _ACEOF
7382 for ac_header in sys/socket.h
7384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_res=`eval echo '${'$as_ac_Header'}'`
7392 { echo "$as_me:$LINENO: result: $ac_res" >&5
7393 echo "${ECHO_T}$ac_res" >&6; }
7394 else
7395 # Is the header compilable?
7396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 #include <$ac_header>
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_header_compiler=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_header_compiler=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7434 echo "${ECHO_T}$ac_header_compiler" >&6; }
7436 # Is the header present?
7437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <$ac_header>
7446 _ACEOF
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } >/dev/null && {
7460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 }; then
7463 ac_header_preproc=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_preproc=no
7471 rm -f conftest.err conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6; }
7475 # So? What about this header?
7476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7477 yes:no: )
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7482 ac_header_preproc=yes
7484 no:yes:* )
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7499 esac
7500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 eval "$as_ac_Header=\$ac_header_preproc"
7507 ac_res=`eval echo '${'$as_ac_Header'}'`
7508 { echo "$as_me:$LINENO: result: $ac_res" >&5
7509 echo "${ECHO_T}$ac_res" >&6; }
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513 cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7519 done
7522 for ac_header in net/if.h
7524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h. */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 $ac_includes_default
7537 #if HAVE_SYS_SOCKET_H
7538 #include <sys/socket.h>
7539 #endif
7541 #include <$ac_header>
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7545 case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548 esac
7549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 eval "$as_ac_Header=yes"
7561 else
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 eval "$as_ac_Header=no"
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570 ac_res=`eval echo '${'$as_ac_Header'}'`
7571 { echo "$as_me:$LINENO: result: $ac_res" >&5
7572 echo "${ECHO_T}$ac_res" >&6; }
7573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7574 cat >>confdefs.h <<_ACEOF
7575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7576 _ACEOF
7580 done
7583 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7584 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7585 if test "${ac_cv_struct_tm+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h. */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <sys/types.h>
7595 #include <time.h>
7598 main ()
7600 struct tm tm;
7601 int *p = &tm.tm_sec;
7602 return !p;
7604 return 0;
7606 _ACEOF
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7624 ac_cv_struct_tm=time.h
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_struct_tm=sys/time.h
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7635 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7636 if test $ac_cv_struct_tm = sys/time.h; then
7638 cat >>confdefs.h <<\_ACEOF
7639 #define TM_IN_SYS_TIME 1
7640 _ACEOF
7644 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7645 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7646 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <sys/types.h>
7656 #include <$ac_cv_struct_tm>
7660 main ()
7662 static struct tm ac_aggr;
7663 if (ac_aggr.tm_zone)
7664 return 0;
7666 return 0;
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (ac_try="$ac_compile"
7671 case "(($ac_try" in
7672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7673 *) ac_try_echo=$ac_try;;
7674 esac
7675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 ac_cv_member_struct_tm_tm_zone=yes
7687 else
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h. */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h. */
7697 #include <sys/types.h>
7698 #include <$ac_cv_struct_tm>
7702 main ()
7704 static struct tm ac_aggr;
7705 if (sizeof ac_aggr.tm_zone)
7706 return 0;
7708 return 0;
7710 _ACEOF
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7713 case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7718 (eval "$ac_compile") 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } && {
7725 test -z "$ac_c_werror_flag" ||
7726 test ! -s conftest.err
7727 } && test -s conftest.$ac_objext; then
7728 ac_cv_member_struct_tm_tm_zone=yes
7729 else
7730 echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 ac_cv_member_struct_tm_tm_zone=no
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7741 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7742 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7743 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7745 cat >>confdefs.h <<_ACEOF
7746 #define HAVE_STRUCT_TM_TM_ZONE 1
7747 _ACEOF
7752 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_TM_ZONE 1
7756 _ACEOF
7758 else
7759 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7760 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7761 if test "${ac_cv_have_decl_tzname+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <time.h>
7773 main ()
7775 #ifndef tzname
7776 (void) tzname;
7777 #endif
7780 return 0;
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7800 ac_cv_have_decl_tzname=yes
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7805 ac_cv_have_decl_tzname=no
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7811 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7812 if test $ac_cv_have_decl_tzname = yes; then
7814 cat >>confdefs.h <<_ACEOF
7815 #define HAVE_DECL_TZNAME 1
7816 _ACEOF
7819 else
7820 cat >>confdefs.h <<_ACEOF
7821 #define HAVE_DECL_TZNAME 0
7822 _ACEOF
7828 { echo "$as_me:$LINENO: checking for tzname" >&5
7829 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7830 if test "${ac_cv_var_tzname+set}" = set; then
7831 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <time.h>
7840 #if !HAVE_DECL_TZNAME
7841 extern char *tzname[];
7842 #endif
7845 main ()
7847 return tzname[0][0];
7849 return 0;
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_link") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext &&
7869 $as_test_x conftest$ac_exeext; then
7870 ac_cv_var_tzname=yes
7871 else
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7875 ac_cv_var_tzname=no
7878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7879 conftest$ac_exeext conftest.$ac_ext
7881 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7882 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7883 if test $ac_cv_var_tzname = yes; then
7885 cat >>confdefs.h <<\_ACEOF
7886 #define HAVE_TZNAME 1
7887 _ACEOF
7892 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7893 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7894 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <time.h>
7906 main ()
7908 static struct tm ac_aggr;
7909 if (ac_aggr.tm_gmtoff)
7910 return 0;
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 ac_cv_member_struct_tm_tm_gmtoff=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h. */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 #include <time.h>
7946 main ()
7948 static struct tm ac_aggr;
7949 if (sizeof ac_aggr.tm_gmtoff)
7950 return 0;
7952 return 0;
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7963 ac_status=$?
7964 grep -v '^ *+' conftest.er1 >conftest.err
7965 rm -f conftest.er1
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7972 ac_cv_member_struct_tm_tm_gmtoff=yes
7973 else
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 ac_cv_member_struct_tm_tm_gmtoff=no
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7986 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7987 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7989 cat >>confdefs.h <<\_ACEOF
7990 #define HAVE_TM_GMTOFF 1
7991 _ACEOF
7995 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7996 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7997 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 $ac_includes_default
8007 #if HAVE_SYS_SOCKET_H
8008 #include <sys/socket.h>
8009 #endif
8010 #if HAVE_NET_IF_H
8011 #include <net/if.h>
8012 #endif
8015 main ()
8017 static struct ifreq ac_aggr;
8018 if (ac_aggr.ifr_flags)
8019 return 0;
8021 return 0;
8023 _ACEOF
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8026 case "(($ac_try" in
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8029 esac
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_cv_member_struct_ifreq_ifr_flags=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 #if HAVE_SYS_SOCKET_H
8054 #include <sys/socket.h>
8055 #endif
8056 #if HAVE_NET_IF_H
8057 #include <net/if.h>
8058 #endif
8061 main ()
8063 static struct ifreq ac_aggr;
8064 if (sizeof ac_aggr.ifr_flags)
8065 return 0;
8067 return 0;
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8078 ac_status=$?
8079 grep -v '^ *+' conftest.er1 >conftest.err
8080 rm -f conftest.er1
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 ac_cv_member_struct_ifreq_ifr_flags=yes
8088 else
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 ac_cv_member_struct_ifreq_ifr_flags=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8101 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8102 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8104 cat >>confdefs.h <<_ACEOF
8105 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8106 _ACEOF
8110 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8111 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8112 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 #if HAVE_SYS_SOCKET_H
8123 #include <sys/socket.h>
8124 #endif
8125 #if HAVE_NET_IF_H
8126 #include <net/if.h>
8127 #endif
8130 main ()
8132 static struct ifreq ac_aggr;
8133 if (ac_aggr.ifr_hwaddr)
8134 return 0;
8136 return 0;
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146 (eval "$ac_compile") 2>conftest.er1
8147 ac_status=$?
8148 grep -v '^ *+' conftest.er1 >conftest.err
8149 rm -f conftest.er1
8150 cat conftest.err >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); } && {
8153 test -z "$ac_c_werror_flag" ||
8154 test ! -s conftest.err
8155 } && test -s conftest.$ac_objext; then
8156 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h. */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8167 $ac_includes_default
8168 #if HAVE_SYS_SOCKET_H
8169 #include <sys/socket.h>
8170 #endif
8171 #if HAVE_NET_IF_H
8172 #include <net/if.h>
8173 #endif
8176 main ()
8178 static struct ifreq ac_aggr;
8179 if (sizeof ac_aggr.ifr_hwaddr)
8180 return 0;
8182 return 0;
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189 *) ac_try_echo=$ac_try;;
8190 esac
8191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8216 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8217 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8219 cat >>confdefs.h <<_ACEOF
8220 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8221 _ACEOF
8225 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8226 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8227 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 #if HAVE_SYS_SOCKET_H
8238 #include <sys/socket.h>
8239 #endif
8240 #if HAVE_NET_IF_H
8241 #include <net/if.h>
8242 #endif
8245 main ()
8247 static struct ifreq ac_aggr;
8248 if (ac_aggr.ifr_netmask)
8249 return 0;
8251 return 0;
8253 _ACEOF
8254 rm -f conftest.$ac_objext
8255 if { (ac_try="$ac_compile"
8256 case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_compile") 2>conftest.er1
8262 ac_status=$?
8263 grep -v '^ *+' conftest.er1 >conftest.err
8264 rm -f conftest.er1
8265 cat conftest.err >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } && {
8268 test -z "$ac_c_werror_flag" ||
8269 test ! -s conftest.err
8270 } && test -s conftest.$ac_objext; then
8271 ac_cv_member_struct_ifreq_ifr_netmask=yes
8272 else
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8283 #if HAVE_SYS_SOCKET_H
8284 #include <sys/socket.h>
8285 #endif
8286 #if HAVE_NET_IF_H
8287 #include <net/if.h>
8288 #endif
8291 main ()
8293 static struct ifreq ac_aggr;
8294 if (sizeof ac_aggr.ifr_netmask)
8295 return 0;
8297 return 0;
8299 _ACEOF
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8302 case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 ac_cv_member_struct_ifreq_ifr_netmask=yes
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 ac_cv_member_struct_ifreq_ifr_netmask=no
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8330 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8331 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8332 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8334 cat >>confdefs.h <<_ACEOF
8335 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8336 _ACEOF
8340 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8341 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8342 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 else
8345 cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h. */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8351 $ac_includes_default
8352 #if HAVE_SYS_SOCKET_H
8353 #include <sys/socket.h>
8354 #endif
8355 #if HAVE_NET_IF_H
8356 #include <net/if.h>
8357 #endif
8360 main ()
8362 static struct ifreq ac_aggr;
8363 if (ac_aggr.ifr_broadaddr)
8364 return 0;
8366 return 0;
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_compile") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest.$ac_objext; then
8386 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h. */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8398 #if HAVE_SYS_SOCKET_H
8399 #include <sys/socket.h>
8400 #endif
8401 #if HAVE_NET_IF_H
8402 #include <net/if.h>
8403 #endif
8406 main ()
8408 static struct ifreq ac_aggr;
8409 if (sizeof ac_aggr.ifr_broadaddr)
8410 return 0;
8412 return 0;
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_c_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest.$ac_objext; then
8432 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8437 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8446 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8447 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8451 _ACEOF
8455 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8456 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8457 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8469 #endif
8470 #if HAVE_NET_IF_H
8471 #include <net/if.h>
8472 #endif
8475 main ()
8477 static struct ifreq ac_aggr;
8478 if (ac_aggr.ifr_addr)
8479 return 0;
8481 return 0;
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8491 (eval "$ac_compile") 2>conftest.er1
8492 ac_status=$?
8493 grep -v '^ *+' conftest.er1 >conftest.err
8494 rm -f conftest.er1
8495 cat conftest.err >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest.$ac_objext; then
8501 ac_cv_member_struct_ifreq_ifr_addr=yes
8502 else
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 cat >conftest.$ac_ext <<_ACEOF
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8513 #if HAVE_SYS_SOCKET_H
8514 #include <sys/socket.h>
8515 #endif
8516 #if HAVE_NET_IF_H
8517 #include <net/if.h>
8518 #endif
8521 main ()
8523 static struct ifreq ac_aggr;
8524 if (sizeof ac_aggr.ifr_addr)
8525 return 0;
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (ac_try="$ac_compile"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest.$ac_objext; then
8547 ac_cv_member_struct_ifreq_ifr_addr=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_member_struct_ifreq_ifr_addr=no
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8561 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8562 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8566 _ACEOF
8573 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8574 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8575 if test "$ac_cv_prog_cc_c89" != no; then
8576 { echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6; }
8579 cat >>confdefs.h <<\_ACEOF
8580 #define PROTOTYPES 1
8581 _ACEOF
8584 cat >>confdefs.h <<\_ACEOF
8585 #define __PROTOTYPES 1
8586 _ACEOF
8588 else
8589 { echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6; }
8593 { echo "$as_me:$LINENO: checking for working volatile" >&5
8594 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8595 if test "${ac_cv_c_volatile+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 else
8598 cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h. */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8606 main ()
8609 volatile int x;
8610 int * volatile y = (int *) 0;
8611 return !x && !y;
8613 return 0;
8615 _ACEOF
8616 rm -f conftest.$ac_objext
8617 if { (ac_try="$ac_compile"
8618 case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_compile") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } && {
8630 test -z "$ac_c_werror_flag" ||
8631 test ! -s conftest.err
8632 } && test -s conftest.$ac_objext; then
8633 ac_cv_c_volatile=yes
8634 else
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_cv_c_volatile=no
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8644 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8645 if test $ac_cv_c_volatile = no; then
8647 cat >>confdefs.h <<\_ACEOF
8648 #define volatile
8649 _ACEOF
8653 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8654 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8655 if test "${ac_cv_c_const+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8666 main ()
8668 /* FIXME: Include the comments suggested by Paul. */
8669 #ifndef __cplusplus
8670 /* Ultrix mips cc rejects this. */
8671 typedef int charset[2];
8672 const charset cs;
8673 /* SunOS 4.1.1 cc rejects this. */
8674 char const *const *pcpcc;
8675 char **ppc;
8676 /* NEC SVR4.0.2 mips cc rejects this. */
8677 struct point {int x, y;};
8678 static struct point const zero = {0,0};
8679 /* AIX XL C 1.02.0.0 rejects this.
8680 It does not let you subtract one const X* pointer from another in
8681 an arm of an if-expression whose if-part is not a constant
8682 expression */
8683 const char *g = "string";
8684 pcpcc = &g + (g ? g-g : 0);
8685 /* HPUX 7.0 cc rejects these. */
8686 ++pcpcc;
8687 ppc = (char**) pcpcc;
8688 pcpcc = (char const *const *) ppc;
8689 { /* SCO 3.2v4 cc rejects this. */
8690 char *t;
8691 char const *s = 0 ? (char *) 0 : (char const *) 0;
8693 *t++ = 0;
8694 if (s) return 0;
8696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8697 int x[] = {25, 17};
8698 const int *foo = &x[0];
8699 ++foo;
8701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8702 typedef const int *iptr;
8703 iptr p = 0;
8704 ++p;
8706 { /* AIX XL C 1.02.0.0 rejects this saying
8707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8708 struct s { int j; const int *ap[3]; };
8709 struct s *b; b->j = 5;
8711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8712 const int foo = 10;
8713 if (!foo) return 0;
8715 return !cs[0] && !zero.x;
8716 #endif
8719 return 0;
8721 _ACEOF
8722 rm -f conftest.$ac_objext
8723 if { (ac_try="$ac_compile"
8724 case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_cv_c_const=yes
8740 else
8741 echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_cv_c_const=no
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8750 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8751 if test $ac_cv_c_const = no; then
8753 cat >>confdefs.h <<\_ACEOF
8754 #define const
8755 _ACEOF
8759 { echo "$as_me:$LINENO: checking for void * support" >&5
8760 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8761 if test "${emacs_cv_void_star+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8772 main ()
8774 void * foo;
8776 return 0;
8778 _ACEOF
8779 rm -f conftest.$ac_objext
8780 if { (ac_try="$ac_compile"
8781 case "(($ac_try" in
8782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783 *) ac_try_echo=$ac_try;;
8784 esac
8785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786 (eval "$ac_compile") 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } && {
8793 test -z "$ac_c_werror_flag" ||
8794 test ! -s conftest.err
8795 } && test -s conftest.$ac_objext; then
8796 emacs_cv_void_star=yes
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8801 emacs_cv_void_star=no
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8807 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8808 if test $emacs_cv_void_star = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define POINTER_TYPE void
8811 _ACEOF
8813 else
8814 cat >>confdefs.h <<\_ACEOF
8815 #define POINTER_TYPE char
8816 _ACEOF
8824 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8825 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8826 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8827 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830 cat >conftest.make <<\_ACEOF
8831 SHELL = /bin/sh
8832 all:
8833 @echo '@@@%%%=$(MAKE)=@@@%%%'
8834 _ACEOF
8835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8836 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8837 *@@@%%%=?*=@@@%%%*)
8838 eval ac_cv_prog_make_${ac_make}_set=yes;;
8840 eval ac_cv_prog_make_${ac_make}_set=no;;
8841 esac
8842 rm -f conftest.make
8844 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8845 { echo "$as_me:$LINENO: result: yes" >&5
8846 echo "${ECHO_T}yes" >&6; }
8847 SET_MAKE=
8848 else
8849 { echo "$as_me:$LINENO: result: no" >&5
8850 echo "${ECHO_T}no" >&6; }
8851 SET_MAKE="MAKE=${MAKE-make}"
8855 { echo "$as_me:$LINENO: checking for long file names" >&5
8856 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8857 if test "${ac_cv_sys_long_file_names+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_cv_sys_long_file_names=yes
8861 # Test for long file names in all the places we know might matter:
8862 # . the current directory, where building will happen
8863 # $prefix/lib where we will be installing things
8864 # $exec_prefix/lib likewise
8865 # $TMPDIR if set, where it might want to write temporary files
8866 # /tmp where it might want to write temporary files
8867 # /var/tmp likewise
8868 # /usr/tmp likewise
8869 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8870 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8871 # in the usual case where exec_prefix is '${prefix}'.
8872 case $ac_dir in #(
8873 . | /* | ?:[\\/]*) ;; #(
8874 *) continue;;
8875 esac
8876 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8877 ac_xdir=$ac_dir/cf$$
8878 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8879 ac_tf1=$ac_xdir/conftest9012345
8880 ac_tf2=$ac_xdir/conftest9012346
8881 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8882 ac_cv_sys_long_file_names=no
8883 rm -f -r "$ac_xdir" 2>/dev/null
8884 test $ac_cv_sys_long_file_names = no && break
8885 done
8887 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8888 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8889 if test $ac_cv_sys_long_file_names = yes; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LONG_FILE_NAMES 1
8893 _ACEOF
8898 #### Choose a window system.
8900 { echo "$as_me:$LINENO: checking for X" >&5
8901 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8904 # Check whether --with-x was given.
8905 if test "${with_x+set}" = set; then
8906 withval=$with_x;
8909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8910 if test "x$with_x" = xno; then
8911 # The user explicitly disabled X.
8912 have_x=disabled
8913 else
8914 case $x_includes,$x_libraries in #(
8915 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8916 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8917 { (exit 1); exit 1; }; };; #(
8918 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 # One or both of the vars are not set, and there is no cached value.
8922 ac_x_includes=no ac_x_libraries=no
8923 rm -f -r conftest.dir
8924 if mkdir conftest.dir; then
8925 cd conftest.dir
8926 cat >Imakefile <<'_ACEOF'
8927 incroot:
8928 @echo incroot='${INCROOT}'
8929 usrlibdir:
8930 @echo usrlibdir='${USRLIBDIR}'
8931 libdir:
8932 @echo libdir='${LIBDIR}'
8933 _ACEOF
8934 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8935 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8936 for ac_var in incroot usrlibdir libdir; do
8937 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8938 done
8939 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8940 for ac_extension in a so sl; do
8941 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8942 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8943 ac_im_usrlibdir=$ac_im_libdir; break
8945 done
8946 # Screen out bogus values from the imake configuration. They are
8947 # bogus both because they are the default anyway, and because
8948 # using them would break gcc on systems where it needs fixed includes.
8949 case $ac_im_incroot in
8950 /usr/include) ac_x_includes= ;;
8951 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8952 esac
8953 case $ac_im_usrlibdir in
8954 /usr/lib | /lib) ;;
8955 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8956 esac
8958 cd ..
8959 rm -f -r conftest.dir
8962 # Standard set of common directories for X headers.
8963 # Check X11 before X11Rn because it is often a symlink to the current release.
8964 ac_x_header_dirs='
8965 /usr/X11/include
8966 /usr/X11R6/include
8967 /usr/X11R5/include
8968 /usr/X11R4/include
8970 /usr/include/X11
8971 /usr/include/X11R6
8972 /usr/include/X11R5
8973 /usr/include/X11R4
8975 /usr/local/X11/include
8976 /usr/local/X11R6/include
8977 /usr/local/X11R5/include
8978 /usr/local/X11R4/include
8980 /usr/local/include/X11
8981 /usr/local/include/X11R6
8982 /usr/local/include/X11R5
8983 /usr/local/include/X11R4
8985 /usr/X386/include
8986 /usr/x386/include
8987 /usr/XFree86/include/X11
8989 /usr/include
8990 /usr/local/include
8991 /usr/unsupported/include
8992 /usr/athena/include
8993 /usr/local/x11r5/include
8994 /usr/lpp/Xamples/include
8996 /usr/openwin/include
8997 /usr/openwin/share/include'
8999 if test "$ac_x_includes" = no; then
9000 # Guess where to find include files, by looking for Xlib.h.
9001 # First, try using that file with no special directory specified.
9002 cat >conftest.$ac_ext <<_ACEOF
9003 /* confdefs.h. */
9004 _ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 #include <X11/Xlib.h>
9009 _ACEOF
9010 if { (ac_try="$ac_cpp conftest.$ac_ext"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } >/dev/null && {
9023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 }; then
9026 # We can compile using X headers with no special include directory.
9027 ac_x_includes=
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 for ac_dir in $ac_x_header_dirs; do
9033 if test -r "$ac_dir/X11/Xlib.h"; then
9034 ac_x_includes=$ac_dir
9035 break
9037 done
9040 rm -f conftest.err conftest.$ac_ext
9041 fi # $ac_x_includes = no
9043 if test "$ac_x_libraries" = no; then
9044 # Check for the libraries.
9045 # See if we find them without any special options.
9046 # Don't add to $LIBS permanently.
9047 ac_save_LIBS=$LIBS
9048 LIBS="-lX11 $LIBS"
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9055 #include <X11/Xlib.h>
9057 main ()
9059 XrmInitialize ()
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then
9082 LIBS=$ac_save_LIBS
9083 # We can link X programs with no special library path.
9084 ac_x_libraries=
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 LIBS=$ac_save_LIBS
9090 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9092 # Don't even attempt the hair of trying to link an X program!
9093 for ac_extension in a so sl; do
9094 if test -r "$ac_dir/libX11.$ac_extension"; then
9095 ac_x_libraries=$ac_dir
9096 break 2
9098 done
9099 done
9102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9103 conftest$ac_exeext conftest.$ac_ext
9104 fi # $ac_x_libraries = no
9106 case $ac_x_includes,$ac_x_libraries in #(
9107 no,* | *,no | *\'*)
9108 # Didn't find X, or a directory has "'" in its name.
9109 ac_cv_have_x="have_x=no";; #(
9111 # Record where we found X for the cache.
9112 ac_cv_have_x="have_x=yes\
9113 ac_x_includes='$ac_x_includes'\
9114 ac_x_libraries='$ac_x_libraries'"
9115 esac
9117 ;; #(
9118 *) have_x=yes;;
9119 esac
9120 eval "$ac_cv_have_x"
9121 fi # $with_x != no
9123 if test "$have_x" != yes; then
9124 { echo "$as_me:$LINENO: result: $have_x" >&5
9125 echo "${ECHO_T}$have_x" >&6; }
9126 no_x=yes
9127 else
9128 # If each of the values was on the command line, it overrides each guess.
9129 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9130 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9131 # Update the cache value to reflect the command line values.
9132 ac_cv_have_x="have_x=yes\
9133 ac_x_includes='$x_includes'\
9134 ac_x_libraries='$x_libraries'"
9135 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9136 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9139 if test "$no_x" = yes; then
9140 window_system=none
9141 else
9142 window_system=x11
9145 ## Workaround for bug in autoconf <= 2.62.
9146 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9147 ## No need to do anything special for these standard directories.
9148 ## This is an experiment, take it out if it causes problems.
9149 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9151 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9155 if test "${x_libraries}" != NONE; then
9156 if test -n "${x_libraries}"; then
9157 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9158 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9160 x_default_search_path=""
9161 x_search_path=${x_libraries}
9162 if test -z "${x_search_path}"; then
9163 x_search_path=/usr/lib
9165 for x_library in `echo ${x_search_path}: | \
9166 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9167 x_search_path="\
9168 ${x_library}/X11/%L/%T/%N%C%S:\
9169 ${x_library}/X11/%l/%T/%N%C%S:\
9170 ${x_library}/X11/%T/%N%C%S:\
9171 ${x_library}/X11/%L/%T/%N%S:\
9172 ${x_library}/X11/%l/%T/%N%S:\
9173 ${x_library}/X11/%T/%N%S"
9174 if test x"${x_default_search_path}" = x; then
9175 x_default_search_path=${x_search_path}
9176 else
9177 x_default_search_path="${x_search_path}:${x_default_search_path}"
9179 done
9181 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9182 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9185 if test x"${x_includes}" = x; then
9186 bitmapdir=/usr/include/X11/bitmaps
9187 else
9188 # accumulate include directories that have X11 bitmap subdirectories
9189 bmd_acc="dummyval"
9190 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9191 if test -d "${bmd}/X11/bitmaps"; then
9192 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9194 if test -d "${bmd}/bitmaps"; then
9195 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9197 done
9198 if test ${bmd_acc} != "dummyval"; then
9199 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9203 HAVE_NS=no
9204 NS_IMPL_COCOA=no
9205 NS_IMPL_GNUSTEP=no
9206 tmp_CPPFLAGS="$CPPFLAGS"
9207 tmp_CFLAGS="$CFLAGS"
9208 CPPFLAGS="$CPPFLAGS -x objective-c"
9209 CFLAGS="$CFLAGS -x objective-c"
9210 if test "${with_ns}" != no; then
9211 if test "${opsys}" = darwin; then
9212 NS_IMPL_COCOA=yes
9213 ns_appdir=`pwd`/nextstep/Emacs.app
9214 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9215 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9216 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9217 elif test -f $GNUSTEP_CONFIG_FILE; then
9218 NS_IMPL_GNUSTEP=yes
9219 ns_appdir=`pwd`/nextstep/Emacs.app
9220 ns_appbindir=`pwd`/nextstep/Emacs.app
9221 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9222 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9223 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9224 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9225 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9226 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9227 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9228 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9229 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9231 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9232 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9233 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9234 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9238 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9239 else
9240 # Is the header compilable?
9241 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9242 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9250 #include <AppKit/AppKit.h>
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (ac_try="$ac_compile"
9254 case "(($ac_try" in
9255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9256 *) ac_try_echo=$ac_try;;
9257 esac
9258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_header_compiler=yes
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_header_compiler=no
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9279 echo "${ECHO_T}$ac_header_compiler" >&6; }
9281 # Is the header present?
9282 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9283 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <AppKit/AppKit.h>
9291 _ACEOF
9292 if { (ac_try="$ac_cpp conftest.$ac_ext"
9293 case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } >/dev/null && {
9305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9306 test ! -s conftest.err
9307 }; then
9308 ac_header_preproc=yes
9309 else
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_header_preproc=no
9316 rm -f conftest.err conftest.$ac_ext
9317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9318 echo "${ECHO_T}$ac_header_preproc" >&6; }
9320 # So? What about this header?
9321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9322 yes:no: )
9323 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9324 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9326 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9327 ac_header_preproc=yes
9329 no:yes:* )
9330 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9331 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9333 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9335 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9337 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9339 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9344 esac
9345 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9346 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9347 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9352 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9353 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9356 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9357 HAVE_NS=yes
9358 else
9359 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9360 files are missing or cannot be compiled." >&5
9361 echo "$as_me: error: \`--with-ns' was specified, but the include
9362 files are missing or cannot be compiled." >&2;}
9363 { (exit 1); exit 1; }; }
9367 NS_HAVE_NSINTEGER=yes
9368 cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h. */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h. */
9374 #include <Foundation/NSObjCRuntime.h>
9376 main ()
9378 NSInteger i;
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_compile") 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest.$ac_objext; then
9400 ns_have_nsinteger=yes
9401 else
9402 echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9405 ns_have_nsinteger=no
9408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9409 if test $ns_have_nsinteger = no; then
9410 NS_HAVE_NSINTEGER=no
9413 if test "${HAVE_NS}" = yes; then
9414 window_system=nextstep
9415 with_xft=no
9416 with_freetype=no
9417 # set up packaging dirs
9418 exec_prefix=${ns_appbindir}
9419 libexecdir=${ns_appbindir}/libexec
9420 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9421 prefix=${ns_appresdir}
9424 CFLAGS="$tmp_CFLAGS"
9425 CPPFLAGS="$tmp_CPPFLAGS"
9427 case "${window_system}" in
9428 x11 )
9429 HAVE_X_WINDOWS=yes
9430 HAVE_X11=yes
9431 case "${with_x_toolkit}" in
9432 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9433 motif ) USE_X_TOOLKIT=MOTIF ;;
9434 gtk ) with_gtk=yes
9435 USE_X_TOOLKIT=none ;;
9436 no ) USE_X_TOOLKIT=none ;;
9437 * ) USE_X_TOOLKIT=maybe ;;
9438 esac
9440 nextstep | none )
9441 HAVE_X_WINDOWS=no
9442 HAVE_X11=no
9443 USE_X_TOOLKIT=none
9445 esac
9447 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9448 # Extract the first word of "X", so it can be a program name with args.
9449 set dummy X; ac_word=$2
9450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9452 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 if test -n "$HAVE_XSERVER"; then
9456 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9457 else
9458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459 for as_dir in $PATH
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9465 ac_cv_prog_HAVE_XSERVER="true"
9466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9467 break 2
9469 done
9470 done
9471 IFS=$as_save_IFS
9473 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9476 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9477 if test -n "$HAVE_XSERVER"; then
9478 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9479 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9480 else
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9486 if test "$HAVE_XSERVER" = true ||
9487 test -n "$DISPLAY" ||
9488 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9489 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9490 were found. You should install the relevant development files for X
9491 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9492 sure you have development files for image handling, i.e.
9493 tiff, gif, jpeg, png and xpm.
9494 If you are sure you want Emacs compiled without X window support, pass
9495 --without-x
9496 to configure." >&5
9497 echo "$as_me: error: You seem to be running X, but no X development libraries
9498 were found. You should install the relevant development files for X
9499 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9500 sure you have development files for image handling, i.e.
9501 tiff, gif, jpeg, png and xpm.
9502 If you are sure you want Emacs compiled without X window support, pass
9503 --without-x
9504 to configure." >&2;}
9505 { (exit 1); exit 1; }; }
9509 ### If we're using X11, we should use the X menu package.
9510 HAVE_MENUS=no
9511 case ${HAVE_X11} in
9512 yes ) HAVE_MENUS=yes ;;
9513 esac
9515 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9516 # Assume not, until told otherwise.
9517 GNU_MALLOC=yes
9518 doug_lea_malloc=yes
9519 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9520 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9521 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524 cat >conftest.$ac_ext <<_ACEOF
9525 /* confdefs.h. */
9526 _ACEOF
9527 cat confdefs.h >>conftest.$ac_ext
9528 cat >>conftest.$ac_ext <<_ACEOF
9529 /* end confdefs.h. */
9530 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9532 #define malloc_get_state innocuous_malloc_get_state
9534 /* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char malloc_get_state (); below.
9536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9537 <limits.h> exists even on freestanding compilers. */
9539 #ifdef __STDC__
9540 # include <limits.h>
9541 #else
9542 # include <assert.h>
9543 #endif
9545 #undef malloc_get_state
9547 /* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char malloc_get_state ();
9554 /* The GNU C library defines this for functions which it implements
9555 to always fail with ENOSYS. Some functions are actually named
9556 something starting with __ and the normal name is an alias. */
9557 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9558 choke me
9559 #endif
9562 main ()
9564 return malloc_get_state ();
9566 return 0;
9568 _ACEOF
9569 rm -f conftest.$ac_objext conftest$ac_exeext
9570 if { (ac_try="$ac_link"
9571 case "(($ac_try" in
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9574 esac
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_link") 2>conftest.er1
9577 ac_status=$?
9578 grep -v '^ *+' conftest.er1 >conftest.err
9579 rm -f conftest.er1
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest$ac_exeext &&
9586 $as_test_x conftest$ac_exeext; then
9587 ac_cv_func_malloc_get_state=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9592 ac_cv_func_malloc_get_state=no
9595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9596 conftest$ac_exeext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9599 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9600 if test $ac_cv_func_malloc_get_state = yes; then
9602 else
9603 doug_lea_malloc=no
9606 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9607 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9608 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h. */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9619 #define malloc_set_state innocuous_malloc_set_state
9621 /* System header to define __stub macros and hopefully few prototypes,
9622 which can conflict with char malloc_set_state (); below.
9623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624 <limits.h> exists even on freestanding compilers. */
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9632 #undef malloc_set_state
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char malloc_set_state ();
9641 /* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9645 choke me
9646 #endif
9649 main ()
9651 return malloc_set_state ();
9653 return 0;
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9658 case "(($ac_try" in
9659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660 *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663 (eval "$ac_link") 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && {
9670 test -z "$ac_c_werror_flag" ||
9671 test ! -s conftest.err
9672 } && test -s conftest$ac_exeext &&
9673 $as_test_x conftest$ac_exeext; then
9674 ac_cv_func_malloc_set_state=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_func_malloc_set_state=no
9682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9683 conftest$ac_exeext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9686 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9687 if test $ac_cv_func_malloc_set_state = yes; then
9689 else
9690 doug_lea_malloc=no
9693 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9694 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9695 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698 cat >conftest.$ac_ext <<_ACEOF
9699 /* confdefs.h. */
9700 _ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 extern void (* __after_morecore_hook)();
9706 main ()
9708 __after_morecore_hook = 0
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (ac_try="$ac_link"
9715 case "(($ac_try" in
9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9718 esac
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9721 ac_status=$?
9722 grep -v '^ *+' conftest.er1 >conftest.err
9723 rm -f conftest.er1
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 emacs_cv_var___after_morecore_hook=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 emacs_cv_var___after_morecore_hook=no
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9742 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9743 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9744 if test $emacs_cv_var___after_morecore_hook = no; then
9745 doug_lea_malloc=no
9747 if test "${system_malloc}" = "yes"; then
9748 GNU_MALLOC=no
9749 GNU_MALLOC_reason="
9750 (The GNU allocators don't work with this system configuration.)"
9752 if test "$doug_lea_malloc" = "yes" ; then
9753 if test "$GNU_MALLOC" = yes ; then
9754 GNU_MALLOC_reason="
9755 (Using Doug Lea's new malloc from the GNU C Library.)"
9758 cat >>confdefs.h <<\_ACEOF
9759 #define DOUG_LEA_MALLOC 1
9760 _ACEOF
9764 if test x"${REL_ALLOC}" = x; then
9765 REL_ALLOC=${GNU_MALLOC}
9771 for ac_header in stdlib.h unistd.h
9773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_res=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9783 else
9784 # Is the header compilable?
9785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_compile") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest.$ac_objext; then
9813 ac_header_compiler=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 ac_header_compiler=no
9821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9823 echo "${ECHO_T}$ac_header_compiler" >&6; }
9825 # Is the header present?
9826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 #include <$ac_header>
9835 _ACEOF
9836 if { (ac_try="$ac_cpp conftest.$ac_ext"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } >/dev/null && {
9849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 }; then
9852 ac_header_preproc=yes
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 ac_header_preproc=no
9860 rm -f conftest.err conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9862 echo "${ECHO_T}$ac_header_preproc" >&6; }
9864 # So? What about this header?
9865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9866 yes:no: )
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9871 ac_header_preproc=yes
9873 no:yes:* )
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9888 esac
9889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894 eval "$as_ac_Header=\$ac_header_preproc"
9896 ac_res=`eval echo '${'$as_ac_Header'}'`
9897 { echo "$as_me:$LINENO: result: $ac_res" >&5
9898 echo "${ECHO_T}$ac_res" >&6; }
9901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9902 cat >>confdefs.h <<_ACEOF
9903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9904 _ACEOF
9908 done
9911 for ac_func in getpagesize
9913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9927 #define $ac_func innocuous_$ac_func
9929 /* System header to define __stub macros and hopefully few prototypes,
9930 which can conflict with char $ac_func (); below.
9931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9932 <limits.h> exists even on freestanding compilers. */
9934 #ifdef __STDC__
9935 # include <limits.h>
9936 #else
9937 # include <assert.h>
9938 #endif
9940 #undef $ac_func
9942 /* Override any GCC internal prototype to avoid an error.
9943 Use char because int might match the return type of a GCC
9944 builtin and then its argument prototype would still apply. */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char $ac_func ();
9949 /* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952 #if defined __stub_$ac_func || defined __stub___$ac_func
9953 choke me
9954 #endif
9957 main ()
9959 return $ac_func ();
9961 return 0;
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_link") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest$ac_exeext &&
9981 $as_test_x conftest$ac_exeext; then
9982 eval "$as_ac_var=yes"
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 eval "$as_ac_var=no"
9990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9991 conftest$ac_exeext conftest.$ac_ext
9993 ac_res=`eval echo '${'$as_ac_var'}'`
9994 { echo "$as_me:$LINENO: result: $ac_res" >&5
9995 echo "${ECHO_T}$ac_res" >&6; }
9996 if test `eval echo '${'$as_ac_var'}'` = yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9999 _ACEOF
10002 done
10004 { echo "$as_me:$LINENO: checking for working mmap" >&5
10005 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10006 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 else
10009 if test "$cross_compiling" = yes; then
10010 ac_cv_func_mmap_fixed_mapped=no
10011 else
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 $ac_includes_default
10019 /* malloc might have been renamed as rpl_malloc. */
10020 #undef malloc
10022 /* Thanks to Mike Haertel and Jim Avera for this test.
10023 Here is a matrix of mmap possibilities:
10024 mmap private not fixed
10025 mmap private fixed at somewhere currently unmapped
10026 mmap private fixed at somewhere already mapped
10027 mmap shared not fixed
10028 mmap shared fixed at somewhere currently unmapped
10029 mmap shared fixed at somewhere already mapped
10030 For private mappings, we should verify that changes cannot be read()
10031 back from the file, nor mmap's back from the file at a different
10032 address. (There have been systems where private was not correctly
10033 implemented like the infamous i386 svr4.0, and systems where the
10034 VM page cache was not coherent with the file system buffer cache
10035 like early versions of FreeBSD and possibly contemporary NetBSD.)
10036 For shared mappings, we should conversely verify that changes get
10037 propagated back to all the places they're supposed to be.
10039 Grep wants private fixed already mapped.
10040 The main things grep needs to know about mmap are:
10041 * does it exist and is it safe to write into the mmap'd area
10042 * how to use it (BSD variants) */
10044 #include <fcntl.h>
10045 #include <sys/mman.h>
10047 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10048 char *malloc ();
10049 #endif
10051 /* This mess was copied from the GNU getpagesize.h. */
10052 #ifndef HAVE_GETPAGESIZE
10053 /* Assume that all systems that can run configure have sys/param.h. */
10054 # ifndef HAVE_SYS_PARAM_H
10055 # define HAVE_SYS_PARAM_H 1
10056 # endif
10058 # ifdef _SC_PAGESIZE
10059 # define getpagesize() sysconf(_SC_PAGESIZE)
10060 # else /* no _SC_PAGESIZE */
10061 # ifdef HAVE_SYS_PARAM_H
10062 # include <sys/param.h>
10063 # ifdef EXEC_PAGESIZE
10064 # define getpagesize() EXEC_PAGESIZE
10065 # else /* no EXEC_PAGESIZE */
10066 # ifdef NBPG
10067 # define getpagesize() NBPG * CLSIZE
10068 # ifndef CLSIZE
10069 # define CLSIZE 1
10070 # endif /* no CLSIZE */
10071 # else /* no NBPG */
10072 # ifdef NBPC
10073 # define getpagesize() NBPC
10074 # else /* no NBPC */
10075 # ifdef PAGESIZE
10076 # define getpagesize() PAGESIZE
10077 # endif /* PAGESIZE */
10078 # endif /* no NBPC */
10079 # endif /* no NBPG */
10080 # endif /* no EXEC_PAGESIZE */
10081 # else /* no HAVE_SYS_PARAM_H */
10082 # define getpagesize() 8192 /* punt totally */
10083 # endif /* no HAVE_SYS_PARAM_H */
10084 # endif /* no _SC_PAGESIZE */
10086 #endif /* no HAVE_GETPAGESIZE */
10089 main ()
10091 char *data, *data2, *data3;
10092 int i, pagesize;
10093 int fd;
10095 pagesize = getpagesize ();
10097 /* First, make a file with some known garbage in it. */
10098 data = (char *) malloc (pagesize);
10099 if (!data)
10100 return 1;
10101 for (i = 0; i < pagesize; ++i)
10102 *(data + i) = rand ();
10103 umask (0);
10104 fd = creat ("conftest.mmap", 0600);
10105 if (fd < 0)
10106 return 1;
10107 if (write (fd, data, pagesize) != pagesize)
10108 return 1;
10109 close (fd);
10111 /* Next, try to mmap the file at a fixed address which already has
10112 something else allocated at it. If we can, also make sure that
10113 we see the same garbage. */
10114 fd = open ("conftest.mmap", O_RDWR);
10115 if (fd < 0)
10116 return 1;
10117 data2 = (char *) malloc (2 * pagesize);
10118 if (!data2)
10119 return 1;
10120 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10121 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10122 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10123 return 1;
10124 for (i = 0; i < pagesize; ++i)
10125 if (*(data + i) != *(data2 + i))
10126 return 1;
10128 /* Finally, make sure that changes to the mapped area do not
10129 percolate back to the file as seen by read(). (This is a bug on
10130 some variants of i386 svr4.0.) */
10131 for (i = 0; i < pagesize; ++i)
10132 *(data2 + i) = *(data2 + i) + 1;
10133 data3 = (char *) malloc (pagesize);
10134 if (!data3)
10135 return 1;
10136 if (read (fd, data3, pagesize) != pagesize)
10137 return 1;
10138 for (i = 0; i < pagesize; ++i)
10139 if (*(data + i) != *(data3 + i))
10140 return 1;
10141 close (fd);
10142 return 0;
10144 _ACEOF
10145 rm -f conftest$ac_exeext
10146 if { (ac_try="$ac_link"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150 esac
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_link") 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_func_mmap_fixed_mapped=yes
10166 else
10167 echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ( exit $ac_status )
10172 ac_cv_func_mmap_fixed_mapped=no
10174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10180 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_MMAP 1
10185 _ACEOF
10188 rm -f conftest.mmap
10190 if test $use_mmap_for_buffers = yes; then
10191 REL_ALLOC=no
10194 LIBS="$libsrc_libs $LIBS"
10197 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10198 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10199 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 ac_check_lib_save_LIBS=$LIBS
10203 LIBS="-ldnet $LIBS"
10204 cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h. */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10214 #ifdef __cplusplus
10215 extern "C"
10216 #endif
10217 char dnet_ntoa ();
10219 main ()
10221 return dnet_ntoa ();
10223 return 0;
10225 _ACEOF
10226 rm -f conftest.$ac_objext conftest$ac_exeext
10227 if { (ac_try="$ac_link"
10228 case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231 esac
10232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_link") 2>conftest.er1
10234 ac_status=$?
10235 grep -v '^ *+' conftest.er1 >conftest.err
10236 rm -f conftest.er1
10237 cat conftest.err >&5
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); } && {
10240 test -z "$ac_c_werror_flag" ||
10241 test ! -s conftest.err
10242 } && test -s conftest$ac_exeext &&
10243 $as_test_x conftest$ac_exeext; then
10244 ac_cv_lib_dnet_dnet_ntoa=yes
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_cv_lib_dnet_dnet_ntoa=no
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 LIBS=$ac_check_lib_save_LIBS
10256 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10257 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10258 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_LIBDNET 1
10261 _ACEOF
10263 LIBS="-ldnet $LIBS"
10268 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10269 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10270 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lXbsd $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10284 main ()
10286 return main ();
10288 return 0;
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest$ac_exeext &&
10308 $as_test_x conftest$ac_exeext; then
10309 ac_cv_lib_Xbsd_main=yes
10310 else
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ac_cv_lib_Xbsd_main=no
10317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10322 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10323 if test $ac_cv_lib_Xbsd_main = yes; then
10324 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10329 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10330 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10331 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 ac_check_lib_save_LIBS=$LIBS
10335 LIBS="-lpthreads $LIBS"
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h. */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char cma_open ();
10351 main ()
10353 return cma_open ();
10355 return 0;
10357 _ACEOF
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>conftest.er1
10366 ac_status=$?
10367 grep -v '^ *+' conftest.er1 >conftest.err
10368 rm -f conftest.er1
10369 cat conftest.err >&5
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && {
10372 test -z "$ac_c_werror_flag" ||
10373 test ! -s conftest.err
10374 } && test -s conftest$ac_exeext &&
10375 $as_test_x conftest$ac_exeext; then
10376 ac_cv_lib_pthreads_cma_open=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10381 ac_cv_lib_pthreads_cma_open=no
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10389 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10390 if test $ac_cv_lib_pthreads_cma_open = yes; then
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_LIBPTHREADS 1
10393 _ACEOF
10395 LIBS="-lpthreads $LIBS"
10401 case ${host_os} in
10402 aix*)
10403 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10404 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10405 if test "${gdb_cv_bigtoc+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10409 case $GCC in
10410 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10411 *) gdb_cv_bigtoc=-bbigtoc ;;
10412 esac
10414 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10415 cat >conftest.$ac_ext <<_ACEOF
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10423 main ()
10425 int i;
10427 return 0;
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437 (eval "$ac_link") 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } && {
10444 test -z "$ac_c_werror_flag" ||
10445 test ! -s conftest.err
10446 } && test -s conftest$ac_exeext &&
10447 $as_test_x conftest$ac_exeext; then
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 gdb_cv_bigtoc=
10456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10457 conftest$ac_exeext conftest.$ac_ext
10460 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10461 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10463 esac
10465 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10466 # used for the tests that follow. We set them back to REAL_CFLAGS and
10467 # REAL_CPPFLAGS later on.
10469 REAL_CPPFLAGS="$CPPFLAGS"
10471 if test "${HAVE_X11}" = "yes"; then
10472 DEFS="$C_SWITCH_X_SITE $DEFS"
10473 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10474 LIBS="$LIBX $LIBS"
10475 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10476 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10478 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10479 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10480 # but it's more convenient here to set LD_RUN_PATH
10481 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10482 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10483 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10484 export LD_RUN_PATH
10487 if test "${opsys}" = "gnu-linux"; then
10488 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10489 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10490 cat >conftest.$ac_ext <<_ACEOF
10491 /* confdefs.h. */
10492 _ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10498 main ()
10500 XOpenDisplay ("foo");
10502 return 0;
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (ac_try="$ac_link"
10507 case "(($ac_try" in
10508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10509 *) ac_try_echo=$ac_try;;
10510 esac
10511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10512 (eval "$ac_link") 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } && {
10519 test -z "$ac_c_werror_flag" ||
10520 test ! -s conftest.err
10521 } && test -s conftest$ac_exeext &&
10522 $as_test_x conftest$ac_exeext; then
10523 xlinux_first_failure=no
10524 else
10525 echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10528 xlinux_first_failure=yes
10531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10532 conftest$ac_exeext conftest.$ac_ext
10533 if test "${xlinux_first_failure}" = "yes"; then
10534 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10535 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10536 OLD_CPPFLAGS="$CPPFLAGS"
10537 OLD_LIBS="$LIBS"
10538 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10539 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10540 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10541 LIBS="$LIBS -b i486-linuxaout"
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10550 main ()
10552 XOpenDisplay ("foo");
10554 return 0;
10556 _ACEOF
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10565 ac_status=$?
10566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 xlinux_second_failure=no
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 xlinux_second_failure=yes
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585 if test "${xlinux_second_failure}" = "yes"; then
10586 # If we get the same failure with -b, there is no use adding -b.
10587 # So take it out. This plays safe.
10588 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10589 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10590 CPPFLAGS="$OLD_CPPFLAGS"
10591 LIBS="$OLD_LIBS"
10592 { echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6; }
10594 else
10595 { echo "$as_me:$LINENO: result: yes" >&5
10596 echo "${ECHO_T}yes" >&6; }
10598 else
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10604 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10605 # header files included from there.
10606 { echo "$as_me:$LINENO: checking for Xkb" >&5
10607 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <X11/Xlib.h>
10615 #include <X11/XKBlib.h>
10617 main ()
10619 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10621 return 0;
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest$ac_exeext &&
10641 $as_test_x conftest$ac_exeext; then
10642 emacs_xkb=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10647 emacs_xkb=no
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651 conftest$ac_exeext conftest.$ac_ext
10652 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10653 echo "${ECHO_T}$emacs_xkb" >&6; }
10654 if test $emacs_xkb = yes; then
10656 cat >>confdefs.h <<\_ACEOF
10657 #define HAVE_XKBGETKEYBOARD 1
10658 _ACEOF
10666 for ac_func in XrmSetDatabase XScreenResourceString \
10667 XScreenNumberOfScreen XSetWMProtocols
10669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h. */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683 #define $ac_func innocuous_$ac_func
10685 /* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10696 #undef $ac_func
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char $ac_func ();
10705 /* The GNU C library defines this for functions which it implements
10706 to always fail with ENOSYS. Some functions are actually named
10707 something starting with __ and the normal name is an alias. */
10708 #if defined __stub_$ac_func || defined __stub___$ac_func
10709 choke me
10710 #endif
10713 main ()
10715 return $ac_func ();
10717 return 0;
10719 _ACEOF
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (ac_try="$ac_link"
10722 case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725 esac
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_link") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest$ac_exeext &&
10737 $as_test_x conftest$ac_exeext; then
10738 eval "$as_ac_var=yes"
10739 else
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 eval "$as_ac_var=no"
10746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10747 conftest$ac_exeext conftest.$ac_ext
10749 ac_res=`eval echo '${'$as_ac_var'}'`
10750 { echo "$as_me:$LINENO: result: $ac_res" >&5
10751 echo "${ECHO_T}$ac_res" >&6; }
10752 if test `eval echo '${'$as_ac_var'}'` = yes; then
10753 cat >>confdefs.h <<_ACEOF
10754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10755 _ACEOF
10758 done
10762 if test "${window_system}" = "x11"; then
10763 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10764 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10765 if test "${emacs_cv_x11_version_6+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768 cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h. */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10774 #include <X11/Xlib.h>
10776 main ()
10778 #if XlibSpecificationRelease < 6
10779 fail;
10780 #endif
10783 return 0;
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 emacs_cv_x11_version_6=yes
10805 else
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 emacs_cv_x11_version_6=no
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10816 if test $emacs_cv_x11_version_6 = yes; then
10817 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10818 echo "${ECHO_T}6 or newer" >&6; }
10820 cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_X11R6 1
10822 _ACEOF
10824 else
10825 { echo "$as_me:$LINENO: result: before 6" >&5
10826 echo "${ECHO_T}before 6" >&6; }
10831 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10832 HAVE_RSVG=no
10833 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10834 if test "${with_rsvg}" != "no"; then
10835 RSVG_REQUIRED=2.11.0
10836 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10839 succeeded=no
10841 # Extract the first word of "pkg-config", so it can be a program name with args.
10842 set dummy pkg-config; ac_word=$2
10843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848 case $PKG_CONFIG in
10849 [\\/]* | ?:[\\/]*)
10850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854 for as_dir in $PATH
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10862 break 2
10864 done
10865 done
10866 IFS=$as_save_IFS
10868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10870 esac
10872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10873 if test -n "$PKG_CONFIG"; then
10874 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10875 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10876 else
10877 { echo "$as_me:$LINENO: result: no" >&5
10878 echo "${ECHO_T}no" >&6; }
10883 if test "$PKG_CONFIG" = "no" ; then
10885 else
10886 PKG_CONFIG_MIN_VERSION=0.9.0
10887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10888 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10889 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10891 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10892 { echo "$as_me:$LINENO: result: yes" >&5
10893 echo "${ECHO_T}yes" >&6; }
10894 succeeded=yes
10896 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10897 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10898 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10899 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10900 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10902 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10903 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10904 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10906 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10907 else
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10910 RSVG_CFLAGS=""
10911 RSVG_LIBS=""
10912 ## If we have a custom action on failure, don't print errors, but
10913 ## do set a variable so people can do so.
10914 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10920 else
10921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10926 if test $succeeded = yes; then
10928 else
10935 if test ".${RSVG_CFLAGS}" != "."; then
10936 HAVE_RSVG=yes
10938 cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_RSVG 1
10940 _ACEOF
10942 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10943 LIBS="$RSVG_LIBS $LIBS"
10949 HAVE_GTK=no
10950 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10951 GLIB_REQUIRED=2.6
10952 GTK_REQUIRED=2.6
10953 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10956 succeeded=no
10958 # Extract the first word of "pkg-config", so it can be a program name with args.
10959 set dummy pkg-config; ac_word=$2
10960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10962 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965 case $PKG_CONFIG in
10966 [\\/]* | ?:[\\/]*)
10967 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10977 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10981 done
10982 done
10983 IFS=$as_save_IFS
10985 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10987 esac
10989 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10990 if test -n "$PKG_CONFIG"; then
10991 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10992 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10993 else
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
11000 if test "$PKG_CONFIG" = "no" ; then
11001 pkg_check_gtk=no
11002 else
11003 PKG_CONFIG_MIN_VERSION=0.9.0
11004 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11005 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11006 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11008 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11009 { echo "$as_me:$LINENO: result: yes" >&5
11010 echo "${ECHO_T}yes" >&6; }
11011 succeeded=yes
11013 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11014 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11015 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11016 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11017 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11019 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11020 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11021 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11022 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11023 echo "${ECHO_T}$GTK_LIBS" >&6; }
11024 else
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11027 GTK_CFLAGS=""
11028 GTK_LIBS=""
11029 ## If we have a custom action on failure, don't print errors, but
11030 ## do set a variable so people can do so.
11031 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11037 else
11038 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11039 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11043 if test $succeeded = yes; then
11044 pkg_check_gtk=yes
11045 else
11046 pkg_check_gtk=no
11049 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11051 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11052 { (exit 1); exit 1; }; }
11057 if test x"$pkg_check_gtk" = xyes; then
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11064 GTK_COMPILES=no
11066 for ac_func in gtk_main
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11095 #undef $ac_func
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char $ac_func ();
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11108 choke me
11109 #endif
11112 main ()
11114 return $ac_func ();
11116 return 0;
11118 _ACEOF
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 eval "$as_ac_var=yes"
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 eval "$as_ac_var=no"
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11148 ac_res=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11154 _ACEOF
11155 GTK_COMPILES=yes
11157 done
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 if test "$USE_X_TOOLKIT" != "maybe"; then
11161 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11162 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11163 { (exit 1); exit 1; }; };
11165 else
11166 HAVE_GTK=yes
11168 cat >>confdefs.h <<\_ACEOF
11169 #define USE_GTK 1
11170 _ACEOF
11172 USE_X_TOOLKIT=none
11173 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11175 else
11176 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11177 closing open displays. This is no problem if you just use
11178 one display, but if you use more than one and close one of them
11179 Emacs may crash." >&5
11180 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11181 closing open displays. This is no problem if you just use
11182 one display, but if you use more than one and close one of them
11183 Emacs may crash." >&2;}
11184 sleep 3
11191 if test "${HAVE_GTK}" = "yes"; then
11193 if test "$with_toolkit_scroll_bars" != no; then
11194 with_toolkit_scroll_bars=yes
11197 HAVE_GTK_MULTIDISPLAY=no
11199 for ac_func in gdk_display_open
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207 cat >conftest.$ac_ext <<_ACEOF
11208 /* confdefs.h. */
11209 _ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215 #define $ac_func innocuous_$ac_func
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11222 #ifdef __STDC__
11223 # include <limits.h>
11224 #else
11225 # include <assert.h>
11226 #endif
11228 #undef $ac_func
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char $ac_func ();
11237 /* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240 #if defined __stub_$ac_func || defined __stub___$ac_func
11241 choke me
11242 #endif
11245 main ()
11247 return $ac_func ();
11249 return 0;
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest$ac_exeext &&
11269 $as_test_x conftest$ac_exeext; then
11270 eval "$as_ac_var=yes"
11271 else
11272 echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11275 eval "$as_ac_var=no"
11278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11279 conftest$ac_exeext conftest.$ac_ext
11281 ac_res=`eval echo '${'$as_ac_var'}'`
11282 { echo "$as_me:$LINENO: result: $ac_res" >&5
11283 echo "${ECHO_T}$ac_res" >&6; }
11284 if test `eval echo '${'$as_ac_var'}'` = yes; then
11285 cat >>confdefs.h <<_ACEOF
11286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 _ACEOF
11288 HAVE_GTK_MULTIDISPLAY=yes
11290 done
11292 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11294 cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_GTK_MULTIDISPLAY 1
11296 _ACEOF
11300 HAVE_GTK_FILE_SELECTION=no
11302 for ac_func in gtk_file_selection_new
11304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 else
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11318 #define $ac_func innocuous_$ac_func
11320 /* System header to define __stub macros and hopefully few prototypes,
11321 which can conflict with char $ac_func (); below.
11322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11323 <limits.h> exists even on freestanding compilers. */
11325 #ifdef __STDC__
11326 # include <limits.h>
11327 #else
11328 # include <assert.h>
11329 #endif
11331 #undef $ac_func
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char $ac_func ();
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined __stub_$ac_func || defined __stub___$ac_func
11344 choke me
11345 #endif
11348 main ()
11350 return $ac_func ();
11352 return 0;
11354 _ACEOF
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (ac_try="$ac_link"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360 esac
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_link") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest$ac_exeext &&
11372 $as_test_x conftest$ac_exeext; then
11373 eval "$as_ac_var=yes"
11374 else
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 eval "$as_ac_var=no"
11381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11382 conftest$ac_exeext conftest.$ac_ext
11384 ac_res=`eval echo '${'$as_ac_var'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387 if test `eval echo '${'$as_ac_var'}'` = yes; then
11388 cat >>confdefs.h <<_ACEOF
11389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11390 _ACEOF
11391 HAVE_GTK_FILE_SELECTION=yes
11393 done
11396 HAVE_GTK_FILE_CHOOSER=no
11398 for ac_func in gtk_file_chooser_dialog_new
11400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define $ac_func innocuous_$ac_func
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char $ac_func (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11421 #ifdef __STDC__
11422 # include <limits.h>
11423 #else
11424 # include <assert.h>
11425 #endif
11427 #undef $ac_func
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char $ac_func ();
11436 /* The GNU C library defines this for functions which it implements
11437 to always fail with ENOSYS. Some functions are actually named
11438 something starting with __ and the normal name is an alias. */
11439 #if defined __stub_$ac_func || defined __stub___$ac_func
11440 choke me
11441 #endif
11444 main ()
11446 return $ac_func ();
11448 return 0;
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (ac_try="$ac_link"
11453 case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456 esac
11457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_link") 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && {
11465 test -z "$ac_c_werror_flag" ||
11466 test ! -s conftest.err
11467 } && test -s conftest$ac_exeext &&
11468 $as_test_x conftest$ac_exeext; then
11469 eval "$as_ac_var=yes"
11470 else
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11480 ac_res=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11486 _ACEOF
11487 HAVE_GTK_FILE_CHOOSER=yes
11489 done
11492 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11493 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_GTK_FILE_BOTH 1
11497 _ACEOF
11501 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 HAVE_GTK_AND_PTHREAD=no
11504 for ac_header in pthread.h
11506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 ac_res=`eval echo '${'$as_ac_Header'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515 echo "${ECHO_T}$ac_res" >&6; }
11516 else
11517 # Is the header compilable?
11518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 $ac_includes_default
11527 #include <$ac_header>
11528 _ACEOF
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533 *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_compile") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest.$ac_objext; then
11546 ac_header_compiler=yes
11547 else
11548 echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 ac_header_compiler=no
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11556 echo "${ECHO_T}$ac_header_compiler" >&6; }
11558 # Is the header present?
11559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <$ac_header>
11568 _ACEOF
11569 if { (ac_try="$ac_cpp conftest.$ac_ext"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } >/dev/null && {
11582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 }; then
11585 ac_header_preproc=yes
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_header_preproc=no
11593 rm -f conftest.err conftest.$ac_ext
11594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595 echo "${ECHO_T}$ac_header_preproc" >&6; }
11597 # So? What about this header?
11598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 yes:no: )
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11606 no:yes:* )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11621 esac
11622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627 eval "$as_ac_Header=\$ac_header_preproc"
11629 ac_res=`eval echo '${'$as_ac_Header'}'`
11630 { echo "$as_me:$LINENO: result: $ac_res" >&5
11631 echo "${ECHO_T}$ac_res" >&6; }
11634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11635 cat >>confdefs.h <<_ACEOF
11636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11637 _ACEOF
11641 done
11643 if test "$ac_cv_header_pthread_h"; then
11644 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11645 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11646 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-lpthread $LIBS"
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char pthread_self ();
11666 main ()
11668 return pthread_self ();
11670 return 0;
11672 _ACEOF
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678 esac
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest$ac_exeext &&
11690 $as_test_x conftest$ac_exeext; then
11691 ac_cv_lib_pthread_pthread_self=yes
11692 else
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_lib_pthread_pthread_self=no
11699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11703 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11704 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11705 if test $ac_cv_lib_pthread_pthread_self = yes; then
11706 HAVE_GTK_AND_PTHREAD=yes
11710 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11711 case "${canonical}" in
11712 *-hpux*) ;;
11713 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11714 esac
11716 cat >>confdefs.h <<\_ACEOF
11717 #define HAVE_GTK_AND_PTHREAD 1
11718 _ACEOF
11724 HAVE_DBUS=no
11725 if test "${with_dbus}" = "yes"; then
11727 succeeded=no
11729 # Extract the first word of "pkg-config", so it can be a program name with args.
11730 set dummy pkg-config; ac_word=$2
11731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736 case $PKG_CONFIG in
11737 [\\/]* | ?:[\\/]*)
11738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 break 2
11752 done
11753 done
11754 IFS=$as_save_IFS
11756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11758 esac
11760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11761 if test -n "$PKG_CONFIG"; then
11762 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11763 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11764 else
11765 { echo "$as_me:$LINENO: result: no" >&5
11766 echo "${ECHO_T}no" >&6; }
11771 if test "$PKG_CONFIG" = "no" ; then
11772 HAVE_DBUS=no
11773 else
11774 PKG_CONFIG_MIN_VERSION=0.9.0
11775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11776 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11777 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11779 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11780 { echo "$as_me:$LINENO: result: yes" >&5
11781 echo "${ECHO_T}yes" >&6; }
11782 succeeded=yes
11784 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11785 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11786 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11787 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11788 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11790 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11791 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11792 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11793 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11794 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11795 else
11796 { echo "$as_me:$LINENO: result: no" >&5
11797 echo "${ECHO_T}no" >&6; }
11798 DBUS_CFLAGS=""
11799 DBUS_LIBS=""
11800 ## If we have a custom action on failure, don't print errors, but
11801 ## do set a variable so people can do so.
11802 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11808 else
11809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11814 if test $succeeded = yes; then
11815 HAVE_DBUS=yes
11816 else
11817 HAVE_DBUS=no
11820 if test "$HAVE_DBUS" = yes; then
11822 cat >>confdefs.h <<\_ACEOF
11823 #define HAVE_DBUS 1
11824 _ACEOF
11829 HAVE_XAW3D=no
11830 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11831 if test "$with_xaw3d" != no; then
11832 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11833 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11834 if test "${emacs_cv_xaw3d+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837 cat >conftest.$ac_ext <<_ACEOF
11838 /* confdefs.h. */
11839 _ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11844 #include <X11/Intrinsic.h>
11845 #include <X11/Xaw3d/Simple.h>
11847 main ()
11851 return 0;
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (ac_try="$ac_link"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_link") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest$ac_exeext &&
11871 $as_test_x conftest$ac_exeext; then
11872 emacs_cv_xaw3d=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 emacs_cv_xaw3d=no
11880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11881 conftest$ac_exeext conftest.$ac_ext
11884 else
11885 emacs_cv_xaw3d=no
11887 if test $emacs_cv_xaw3d = yes; then
11888 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11889 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11890 USE_X_TOOLKIT=LUCID
11891 HAVE_XAW3D=yes
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_XAW3D 1
11895 _ACEOF
11897 else
11898 { echo "$as_me:$LINENO: result: no" >&5
11899 echo "${ECHO_T}no" >&6; }
11900 { echo "$as_me:$LINENO: checking for libXaw" >&5
11901 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11902 if test "${emacs_cv_xaw+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11912 #include <X11/Intrinsic.h>
11913 #include <X11/Xaw/Simple.h>
11915 main ()
11919 return 0;
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927 esac
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } && {
11936 test -z "$ac_c_werror_flag" ||
11937 test ! -s conftest.err
11938 } && test -s conftest$ac_exeext &&
11939 $as_test_x conftest$ac_exeext; then
11940 emacs_cv_xaw=yes
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 emacs_cv_xaw=no
11948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949 conftest$ac_exeext conftest.$ac_ext
11952 if test $emacs_cv_xaw = yes; then
11953 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11954 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11955 USE_X_TOOLKIT=LUCID
11956 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11957 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11958 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11959 { (exit 1); exit 1; }; }
11960 else
11961 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11962 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11963 USE_X_TOOLKIT=none
11968 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11970 if test "${USE_X_TOOLKIT}" != "none"; then
11971 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11972 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11973 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982 #include <X11/Intrinsic.h>
11984 main ()
11986 #if XtSpecificationRelease < 6
11987 fail;
11988 #endif
11991 return 0;
11993 _ACEOF
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (ac_try="$ac_link"
11996 case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_link") 2>conftest.er1
12002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest$ac_exeext &&
12011 $as_test_x conftest$ac_exeext; then
12012 emacs_cv_x11_toolkit_version_6=yes
12013 else
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 emacs_cv_x11_toolkit_version_6=no
12020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12024 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12025 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12026 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12027 echo "${ECHO_T}6 or newer" >&6; }
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_X11XTR6 1
12031 _ACEOF
12033 else
12034 { echo "$as_me:$LINENO: result: before 6" >&5
12035 echo "${ECHO_T}before 6" >&6; }
12038 OLDLIBS="$LIBS"
12039 if test x$HAVE_X11XTR6 = xyes; then
12040 LIBS="-lXt -lSM -lICE $LIBS"
12041 else
12042 LIBS="-lXt $LIBS"
12045 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12046 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXmu $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 XmuConvertStandardSelection ();
12067 main ()
12069 return XmuConvertStandardSelection ();
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_Xmu_XmuConvertStandardSelection=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_Xmu_XmuConvertStandardSelection=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_Xmu_XmuConvertStandardSelection" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12106 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12107 cat >>confdefs.h <<_ACEOF
12108 #define HAVE_LIBXMU 1
12109 _ACEOF
12111 LIBS="-lXmu $LIBS"
12115 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12118 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12119 if test "${HAVE_X11}" = "yes"; then
12120 if test "${USE_X_TOOLKIT}" != "none"; then
12122 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12123 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12124 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-lXext $LIBS"
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char XShapeQueryExtension ();
12144 main ()
12146 return XShapeQueryExtension ();
12148 return 0;
12150 _ACEOF
12151 rm -f conftest.$ac_objext conftest$ac_exeext
12152 if { (ac_try="$ac_link"
12153 case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } && {
12165 test -z "$ac_c_werror_flag" ||
12166 test ! -s conftest.err
12167 } && test -s conftest$ac_exeext &&
12168 $as_test_x conftest$ac_exeext; then
12169 ac_cv_lib_Xext_XShapeQueryExtension=yes
12170 else
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_lib_Xext_XShapeQueryExtension=no
12177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12182 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12183 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12184 cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBXEXT 1
12186 _ACEOF
12188 LIBS="-lXext $LIBS"
12195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12196 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12197 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12198 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201 cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h. */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 #include <Xm/Xm.h>
12209 main ()
12211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12212 int x = 5;
12213 #else
12214 Motif version prior to 2.1.
12215 #endif
12217 return 0;
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (ac_try="$ac_compile"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_compile") 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest.$ac_objext; then
12237 emacs_cv_motif_version_2_1=yes
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12242 emacs_cv_motif_version_2_1=no
12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12248 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12249 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12250 if test $emacs_cv_motif_version_2_1 = yes; then
12251 HAVE_LIBXP=no
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_MOTIF_2_1 1
12255 _ACEOF
12257 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12258 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12259 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 else
12262 ac_check_lib_save_LIBS=$LIBS
12263 LIBS="-lXp $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h. */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274 #ifdef __cplusplus
12275 extern "C"
12276 #endif
12277 char XpCreateContext ();
12279 main ()
12281 return XpCreateContext ();
12283 return 0;
12285 _ACEOF
12286 rm -f conftest.$ac_objext conftest$ac_exeext
12287 if { (ac_try="$ac_link"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291 esac
12292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12293 (eval "$ac_link") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } && {
12300 test -z "$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 } && test -s conftest$ac_exeext &&
12303 $as_test_x conftest$ac_exeext; then
12304 ac_cv_lib_Xp_XpCreateContext=yes
12305 else
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_cv_lib_Xp_XpCreateContext=no
12312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313 conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12316 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12317 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12318 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12319 HAVE_LIBXP=yes
12322 if test ${HAVE_LIBXP} = yes; then
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_LIBXP 1
12326 _ACEOF
12329 else
12330 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12331 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12332 if test "${emacs_cv_lesstif+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 else
12335 # We put this in CFLAGS temporarily to precede other -I options
12336 # that might be in CFLAGS temporarily.
12337 # We put this in CPPFLAGS where it precedes the other -I options.
12338 OLD_CPPFLAGS=$CPPFLAGS
12339 OLD_CFLAGS=$CFLAGS
12340 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12341 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12342 cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12348 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12350 main ()
12352 int x = 5;
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 emacs_cv_lesstif=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12379 emacs_cv_lesstif=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12385 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12386 if test $emacs_cv_lesstif = yes; then
12387 # Make sure this -I option remains in CPPFLAGS after it is set
12388 # back to REAL_CPPFLAGS.
12389 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12390 # have those other -I options anyway. Ultimately, having this
12391 # directory ultimately in CPPFLAGS will be enough.
12392 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12393 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12394 else
12395 CFLAGS=$OLD_CFLAGS
12396 CPPFLAGS=$OLD_CPPFLAGS
12403 USE_TOOLKIT_SCROLL_BARS=no
12404 if test "${with_toolkit_scroll_bars}" != "no"; then
12405 if test "${USE_X_TOOLKIT}" != "none"; then
12406 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12407 cat >>confdefs.h <<\_ACEOF
12408 #define USE_TOOLKIT_SCROLL_BARS 1
12409 _ACEOF
12411 HAVE_XAW3D=no
12412 USE_TOOLKIT_SCROLL_BARS=yes
12413 elif test "${HAVE_XAW3D}" = "yes"; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define USE_TOOLKIT_SCROLL_BARS 1
12416 _ACEOF
12418 USE_TOOLKIT_SCROLL_BARS=yes
12420 elif test "${HAVE_GTK}" = "yes"; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define USE_TOOLKIT_SCROLL_BARS 1
12423 _ACEOF
12425 USE_TOOLKIT_SCROLL_BARS=yes
12426 elif test "${HAVE_NS}" = "yes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define USE_TOOLKIT_SCROLL_BARS 1
12429 _ACEOF
12431 USE_TOOLKIT_SCROLL_BARS=yes
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h. */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12442 #include <X11/Xlib.h>
12443 #include <X11/Xresource.h>
12445 main ()
12447 XIMProc callback;
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 HAVE_XIM=yes
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_XIM 1
12473 _ACEOF
12475 else
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 HAVE_XIM=no
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 if test "${with_xim}" != "no"; then
12487 cat >>confdefs.h <<\_ACEOF
12488 #define USE_XIM 1
12489 _ACEOF
12494 if test "${HAVE_XIM}" != "no"; then
12495 late_CFLAGS=$CFLAGS
12496 if test "$GCC" = yes; then
12497 CFLAGS="$CFLAGS --pedantic-errors"
12499 cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h. */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12506 #include <X11/Xlib.h>
12507 #include <X11/Xresource.h>
12509 main ()
12511 Display *display;
12512 XrmDatabase db;
12513 char *res_name;
12514 char *res_class;
12515 XIMProc callback;
12516 XPointer *client_data;
12517 #ifndef __GNUC__
12518 /* If we're not using GCC, it's probably not XFree86, and this is
12519 probably right, but we can't use something like --pedantic-errors. */
12520 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12521 char*, XIMProc, XPointer*);
12522 #endif
12523 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12524 client_data);
12526 return 0;
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.$ac_objext; then
12546 emacs_cv_arg6_star=yes
12547 else
12548 echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12556 if test "$emacs_cv_arg6_star" = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12559 _ACEOF
12561 else
12562 cat >>confdefs.h <<\_ACEOF
12563 #define XRegisterIMInstantiateCallback_arg6 XPointer
12564 _ACEOF
12567 CFLAGS=$late_CFLAGS
12570 ### Start of font-backend (under any platform) section.
12571 # (nothing here yet -- this is a placeholder)
12572 ### End of font-backend (under any platform) section.
12574 ### Start of font-backend (under X11) section.
12575 if test "${HAVE_X11}" = "yes"; then
12577 succeeded=no
12579 # Extract the first word of "pkg-config", so it can be a program name with args.
12580 set dummy pkg-config; ac_word=$2
12581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12583 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 else
12586 case $PKG_CONFIG in
12587 [\\/]* | ?:[\\/]*)
12588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592 for as_dir in $PATH
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12598 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12600 break 2
12602 done
12603 done
12604 IFS=$as_save_IFS
12606 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12608 esac
12610 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12611 if test -n "$PKG_CONFIG"; then
12612 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12613 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12614 else
12615 { echo "$as_me:$LINENO: result: no" >&5
12616 echo "${ECHO_T}no" >&6; }
12621 if test "$PKG_CONFIG" = "no" ; then
12622 HAVE_FC=no
12623 else
12624 PKG_CONFIG_MIN_VERSION=0.9.0
12625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12626 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12627 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12629 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12630 { echo "$as_me:$LINENO: result: yes" >&5
12631 echo "${ECHO_T}yes" >&6; }
12632 succeeded=yes
12634 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12635 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12636 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12637 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12638 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12640 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12641 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12642 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12643 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12644 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12645 else
12646 { echo "$as_me:$LINENO: result: no" >&5
12647 echo "${ECHO_T}no" >&6; }
12648 FONTCONFIG_CFLAGS=""
12649 FONTCONFIG_LIBS=""
12650 ## If we have a custom action on failure, don't print errors, but
12651 ## do set a variable so people can do so.
12652 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12658 else
12659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12664 if test $succeeded = yes; then
12665 HAVE_FC=yes
12666 else
12667 HAVE_FC=no
12670 test "${HAVE_FC}" = "no" && with_freetype=no
12672 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12673 HAVE_XFT=maybe
12674 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12675 with_xft="no";
12677 if test "x${with_xft}" != "xno"; then
12680 succeeded=no
12682 # Extract the first word of "pkg-config", so it can be a program name with args.
12683 set dummy pkg-config; ac_word=$2
12684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12686 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 case $PKG_CONFIG in
12690 [\\/]* | ?:[\\/]*)
12691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12697 IFS=$as_save_IFS
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12703 break 2
12705 done
12706 done
12707 IFS=$as_save_IFS
12709 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12711 esac
12713 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12714 if test -n "$PKG_CONFIG"; then
12715 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12716 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12717 else
12718 { echo "$as_me:$LINENO: result: no" >&5
12719 echo "${ECHO_T}no" >&6; }
12724 if test "$PKG_CONFIG" = "no" ; then
12725 HAVE_XFT=no
12726 else
12727 PKG_CONFIG_MIN_VERSION=0.9.0
12728 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12729 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12730 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12732 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12733 { echo "$as_me:$LINENO: result: yes" >&5
12734 echo "${ECHO_T}yes" >&6; }
12735 succeeded=yes
12737 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12738 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12739 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12740 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12741 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12743 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12744 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12745 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12746 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12747 echo "${ECHO_T}$XFT_LIBS" >&6; }
12748 else
12749 { echo "$as_me:$LINENO: result: no" >&5
12750 echo "${ECHO_T}no" >&6; }
12751 XFT_CFLAGS=""
12752 XFT_LIBS=""
12753 ## If we have a custom action on failure, don't print errors, but
12754 ## do set a variable so people can do so.
12755 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12761 else
12762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12767 if test $succeeded = yes; then
12769 else
12770 HAVE_XFT=no
12773 if test "$HAVE_XFT" != no; then
12774 OLD_CPPFLAGS="$CPPFLAGS"
12775 OLD_CFLAGS="$CFLAGS"
12776 OLD_LIBS="$LIBS"
12777 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12778 CFLAGS="$CFLAGS $XFT_CFLAGS"
12779 LIBS="$XFT_LIBS $LIBS"
12780 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12781 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12782 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12783 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12787 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12788 else
12789 # Is the header compilable?
12790 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12791 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 #include <X11/Xft/Xft.h>
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_header_compiler=yes
12819 else
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_header_compiler=no
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12828 echo "${ECHO_T}$ac_header_compiler" >&6; }
12830 # Is the header present?
12831 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12832 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h. */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 #include <X11/Xft/Xft.h>
12840 _ACEOF
12841 if { (ac_try="$ac_cpp conftest.$ac_ext"
12842 case "(($ac_try" in
12843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12845 esac
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null && {
12854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 }; then
12857 ac_header_preproc=yes
12858 else
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_header_preproc=no
12865 rm -f conftest.err conftest.$ac_ext
12866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12867 echo "${ECHO_T}$ac_header_preproc" >&6; }
12869 # So? What about this header?
12870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12871 yes:no: )
12872 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12873 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12875 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12876 ac_header_preproc=yes
12878 no:yes:* )
12879 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12882 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12884 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12886 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12888 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12890 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12893 esac
12894 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12895 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12896 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12901 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12902 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12905 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12906 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12907 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12908 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910 else
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-lXft $XFT_LIBS $LIBS"
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char XftFontOpen ();
12928 main ()
12930 return XftFontOpen ();
12932 return 0;
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12940 esac
12941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12942 (eval "$ac_link") 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } && {
12949 test -z "$ac_c_werror_flag" ||
12950 test ! -s conftest.err
12951 } && test -s conftest$ac_exeext &&
12952 $as_test_x conftest$ac_exeext; then
12953 ac_cv_lib_Xft_XftFontOpen=yes
12954 else
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12958 ac_cv_lib_Xft_XftFontOpen=no
12961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12962 conftest$ac_exeext conftest.$ac_ext
12963 LIBS=$ac_check_lib_save_LIBS
12965 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12966 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12967 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12968 HAVE_XFT=yes
12975 if test "${HAVE_XFT}" = "yes"; then
12977 cat >>confdefs.h <<\_ACEOF
12978 #define HAVE_XFT 1
12979 _ACEOF
12982 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12983 else
12984 CPPFLAGS="$OLD_CPPFLAGS"
12985 CFLAGS="$OLD_CFLAGS"
12986 LIBS="$OLD_LIBS"
12987 fi # "${HAVE_XFT}" = "yes"
12988 fi # "$HAVE_XFT" != no
12989 fi # "x${with_xft}" != "xno"
12991 if test "$HAVE_XFT" != "yes"; then
12992 HAVE_XFT=no
12996 HAVE_FREETYPE=no
12997 ### Use -lfreetype if available, unless `--with-freetype=no'.
12998 if test "${HAVE_XFT}" = "yes"; then
12999 HAVE_FREETYPE=yes
13000 FONTCONFIG_CFLAGS=
13001 FONTCONFIG_LIBS=
13002 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
13005 succeeded=no
13007 # Extract the first word of "pkg-config", so it can be a program name with args.
13008 set dummy pkg-config; ac_word=$2
13009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 else
13014 case $PKG_CONFIG in
13015 [\\/]* | ?:[\\/]*)
13016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13030 done
13031 done
13032 IFS=$as_save_IFS
13034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13036 esac
13038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13039 if test -n "$PKG_CONFIG"; then
13040 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13041 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13042 else
13043 { echo "$as_me:$LINENO: result: no" >&5
13044 echo "${ECHO_T}no" >&6; }
13049 if test "$PKG_CONFIG" = "no" ; then
13050 HAVE_FREETYPE=no
13051 else
13052 PKG_CONFIG_MIN_VERSION=0.9.0
13053 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13054 { echo "$as_me:$LINENO: checking for freetype2" >&5
13055 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13057 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13058 { echo "$as_me:$LINENO: result: yes" >&5
13059 echo "${ECHO_T}yes" >&6; }
13060 succeeded=yes
13062 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13063 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13064 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13065 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13066 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13068 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13069 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13070 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13071 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13072 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13073 else
13074 { echo "$as_me:$LINENO: result: no" >&5
13075 echo "${ECHO_T}no" >&6; }
13076 FREETYPE_CFLAGS=""
13077 FREETYPE_LIBS=""
13078 ## If we have a custom action on failure, don't print errors, but
13079 ## do set a variable so people can do so.
13080 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13086 else
13087 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13088 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13092 if test $succeeded = yes; then
13093 HAVE_FREETYPE=yes
13094 else
13095 HAVE_FREETYPE=no
13100 HAVE_LIBOTF=no
13101 if test "${HAVE_FREETYPE}" = "yes"; then
13103 cat >>confdefs.h <<\_ACEOF
13104 #define HAVE_FREETYPE 1
13105 _ACEOF
13107 if test "${with_libotf}" != "no"; then
13109 succeeded=no
13111 # Extract the first word of "pkg-config", so it can be a program name with args.
13112 set dummy pkg-config; ac_word=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 case $PKG_CONFIG in
13119 [\\/]* | ?:[\\/]*)
13120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13134 done
13135 done
13136 IFS=$as_save_IFS
13138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13140 esac
13142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13143 if test -n "$PKG_CONFIG"; then
13144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13146 else
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13153 if test "$PKG_CONFIG" = "no" ; then
13154 HAVE_LIBOTF=no
13155 else
13156 PKG_CONFIG_MIN_VERSION=0.9.0
13157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13158 { echo "$as_me:$LINENO: checking for libotf" >&5
13159 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13161 if $PKG_CONFIG --exists "libotf" 2>&5; then
13162 { echo "$as_me:$LINENO: result: yes" >&5
13163 echo "${ECHO_T}yes" >&6; }
13164 succeeded=yes
13166 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13167 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13168 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13169 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13170 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13172 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13173 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13174 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13175 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13176 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13177 else
13178 { echo "$as_me:$LINENO: result: no" >&5
13179 echo "${ECHO_T}no" >&6; }
13180 LIBOTF_CFLAGS=""
13181 LIBOTF_LIBS=""
13182 ## If we have a custom action on failure, don't print errors, but
13183 ## do set a variable so people can do so.
13184 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13190 else
13191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 if test $succeeded = yes; then
13197 HAVE_LIBOTF=yes
13198 else
13199 HAVE_LIBOTF=no
13202 if test "$HAVE_LIBOTF" = "yes"; then
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_LIBOTF 1
13206 _ACEOF
13208 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13209 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13210 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lotf $LIBS"
13215 cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h. */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char OTF_get_variation_glyphs ();
13230 main ()
13232 return OTF_get_variation_glyphs ();
13234 return 0;
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (ac_try="$ac_link"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_link") 2>conftest.er1
13245 ac_status=$?
13246 grep -v '^ *+' conftest.er1 >conftest.err
13247 rm -f conftest.er1
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && {
13251 test -z "$ac_c_werror_flag" ||
13252 test ! -s conftest.err
13253 } && test -s conftest$ac_exeext &&
13254 $as_test_x conftest$ac_exeext; then
13255 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13256 else
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13264 conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13267 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13268 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13269 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13270 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13271 else
13272 HAVE_OTF_GET_VARIATION_GLYPHS=no
13275 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13279 _ACEOF
13286 HAVE_M17N_FLT=no
13287 if test "${HAVE_LIBOTF}" = yes; then
13288 if test "${with_m17n_flt}" != "no"; then
13290 succeeded=no
13292 # Extract the first word of "pkg-config", so it can be a program name with args.
13293 set dummy pkg-config; ac_word=$2
13294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299 case $PKG_CONFIG in
13300 [\\/]* | ?:[\\/]*)
13301 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13305 for as_dir in $PATH
13307 IFS=$as_save_IFS
13308 test -z "$as_dir" && as_dir=.
13309 for ac_exec_ext in '' $ac_executable_extensions; do
13310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13311 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 break 2
13315 done
13316 done
13317 IFS=$as_save_IFS
13319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13321 esac
13323 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13324 if test -n "$PKG_CONFIG"; then
13325 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13326 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13327 else
13328 { echo "$as_me:$LINENO: result: no" >&5
13329 echo "${ECHO_T}no" >&6; }
13334 if test "$PKG_CONFIG" = "no" ; then
13335 HAVE_M17N_FLT=no
13336 else
13337 PKG_CONFIG_MIN_VERSION=0.9.0
13338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13339 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13340 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13342 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13343 { echo "$as_me:$LINENO: result: yes" >&5
13344 echo "${ECHO_T}yes" >&6; }
13345 succeeded=yes
13347 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13348 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13349 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13350 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13351 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13353 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13354 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13355 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13356 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13357 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13358 else
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13361 M17N_FLT_CFLAGS=""
13362 M17N_FLT_LIBS=""
13363 ## If we have a custom action on failure, don't print errors, but
13364 ## do set a variable so people can do so.
13365 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13371 else
13372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13377 if test $succeeded = yes; then
13378 HAVE_M17N_FLT=yes
13379 else
13380 HAVE_M17N_FLT=no
13383 if test "$HAVE_M17N_FLT" = "yes"; then
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_M17N_FLT 1
13387 _ACEOF
13392 else
13393 HAVE_XFT=no
13394 HAVE_FREETYPE=no
13395 HAVE_LIBOTF=no
13396 HAVE_M17N_FLT=no
13398 ### End of font-backend (under X11) section.
13409 ### Use -lXpm if available, unless `--with-xpm=no'.
13410 HAVE_XPM=no
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_xpm}" != "no"; then
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13415 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13421 else
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13424 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/xpm.h>
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_header_compiler=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13465 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <X11/xpm.h>
13473 _ACEOF
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 }; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_header_preproc=no
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 yes:no: )
13505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13511 no:yes:* )
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13526 esac
13527 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_cv_header_X11_xpm_h=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13538 if test $ac_cv_header_X11_xpm_h = yes; then
13539 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13540 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lXpm -lX11 $LIBS"
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. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char XpmReadFileToPixmap ();
13561 main ()
13563 return XpmReadFileToPixmap ();
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13599 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13601 HAVE_XPM=yes
13607 if test "${HAVE_XPM}" = "yes"; then
13608 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13609 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13619 #endif
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13624 HAVE_XPM=no
13625 else
13626 HAVE_XPM=yes
13628 rm -f conftest*
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6; }
13634 else
13635 { echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6; }
13641 if test "${HAVE_XPM}" = "yes"; then
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_XPM 1
13645 _ACEOF
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13651 HAVE_JPEG=no
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no"; then
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13656 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jerror_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13662 else
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13665 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jerror.h>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ac_header_compiler=no
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13706 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <jerror.h>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 }; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13736 ac_header_preproc=no
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13767 esac
13768 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13769 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13770 if test "${ac_cv_header_jerror_h+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_cv_header_jerror_h=$ac_header_preproc
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13779 if test $ac_cv_header_jerror_h = yes; then
13780 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13781 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ljpeg $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char jpeg_destroy_compress ();
13802 main ()
13804 return jpeg_destroy_compress ();
13806 return 0;
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13840 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13841 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13842 HAVE_JPEG=yes
13851 if test "${HAVE_JPEG}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_JPEG 1
13854 _ACEOF
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <jpeglib.h>
13863 version=JPEG_LIB_VERSION
13865 _ACEOF
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_JPEG 1
13870 _ACEOF
13872 else
13873 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13874 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13875 HAVE_JPEG=no
13877 rm -f conftest*
13882 ### Use -lpng if available, unless `--with-png=no'.
13883 HAVE_PNG=no
13884 if test "${HAVE_X11}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13890 for ac_header in png.h libpng/png.h
13892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_res=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13902 else
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h. */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13933 else
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13937 ac_header_compiler=no
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <$ac_header>
13954 _ACEOF
13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null && {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 }; then
13971 ac_header_preproc=yes
13972 else
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_header_preproc=no
13979 rm -f conftest.err conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13985 yes:no: )
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13990 ac_header_preproc=yes
13992 no:yes:* )
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14007 esac
14008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 eval "$as_ac_Header=\$ac_header_preproc"
14015 ac_res=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result: $ac_res" >&5
14017 echo "${ECHO_T}$ac_res" >&6; }
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14023 _ACEOF
14027 done
14029 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14030 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14031 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14032 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lpng -lz -lm $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 char png_get_channels ();
14052 main ()
14054 return png_get_channels ();
14056 return 0;
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (ac_try="$ac_link"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_link") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest$ac_exeext &&
14076 $as_test_x conftest$ac_exeext; then
14077 ac_cv_lib_png_png_get_channels=yes
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 ac_cv_lib_png_png_get_channels=no
14085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14089 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14090 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14091 if test $ac_cv_lib_png_png_get_channels = yes; then
14092 HAVE_PNG=yes
14098 if test "${HAVE_PNG}" = "yes"; then
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_PNG 1
14102 _ACEOF
14107 ### Use -ltiff if available, unless `--with-tiff=no'.
14108 HAVE_TIFF=no
14109 if test "${HAVE_X11}" = "yes"; then
14110 if test "${with_tiff}" != "no"; then
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14113 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_tiffio_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14119 else
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14122 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <tiffio.h>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_compiler=no
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14163 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <tiffio.h>
14171 _ACEOF
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 }; then
14188 ac_header_preproc=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_header_preproc=no
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14202 yes:no: )
14203 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14206 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
14209 no:yes:* )
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14219 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14224 esac
14225 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14226 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_tiffio_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 ac_cv_header_tiffio_h=$ac_header_preproc
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14236 if test $ac_cv_header_tiffio_h = yes; then
14237 tifflibs="-lz -lm"
14238 # At least one tiff package requires the jpeg library.
14239 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14240 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14241 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14242 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-ltiff $tifflibs $LIBS"
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char TIFFGetVersion ();
14262 main ()
14264 return TIFFGetVersion ();
14266 return 0;
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } && {
14283 test -z "$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14285 } && test -s conftest$ac_exeext &&
14286 $as_test_x conftest$ac_exeext; then
14287 ac_cv_lib_tiff_TIFFGetVersion=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_cv_lib_tiff_TIFFGetVersion=no
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14299 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14300 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14301 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14302 HAVE_TIFF=yes
14310 if test "${HAVE_TIFF}" = "yes"; then
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_TIFF 1
14314 _ACEOF
14319 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14320 HAVE_GIF=no
14321 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14324 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14328 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14329 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14330 else
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14333 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <gif_lib.h>
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14360 ac_header_compiler=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_header_compiler=no
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14370 echo "${ECHO_T}$ac_header_compiler" >&6; }
14372 # Is the header present?
14373 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14374 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <gif_lib.h>
14382 _ACEOF
14383 if { (ac_try="$ac_cpp conftest.$ac_ext"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } >/dev/null && {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 }; then
14399 ac_header_preproc=yes
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_header_preproc=no
14407 rm -f conftest.err conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6; }
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14413 yes:no: )
14414 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14415 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14417 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14418 ac_header_preproc=yes
14420 no:yes:* )
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14422 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14424 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14426 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14428 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14432 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14435 esac
14436 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14437 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 ac_cv_header_gif_lib_h=$ac_header_preproc
14443 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14444 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14447 if test $ac_cv_header_gif_lib_h = yes; then
14448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14449 # Earlier versions can crash Emacs.
14450 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14451 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lgif $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char EGifPutExtensionLast ();
14472 main ()
14474 return EGifPutExtensionLast ();
14476 return 0;
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_gif_EGifPutExtensionLast=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_gif_EGifPutExtensionLast=no
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14512 HAVE_GIF=yes
14513 else
14514 try_libungif=yes
14521 if test "$HAVE_GIF" = yes; then
14522 ac_gif_lib_name="-lgif"
14525 # If gif_lib.h but no libgif, try libungif.
14526 if test x"$try_libungif" = xyes; then
14527 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14528 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14529 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lungif $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 char EGifPutExtensionLast ();
14549 main ()
14551 return EGifPutExtensionLast ();
14553 return 0;
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext &&
14573 $as_test_x conftest$ac_exeext; then
14574 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14579 ac_cv_lib_ungif_EGifPutExtensionLast=no
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14586 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14587 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14588 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14589 HAVE_GIF=yes
14593 if test "$HAVE_GIF" = yes; then
14595 cat >>confdefs.h <<\_ACEOF
14596 #define LIBGIF -lungif
14597 _ACEOF
14599 ac_gif_lib_name="-lungif"
14603 if test "${HAVE_GIF}" = "yes"; then
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_GIF 1
14607 _ACEOF
14612 if test "${HAVE_X11}" = "yes"; then
14613 MISSING=""
14614 WITH_NO=""
14615 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14616 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14617 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14618 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14619 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14620 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14621 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14622 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14623 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14624 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14626 if test "X${MISSING}" != X; then
14627 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14628 $MISSING
14629 Maybe some development libraries/packages are missing?
14630 If you don't want to link with them give
14631 $WITH_NO
14632 as options to configure" >&5
14633 echo "$as_me: error: The following required libraries were not found:
14634 $MISSING
14635 Maybe some development libraries/packages are missing?
14636 If you don't want to link with them give
14637 $WITH_NO
14638 as options to configure" >&2;}
14639 { (exit 1); exit 1; }; }
14643 ### Use -lgpm if available, unless `--with-gpm=no'.
14644 HAVE_GPM=no
14645 if test "${with_gpm}" != "no"; then
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14648 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_gpm_h+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14653 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14654 else
14655 # Is the header compilable?
14656 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14657 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 $ac_includes_default
14665 #include <gpm.h>
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_header_compiler=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_header_compiler=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6; }
14696 # Is the header present?
14697 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14698 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <gpm.h>
14706 _ACEOF
14707 if { (ac_try="$ac_cpp conftest.$ac_ext"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev/null && {
14720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 }; then
14723 ac_header_preproc=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_header_preproc=no
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737 yes:no: )
14738 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14742 ac_header_preproc=yes
14744 no:yes:* )
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14759 esac
14760 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14761 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14762 if test "${ac_cv_header_gpm_h+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_cv_header_gpm_h=$ac_header_preproc
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14771 if test $ac_cv_header_gpm_h = yes; then
14772 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14773 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14774 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777 ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lgpm $LIBS"
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char Gpm_Open ();
14794 main ()
14796 return Gpm_Open ();
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 ac_cv_lib_gpm_Gpm_Open=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_cv_lib_gpm_Gpm_Open=no
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14832 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14833 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14834 HAVE_GPM=yes
14842 if test "${HAVE_GPM}" = "yes"; then
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_GPM 1
14846 _ACEOF
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14852 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14853 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14858 else
14859 # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14861 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 #include <malloc/malloc.h>
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888 ac_header_compiler=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_header_compiler=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14902 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <malloc/malloc.h>
14910 _ACEOF
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null && {
14924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 }; then
14927 ac_header_preproc=yes
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 ac_header_preproc=no
14935 rm -f conftest.err conftest.$ac_ext
14936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6; }
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14941 yes:no: )
14942 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14945 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14946 ac_header_preproc=yes
14948 no:yes:* )
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14954 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14956 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14963 esac
14964 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14965 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14971 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14975 if test $ac_cv_header_malloc_malloc_h = yes; then
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_MALLOC_MALLOC_H 1
14979 _ACEOF
14985 ### Use NeXTstep API to implement GUI.
14986 if test "${HAVE_NS}" = "yes"; then
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_NS 1
14990 _ACEOF
14992 if test "${NS_IMPL_COCOA}" = "yes"; then
14994 cat >>confdefs.h <<\_ACEOF
14995 #define NS_IMPL_COCOA 1
14996 _ACEOF
14998 GNU_OBJC_CFLAGS=
14999 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15001 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define NS_IMPL_GNUSTEP 1
15005 _ACEOF
15007 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15009 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define NS_HAVE_NSINTEGER 1
15013 _ACEOF
15016 # We also have mouse menus.
15017 HAVE_MENUS=yes
15021 ### Use session management (-lSM -lICE) if available
15022 HAVE_X_SM=no
15023 if test "${HAVE_X11}" = "yes"; then
15024 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15025 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15026 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15027 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15031 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15032 else
15033 # Is the header compilable?
15034 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15035 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h. */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <X11/SM/SMlib.h>
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_compile") 2>conftest.er1
15053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest.$ac_objext; then
15062 ac_header_compiler=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_compiler=no
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15072 echo "${ECHO_T}$ac_header_compiler" >&6; }
15074 # Is the header present?
15075 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15076 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <X11/SM/SMlib.h>
15084 _ACEOF
15085 if { (ac_try="$ac_cpp conftest.$ac_ext"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } >/dev/null && {
15098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 }; then
15101 ac_header_preproc=yes
15102 else
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_preproc=no
15109 rm -f conftest.err conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6; }
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15115 yes:no: )
15116 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15117 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15119 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15120 ac_header_preproc=yes
15122 no:yes:* )
15123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15124 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15126 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15128 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15130 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15132 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15134 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15137 esac
15138 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15139 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15140 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15141 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15145 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15146 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15149 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15150 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15151 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15152 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155 ac_check_lib_save_LIBS=$LIBS
15156 LIBS="-lSM -lICE $LIBS"
15157 cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h. */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15164 /* Override any GCC internal prototype to avoid an error.
15165 Use char because int might match the return type of a GCC
15166 builtin and then its argument prototype would still apply. */
15167 #ifdef __cplusplus
15168 extern "C"
15169 #endif
15170 char SmcOpenConnection ();
15172 main ()
15174 return SmcOpenConnection ();
15176 return 0;
15178 _ACEOF
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (ac_try="$ac_link"
15181 case "(($ac_try" in
15182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_link") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest$ac_exeext &&
15196 $as_test_x conftest$ac_exeext; then
15197 ac_cv_lib_SM_SmcOpenConnection=yes
15198 else
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 ac_cv_lib_SM_SmcOpenConnection=no
15205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15209 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15210 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15211 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15212 HAVE_X_SM=yes
15219 if test "${HAVE_X_SM}" = "yes"; then
15221 cat >>confdefs.h <<\_ACEOF
15222 #define HAVE_X_SM 1
15223 _ACEOF
15225 case "$LIBS" in
15226 *-lSM*) ;;
15227 *) LIBS="-lSM -lICE $LIBS" ;;
15228 esac
15232 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15233 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15234 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15235 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 else
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h. */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <netdb.h>
15246 main ()
15248 return h_errno;
15250 return 0;
15252 _ACEOF
15253 rm -f conftest.$ac_objext conftest$ac_exeext
15254 if { (ac_try="$ac_link"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_link") 2>conftest.er1
15261 ac_status=$?
15262 grep -v '^ *+' conftest.er1 >conftest.err
15263 rm -f conftest.er1
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } && {
15267 test -z "$ac_c_werror_flag" ||
15268 test ! -s conftest.err
15269 } && test -s conftest$ac_exeext &&
15270 $as_test_x conftest$ac_exeext; then
15271 emacs_cv_netdb_declares_h_errno=yes
15272 else
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 emacs_cv_netdb_declares_h_errno=no
15279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 conftest$ac_exeext conftest.$ac_ext
15282 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15283 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15284 if test $emacs_cv_netdb_declares_h_errno = yes; then
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_H_ERRNO 1
15288 _ACEOF
15292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15293 # for constant arguments. Useless!
15294 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15295 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15296 if test "${ac_cv_working_alloca_h+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299 cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h. */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h. */
15305 #include <alloca.h>
15307 main ()
15309 char *p = (char *) alloca (2 * sizeof (int));
15310 if (p) return 0;
15312 return 0;
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_link") 2>conftest.er1
15323 ac_status=$?
15324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest$ac_exeext &&
15332 $as_test_x conftest$ac_exeext; then
15333 ac_cv_working_alloca_h=yes
15334 else
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_cv_working_alloca_h=no
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342 conftest$ac_exeext conftest.$ac_ext
15344 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15345 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15346 if test $ac_cv_working_alloca_h = yes; then
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_ALLOCA_H 1
15350 _ACEOF
15354 { echo "$as_me:$LINENO: checking for alloca" >&5
15355 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15356 if test "${ac_cv_func_alloca_works+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #ifdef __GNUC__
15366 # define alloca __builtin_alloca
15367 #else
15368 # ifdef _MSC_VER
15369 # include <malloc.h>
15370 # define alloca _alloca
15371 # else
15372 # ifdef HAVE_ALLOCA_H
15373 # include <alloca.h>
15374 # else
15375 # ifdef _AIX
15376 #pragma alloca
15377 # else
15378 # ifndef alloca /* predefined by HP cc +Olibcalls */
15379 char *alloca ();
15380 # endif
15381 # endif
15382 # endif
15383 # endif
15384 #endif
15387 main ()
15389 char *p = (char *) alloca (1);
15390 if (p) return 0;
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15403 ac_status=$?
15404 grep -v '^ *+' conftest.er1 >conftest.err
15405 rm -f conftest.er1
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 ac_cv_func_alloca_works=yes
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_func_alloca_works=no
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15424 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15425 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15427 if test $ac_cv_func_alloca_works = yes; then
15429 cat >>confdefs.h <<\_ACEOF
15430 #define HAVE_ALLOCA 1
15431 _ACEOF
15433 else
15434 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15435 # that cause trouble. Some versions do not even contain alloca or
15436 # contain a buggy version. If you still want to use their alloca,
15437 # use ar to extract alloca.o from them instead of compiling alloca.c.
15439 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15441 cat >>confdefs.h <<\_ACEOF
15442 #define C_ALLOCA 1
15443 _ACEOF
15446 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15447 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15448 if test "${ac_cv_os_cray+set}" = set; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h. */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15457 #if defined CRAY && ! defined CRAY2
15458 webecray
15459 #else
15460 wenotbecray
15461 #endif
15463 _ACEOF
15464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15465 $EGREP "webecray" >/dev/null 2>&1; then
15466 ac_cv_os_cray=yes
15467 else
15468 ac_cv_os_cray=no
15470 rm -f conftest*
15473 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15474 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15475 if test $ac_cv_os_cray = yes; then
15476 for ac_func in _getb67 GETB67 getb67; do
15477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15481 echo $ECHO_N "(cached) $ECHO_C" >&6
15482 else
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15491 #define $ac_func innocuous_$ac_func
15493 /* System header to define __stub macros and hopefully few prototypes,
15494 which can conflict with char $ac_func (); below.
15495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15496 <limits.h> exists even on freestanding compilers. */
15498 #ifdef __STDC__
15499 # include <limits.h>
15500 #else
15501 # include <assert.h>
15502 #endif
15504 #undef $ac_func
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15509 #ifdef __cplusplus
15510 extern "C"
15511 #endif
15512 char $ac_func ();
15513 /* The GNU C library defines this for functions which it implements
15514 to always fail with ENOSYS. Some functions are actually named
15515 something starting with __ and the normal name is an alias. */
15516 #if defined __stub_$ac_func || defined __stub___$ac_func
15517 choke me
15518 #endif
15521 main ()
15523 return $ac_func ();
15525 return 0;
15527 _ACEOF
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (ac_try="$ac_link"
15530 case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15533 esac
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_link") 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest$ac_exeext &&
15545 $as_test_x conftest$ac_exeext; then
15546 eval "$as_ac_var=yes"
15547 else
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 eval "$as_ac_var=no"
15554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15555 conftest$ac_exeext conftest.$ac_ext
15557 ac_res=`eval echo '${'$as_ac_var'}'`
15558 { echo "$as_me:$LINENO: result: $ac_res" >&5
15559 echo "${ECHO_T}$ac_res" >&6; }
15560 if test `eval echo '${'$as_ac_var'}'` = yes; then
15562 cat >>confdefs.h <<_ACEOF
15563 #define CRAY_STACKSEG_END $ac_func
15564 _ACEOF
15566 break
15569 done
15572 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15573 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15574 if test "${ac_cv_c_stack_direction+set}" = set; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 else
15577 if test "$cross_compiling" = yes; then
15578 ac_cv_c_stack_direction=0
15579 else
15580 cat >conftest.$ac_ext <<_ACEOF
15581 /* confdefs.h. */
15582 _ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 $ac_includes_default
15588 find_stack_direction ()
15590 static char *addr = 0;
15591 auto char dummy;
15592 if (addr == 0)
15594 addr = &dummy;
15595 return find_stack_direction ();
15597 else
15598 return (&dummy > addr) ? 1 : -1;
15602 main ()
15604 return find_stack_direction () < 0;
15606 _ACEOF
15607 rm -f conftest$ac_exeext
15608 if { (ac_try="$ac_link"
15609 case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_link") 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15618 { (case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_try") 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; }; then
15627 ac_cv_c_stack_direction=1
15628 else
15629 echo "$as_me: program exited with status $ac_status" >&5
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ( exit $ac_status )
15634 ac_cv_c_stack_direction=-1
15636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15641 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15642 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15644 cat >>confdefs.h <<_ACEOF
15645 #define STACK_DIRECTION $ac_cv_c_stack_direction
15646 _ACEOF
15652 if test x"$ac_cv_func_alloca_works" != xyes; then
15653 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15654 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15655 { (exit 1); exit 1; }; }
15658 # fmod, logb, and frexp are found in -lm on most systems.
15659 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15661 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15662 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 else
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lm $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15675 /* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply. */
15678 #ifdef __cplusplus
15679 extern "C"
15680 #endif
15681 char sqrt ();
15683 main ()
15685 return sqrt ();
15687 return 0;
15689 _ACEOF
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (ac_try="$ac_link"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695 esac
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_link") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } && {
15704 test -z "$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15706 } && test -s conftest$ac_exeext &&
15707 $as_test_x conftest$ac_exeext; then
15708 ac_cv_lib_m_sqrt=yes
15709 else
15710 echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_cv_lib_m_sqrt=no
15716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15720 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15721 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15722 if test $ac_cv_lib_m_sqrt = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_LIBM 1
15725 _ACEOF
15727 LIBS="-lm $LIBS"
15732 # Check for mail-locking functions in a "mail" library. Probably this should
15733 # have the same check as for liblockfile below.
15735 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15736 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15737 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15739 else
15740 ac_check_lib_save_LIBS=$LIBS
15741 LIBS="-lmail $LIBS"
15742 cat >conftest.$ac_ext <<_ACEOF
15743 /* confdefs.h. */
15744 _ACEOF
15745 cat confdefs.h >>conftest.$ac_ext
15746 cat >>conftest.$ac_ext <<_ACEOF
15747 /* end confdefs.h. */
15749 /* Override any GCC internal prototype to avoid an error.
15750 Use char because int might match the return type of a GCC
15751 builtin and then its argument prototype would still apply. */
15752 #ifdef __cplusplus
15753 extern "C"
15754 #endif
15755 char maillock ();
15757 main ()
15759 return maillock ();
15761 return 0;
15763 _ACEOF
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15769 esac
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest$ac_exeext &&
15781 $as_test_x conftest$ac_exeext; then
15782 ac_cv_lib_mail_maillock=yes
15783 else
15784 echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_lib_mail_maillock=no
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15794 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15795 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15796 if test $ac_cv_lib_mail_maillock = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define HAVE_LIBMAIL 1
15799 _ACEOF
15801 LIBS="-lmail $LIBS"
15806 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15807 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15808 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15810 else
15811 ac_check_lib_save_LIBS=$LIBS
15812 LIBS="-llockfile $LIBS"
15813 cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h. */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15820 /* Override any GCC internal prototype to avoid an error.
15821 Use char because int might match the return type of a GCC
15822 builtin and then its argument prototype would still apply. */
15823 #ifdef __cplusplus
15824 extern "C"
15825 #endif
15826 char maillock ();
15828 main ()
15830 return maillock ();
15832 return 0;
15834 _ACEOF
15835 rm -f conftest.$ac_objext conftest$ac_exeext
15836 if { (ac_try="$ac_link"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_link") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } && {
15849 test -z "$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 } && test -s conftest$ac_exeext &&
15852 $as_test_x conftest$ac_exeext; then
15853 ac_cv_lib_lockfile_maillock=yes
15854 else
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_cv_lib_lockfile_maillock=no
15861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15862 conftest$ac_exeext conftest.$ac_ext
15863 LIBS=$ac_check_lib_save_LIBS
15865 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15866 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15867 if test $ac_cv_lib_lockfile_maillock = yes; then
15868 cat >>confdefs.h <<_ACEOF
15869 #define HAVE_LIBLOCKFILE 1
15870 _ACEOF
15872 LIBS="-llockfile $LIBS"
15876 # If we have the shared liblockfile, assume we must use it for mail
15877 # locking (e.g. Debian). If we couldn't link against liblockfile
15878 # (no liblockfile.a installed), ensure that we don't need to.
15879 if test "$ac_cv_lib_lockfile_maillock" = no; then
15880 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15881 set dummy liblockfile.so; ac_word=$2
15882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15884 if test "${ac_cv_prog_liblockfile+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886 else
15887 if test -n "$liblockfile"; then
15888 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15889 else
15890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15891 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15892 for as_dir in $as_dummy
15894 IFS=$as_save_IFS
15895 test -z "$as_dir" && as_dir=.
15896 for ac_exec_ext in '' $ac_executable_extensions; do
15897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15898 ac_cv_prog_liblockfile="yes"
15899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15900 break 2
15902 done
15903 done
15904 IFS=$as_save_IFS
15906 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15909 liblockfile=$ac_cv_prog_liblockfile
15910 if test -n "$liblockfile"; then
15911 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15912 echo "${ECHO_T}$liblockfile" >&6; }
15913 else
15914 { echo "$as_me:$LINENO: result: no" >&5
15915 echo "${ECHO_T}no" >&6; }
15919 if test $ac_cv_prog_liblockfile = yes; then
15920 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15921 This probably means that movemail could lose mail.
15922 There may be a \`development' package to install containing liblockfile." >&5
15923 echo "$as_me: error: Shared liblockfile found but can't link against it.
15924 This probably means that movemail could lose mail.
15925 There may be a \`development' package to install containing liblockfile." >&2;}
15926 { (exit 1); exit 1; }; }
15927 else :
15931 for ac_func in touchlock
15933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15937 echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h. */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15947 #define $ac_func innocuous_$ac_func
15949 /* System header to define __stub macros and hopefully few prototypes,
15950 which can conflict with char $ac_func (); below.
15951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15952 <limits.h> exists even on freestanding compilers. */
15954 #ifdef __STDC__
15955 # include <limits.h>
15956 #else
15957 # include <assert.h>
15958 #endif
15960 #undef $ac_func
15962 /* Override any GCC internal prototype to avoid an error.
15963 Use char because int might match the return type of a GCC
15964 builtin and then its argument prototype would still apply. */
15965 #ifdef __cplusplus
15966 extern "C"
15967 #endif
15968 char $ac_func ();
15969 /* The GNU C library defines this for functions which it implements
15970 to always fail with ENOSYS. Some functions are actually named
15971 something starting with __ and the normal name is an alias. */
15972 #if defined __stub_$ac_func || defined __stub___$ac_func
15973 choke me
15974 #endif
15977 main ()
15979 return $ac_func ();
15981 return 0;
15983 _ACEOF
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (ac_try="$ac_link"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15989 esac
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_link") 2>conftest.er1
15992 ac_status=$?
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest$ac_exeext &&
16001 $as_test_x conftest$ac_exeext; then
16002 eval "$as_ac_var=yes"
16003 else
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 eval "$as_ac_var=no"
16010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16011 conftest$ac_exeext conftest.$ac_ext
16013 ac_res=`eval echo '${'$as_ac_var'}'`
16014 { echo "$as_me:$LINENO: result: $ac_res" >&5
16015 echo "${ECHO_T}$ac_res" >&6; }
16016 if test `eval echo '${'$as_ac_var'}'` = yes; then
16017 cat >>confdefs.h <<_ACEOF
16018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16019 _ACEOF
16022 done
16025 for ac_header in maillock.h
16027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036 echo "${ECHO_T}$ac_res" >&6; }
16037 else
16038 # Is the header compilable?
16039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h. */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16049 _ACEOF
16050 rm -f conftest.$ac_objext
16051 if { (ac_try="$ac_compile"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16067 ac_header_compiler=yes
16068 else
16069 echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_header_compiler=no
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16077 echo "${ECHO_T}$ac_header_compiler" >&6; }
16079 # Is the header present?
16080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h. */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 #include <$ac_header>
16089 _ACEOF
16090 if { (ac_try="$ac_cpp conftest.$ac_ext"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16097 ac_status=$?
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } >/dev/null && {
16103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16104 test ! -s conftest.err
16105 }; then
16106 ac_header_preproc=yes
16107 else
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16111 ac_header_preproc=no
16114 rm -f conftest.err conftest.$ac_ext
16115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16116 echo "${ECHO_T}$ac_header_preproc" >&6; }
16118 # So? What about this header?
16119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16120 yes:no: )
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16125 ac_header_preproc=yes
16127 no:yes:* )
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16142 esac
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148 eval "$as_ac_Header=\$ac_header_preproc"
16150 ac_res=`eval echo '${'$as_ac_Header'}'`
16151 { echo "$as_me:$LINENO: result: $ac_res" >&5
16152 echo "${ECHO_T}$ac_res" >&6; }
16155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16156 cat >>confdefs.h <<_ACEOF
16157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16158 _ACEOF
16162 done
16236 for ac_func in gethostname getdomainname dup2 \
16237 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16238 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16239 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16240 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16241 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16242 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16243 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16244 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16245 cfmakeraw cfsetspeed
16247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16261 #define $ac_func innocuous_$ac_func
16263 /* System header to define __stub macros and hopefully few prototypes,
16264 which can conflict with char $ac_func (); below.
16265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16266 <limits.h> exists even on freestanding compilers. */
16268 #ifdef __STDC__
16269 # include <limits.h>
16270 #else
16271 # include <assert.h>
16272 #endif
16274 #undef $ac_func
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16279 #ifdef __cplusplus
16280 extern "C"
16281 #endif
16282 char $ac_func ();
16283 /* The GNU C library defines this for functions which it implements
16284 to always fail with ENOSYS. Some functions are actually named
16285 something starting with __ and the normal name is an alias. */
16286 #if defined __stub_$ac_func || defined __stub___$ac_func
16287 choke me
16288 #endif
16291 main ()
16293 return $ac_func ();
16295 return 0;
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_link") 2>conftest.er1
16306 ac_status=$?
16307 grep -v '^ *+' conftest.er1 >conftest.err
16308 rm -f conftest.er1
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest$ac_exeext &&
16315 $as_test_x conftest$ac_exeext; then
16316 eval "$as_ac_var=yes"
16317 else
16318 echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 eval "$as_ac_var=no"
16324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16325 conftest$ac_exeext conftest.$ac_ext
16327 ac_res=`eval echo '${'$as_ac_var'}'`
16328 { echo "$as_me:$LINENO: result: $ac_res" >&5
16329 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16333 _ACEOF
16336 done
16340 for ac_header in sys/un.h
16342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 ac_res=`eval echo '${'$as_ac_Header'}'`
16350 { echo "$as_me:$LINENO: result: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16352 else
16353 # Is the header compilable?
16354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h. */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16363 #include <$ac_header>
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (ac_try="$ac_compile"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370 esac
16371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_compile") 2>conftest.er1
16373 ac_status=$?
16374 grep -v '^ *+' conftest.er1 >conftest.err
16375 rm -f conftest.er1
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378 (exit $ac_status); } && {
16379 test -z "$ac_c_werror_flag" ||
16380 test ! -s conftest.err
16381 } && test -s conftest.$ac_objext; then
16382 ac_header_compiler=yes
16383 else
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_header_compiler=no
16390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16392 echo "${ECHO_T}$ac_header_compiler" >&6; }
16394 # Is the header present?
16395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 #include <$ac_header>
16404 _ACEOF
16405 if { (ac_try="$ac_cpp conftest.$ac_ext"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16412 ac_status=$?
16413 grep -v '^ *+' conftest.er1 >conftest.err
16414 rm -f conftest.er1
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } >/dev/null && {
16418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 }; then
16421 ac_header_preproc=yes
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_header_preproc=no
16429 rm -f conftest.err conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16431 echo "${ECHO_T}$ac_header_preproc" >&6; }
16433 # So? What about this header?
16434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16435 yes:no: )
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16440 ac_header_preproc=yes
16442 no:yes:* )
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16457 esac
16458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 else
16463 eval "$as_ac_Header=\$ac_header_preproc"
16465 ac_res=`eval echo '${'$as_ac_Header'}'`
16466 { echo "$as_me:$LINENO: result: $ac_res" >&5
16467 echo "${ECHO_T}$ac_res" >&6; }
16470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16471 cat >>confdefs.h <<_ACEOF
16472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16473 _ACEOF
16477 done
16484 for ac_header in $ac_header_list
16486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 ac_res=`eval echo '${'$as_ac_Header'}'`
16494 { echo "$as_me:$LINENO: result: $ac_res" >&5
16495 echo "${ECHO_T}$ac_res" >&6; }
16496 else
16497 # Is the header compilable?
16498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16500 cat >conftest.$ac_ext <<_ACEOF
16501 /* confdefs.h. */
16502 _ACEOF
16503 cat confdefs.h >>conftest.$ac_ext
16504 cat >>conftest.$ac_ext <<_ACEOF
16505 /* end confdefs.h. */
16506 $ac_includes_default
16507 #include <$ac_header>
16508 _ACEOF
16509 rm -f conftest.$ac_objext
16510 if { (ac_try="$ac_compile"
16511 case "(($ac_try" in
16512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_compile") 2>conftest.er1
16517 ac_status=$?
16518 grep -v '^ *+' conftest.er1 >conftest.err
16519 rm -f conftest.er1
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } && {
16523 test -z "$ac_c_werror_flag" ||
16524 test ! -s conftest.err
16525 } && test -s conftest.$ac_objext; then
16526 ac_header_compiler=yes
16527 else
16528 echo "$as_me: failed program was:" >&5
16529 sed 's/^/| /' conftest.$ac_ext >&5
16531 ac_header_compiler=no
16534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16536 echo "${ECHO_T}$ac_header_compiler" >&6; }
16538 # Is the header present?
16539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 #include <$ac_header>
16548 _ACEOF
16549 if { (ac_try="$ac_cpp conftest.$ac_ext"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553 esac
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } >/dev/null && {
16562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 }; then
16565 ac_header_preproc=yes
16566 else
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 ac_header_preproc=no
16573 rm -f conftest.err conftest.$ac_ext
16574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16575 echo "${ECHO_T}$ac_header_preproc" >&6; }
16577 # So? What about this header?
16578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16579 yes:no: )
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16584 ac_header_preproc=yes
16586 no:yes:* )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16590 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16594 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16601 esac
16602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607 eval "$as_ac_Header=\$ac_header_preproc"
16609 ac_res=`eval echo '${'$as_ac_Header'}'`
16610 { echo "$as_me:$LINENO: result: $ac_res" >&5
16611 echo "${ECHO_T}$ac_res" >&6; }
16614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16615 cat >>confdefs.h <<_ACEOF
16616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16617 _ACEOF
16621 done
16631 for ac_func in $ac_func_list
16633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638 else
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h. */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16647 #define $ac_func innocuous_$ac_func
16649 /* System header to define __stub macros and hopefully few prototypes,
16650 which can conflict with char $ac_func (); below.
16651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16652 <limits.h> exists even on freestanding compilers. */
16654 #ifdef __STDC__
16655 # include <limits.h>
16656 #else
16657 # include <assert.h>
16658 #endif
16660 #undef $ac_func
16662 /* Override any GCC internal prototype to avoid an error.
16663 Use char because int might match the return type of a GCC
16664 builtin and then its argument prototype would still apply. */
16665 #ifdef __cplusplus
16666 extern "C"
16667 #endif
16668 char $ac_func ();
16669 /* The GNU C library defines this for functions which it implements
16670 to always fail with ENOSYS. Some functions are actually named
16671 something starting with __ and the normal name is an alias. */
16672 #if defined __stub_$ac_func || defined __stub___$ac_func
16673 choke me
16674 #endif
16677 main ()
16679 return $ac_func ();
16681 return 0;
16683 _ACEOF
16684 rm -f conftest.$ac_objext conftest$ac_exeext
16685 if { (ac_try="$ac_link"
16686 case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16689 esac
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_link") 2>conftest.er1
16692 ac_status=$?
16693 grep -v '^ *+' conftest.er1 >conftest.err
16694 rm -f conftest.er1
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && {
16698 test -z "$ac_c_werror_flag" ||
16699 test ! -s conftest.err
16700 } && test -s conftest$ac_exeext &&
16701 $as_test_x conftest$ac_exeext; then
16702 eval "$as_ac_var=yes"
16703 else
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 eval "$as_ac_var=no"
16710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16711 conftest$ac_exeext conftest.$ac_ext
16713 ac_res=`eval echo '${'$as_ac_var'}'`
16714 { echo "$as_me:$LINENO: result: $ac_res" >&5
16715 echo "${ECHO_T}$ac_res" >&6; }
16716 if test `eval echo '${'$as_ac_var'}'` = yes; then
16717 cat >>confdefs.h <<_ACEOF
16718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16719 _ACEOF
16722 done
16740 { echo "$as_me:$LINENO: checking for working mktime" >&5
16741 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16742 if test "${ac_cv_func_working_mktime+set}" = set; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744 else
16745 if test "$cross_compiling" = yes; then
16746 ac_cv_func_working_mktime=no
16747 else
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Test program from Paul Eggert and Tony Leneis. */
16755 #ifdef TIME_WITH_SYS_TIME
16756 # include <sys/time.h>
16757 # include <time.h>
16758 #else
16759 # ifdef HAVE_SYS_TIME_H
16760 # include <sys/time.h>
16761 # else
16762 # include <time.h>
16763 # endif
16764 #endif
16766 #include <limits.h>
16767 #include <stdlib.h>
16769 #ifdef HAVE_UNISTD_H
16770 # include <unistd.h>
16771 #endif
16773 #ifndef HAVE_ALARM
16774 # define alarm(X) /* empty */
16775 #endif
16777 /* Work around redefinition to rpl_putenv by other config tests. */
16778 #undef putenv
16780 static time_t time_t_max;
16781 static time_t time_t_min;
16783 /* Values we'll use to set the TZ environment variable. */
16784 static char *tz_strings[] = {
16785 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16786 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16788 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16790 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16791 Based on a problem report from Andreas Jaeger. */
16792 static int
16793 spring_forward_gap ()
16795 /* glibc (up to about 1998-10-07) failed this test. */
16796 struct tm tm;
16798 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16799 instead of "TZ=America/Vancouver" in order to detect the bug even
16800 on systems that don't support the Olson extension, or don't have the
16801 full zoneinfo tables installed. */
16802 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16804 tm.tm_year = 98;
16805 tm.tm_mon = 3;
16806 tm.tm_mday = 5;
16807 tm.tm_hour = 2;
16808 tm.tm_min = 0;
16809 tm.tm_sec = 0;
16810 tm.tm_isdst = -1;
16811 return mktime (&tm) != (time_t) -1;
16814 static int
16815 mktime_test1 (now)
16816 time_t now;
16818 struct tm *lt;
16819 return ! (lt = localtime (&now)) || mktime (lt) == now;
16822 static int
16823 mktime_test (now)
16824 time_t now;
16826 return (mktime_test1 (now)
16827 && mktime_test1 ((time_t) (time_t_max - now))
16828 && mktime_test1 ((time_t) (time_t_min + now)));
16831 static int
16832 irix_6_4_bug ()
16834 /* Based on code from Ariel Faigon. */
16835 struct tm tm;
16836 tm.tm_year = 96;
16837 tm.tm_mon = 3;
16838 tm.tm_mday = 0;
16839 tm.tm_hour = 0;
16840 tm.tm_min = 0;
16841 tm.tm_sec = 0;
16842 tm.tm_isdst = -1;
16843 mktime (&tm);
16844 return tm.tm_mon == 2 && tm.tm_mday == 31;
16847 static int
16848 bigtime_test (j)
16849 int j;
16851 struct tm tm;
16852 time_t now;
16853 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16854 now = mktime (&tm);
16855 if (now != (time_t) -1)
16857 struct tm *lt = localtime (&now);
16858 if (! (lt
16859 && lt->tm_year == tm.tm_year
16860 && lt->tm_mon == tm.tm_mon
16861 && lt->tm_mday == tm.tm_mday
16862 && lt->tm_hour == tm.tm_hour
16863 && lt->tm_min == tm.tm_min
16864 && lt->tm_sec == tm.tm_sec
16865 && lt->tm_yday == tm.tm_yday
16866 && lt->tm_wday == tm.tm_wday
16867 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16868 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16869 return 0;
16871 return 1;
16874 static int
16875 year_2050_test ()
16877 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16878 ignoring leap seconds. */
16879 unsigned long int answer = 2527315200UL;
16881 struct tm tm;
16882 time_t t;
16883 tm.tm_year = 2050 - 1900;
16884 tm.tm_mon = 2 - 1;
16885 tm.tm_mday = 1;
16886 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16887 tm.tm_isdst = -1;
16889 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16890 instead of "TZ=America/Vancouver" in order to detect the bug even
16891 on systems that don't support the Olson extension, or don't have the
16892 full zoneinfo tables installed. */
16893 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16895 t = mktime (&tm);
16897 /* Check that the result is either a failure, or close enough
16898 to the correct answer that we can assume the discrepancy is
16899 due to leap seconds. */
16900 return (t == (time_t) -1
16901 || (0 < t && answer - 120 <= t && t <= answer + 120));
16905 main ()
16907 time_t t, delta;
16908 int i, j;
16910 /* This test makes some buggy mktime implementations loop.
16911 Give up after 60 seconds; a mktime slower than that
16912 isn't worth using anyway. */
16913 alarm (60);
16915 for (;;)
16917 t = (time_t_max << 1) + 1;
16918 if (t <= time_t_max)
16919 break;
16920 time_t_max = t;
16922 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16924 delta = time_t_max / 997; /* a suitable prime number */
16925 for (i = 0; i < N_STRINGS; i++)
16927 if (tz_strings[i])
16928 putenv (tz_strings[i]);
16930 for (t = 0; t <= time_t_max - delta; t += delta)
16931 if (! mktime_test (t))
16932 return 1;
16933 if (! (mktime_test ((time_t) 1)
16934 && mktime_test ((time_t) (60 * 60))
16935 && mktime_test ((time_t) (60 * 60 * 24))))
16936 return 1;
16938 for (j = 1; ; j <<= 1)
16939 if (! bigtime_test (j))
16940 return 1;
16941 else if (INT_MAX / 2 < j)
16942 break;
16943 if (! bigtime_test (INT_MAX))
16944 return 1;
16946 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16948 _ACEOF
16949 rm -f conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_link") 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16960 { (case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16963 esac
16964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_try") 2>&5
16966 ac_status=$?
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); }; }; then
16969 ac_cv_func_working_mktime=yes
16970 else
16971 echo "$as_me: program exited with status $ac_status" >&5
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ( exit $ac_status )
16976 ac_cv_func_working_mktime=no
16978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16983 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16984 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16985 if test $ac_cv_func_working_mktime = no; then
16986 case " $LIBOBJS " in
16987 *" mktime.$ac_objext "* ) ;;
16988 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16990 esac
16994 if test "$ac_cv_func_working_mktime" = no; then
16996 cat >>confdefs.h <<\_ACEOF
16997 #define BROKEN_MKTIME 1
16998 _ACEOF
17002 ac_have_func=no # yes means we've found a way to get the load average.
17004 # Make sure getloadavg.c is where it belongs, at configure-time.
17005 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17006 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17007 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17008 { (exit 1); exit 1; }; }
17010 ac_save_LIBS=$LIBS
17012 # Check for getloadavg, but be sure not to touch the cache variable.
17013 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17014 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17015 if test "${ac_cv_func_getloadavg+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 else
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h. */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17026 #define getloadavg innocuous_getloadavg
17028 /* System header to define __stub macros and hopefully few prototypes,
17029 which can conflict with char getloadavg (); below.
17030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17031 <limits.h> exists even on freestanding compilers. */
17033 #ifdef __STDC__
17034 # include <limits.h>
17035 #else
17036 # include <assert.h>
17037 #endif
17039 #undef getloadavg
17041 /* Override any GCC internal prototype to avoid an error.
17042 Use char because int might match the return type of a GCC
17043 builtin and then its argument prototype would still apply. */
17044 #ifdef __cplusplus
17045 extern "C"
17046 #endif
17047 char getloadavg ();
17048 /* The GNU C library defines this for functions which it implements
17049 to always fail with ENOSYS. Some functions are actually named
17050 something starting with __ and the normal name is an alias. */
17051 #if defined __stub_getloadavg || defined __stub___getloadavg
17052 choke me
17053 #endif
17056 main ()
17058 return getloadavg ();
17060 return 0;
17062 _ACEOF
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest$ac_exeext &&
17080 $as_test_x conftest$ac_exeext; then
17081 ac_cv_func_getloadavg=yes
17082 else
17083 echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 ac_cv_func_getloadavg=no
17089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17092 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17093 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17094 if test $ac_cv_func_getloadavg = yes; then
17095 exit 0
17096 else
17097 exit 1
17099 ) && ac_have_func=yes
17101 # On HPUX9, an unprivileged user can get load averages through this function.
17103 for ac_func in pstat_getdynamic
17105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111 cat >conftest.$ac_ext <<_ACEOF
17112 /* confdefs.h. */
17113 _ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17119 #define $ac_func innocuous_$ac_func
17121 /* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17126 #ifdef __STDC__
17127 # include <limits.h>
17128 #else
17129 # include <assert.h>
17130 #endif
17132 #undef $ac_func
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char $ac_func ();
17141 /* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144 #if defined __stub_$ac_func || defined __stub___$ac_func
17145 choke me
17146 #endif
17149 main ()
17151 return $ac_func ();
17153 return 0;
17155 _ACEOF
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_link") 2>conftest.er1
17164 ac_status=$?
17165 grep -v '^ *+' conftest.er1 >conftest.err
17166 rm -f conftest.er1
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && {
17170 test -z "$ac_c_werror_flag" ||
17171 test ! -s conftest.err
17172 } && test -s conftest$ac_exeext &&
17173 $as_test_x conftest$ac_exeext; then
17174 eval "$as_ac_var=yes"
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 eval "$as_ac_var=no"
17182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17183 conftest$ac_exeext conftest.$ac_ext
17185 ac_res=`eval echo '${'$as_ac_var'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188 if test `eval echo '${'$as_ac_var'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17191 _ACEOF
17194 done
17197 # Solaris has libkstat which does not require root.
17199 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17200 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17201 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204 ac_check_lib_save_LIBS=$LIBS
17205 LIBS="-lkstat $LIBS"
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17213 /* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 char kstat_open ();
17221 main ()
17223 return kstat_open ();
17225 return 0;
17227 _ACEOF
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (ac_try="$ac_link"
17230 case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_link") 2>conftest.er1
17236 ac_status=$?
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest$ac_exeext &&
17245 $as_test_x conftest$ac_exeext; then
17246 ac_cv_lib_kstat_kstat_open=yes
17247 else
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ac_cv_lib_kstat_kstat_open=no
17254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17256 LIBS=$ac_check_lib_save_LIBS
17258 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17259 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17260 if test $ac_cv_lib_kstat_kstat_open = yes; then
17261 cat >>confdefs.h <<_ACEOF
17262 #define HAVE_LIBKSTAT 1
17263 _ACEOF
17265 LIBS="-lkstat $LIBS"
17269 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17271 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17272 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17273 # to get the right answer into the cache.
17274 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17275 if test $ac_have_func = no; then
17276 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17277 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17278 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 else
17281 ac_check_lib_save_LIBS=$LIBS
17282 LIBS="-lelf $LIBS"
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17290 /* Override any GCC internal prototype to avoid an error.
17291 Use char because int might match the return type of a GCC
17292 builtin and then its argument prototype would still apply. */
17293 #ifdef __cplusplus
17294 extern "C"
17295 #endif
17296 char elf_begin ();
17298 main ()
17300 return elf_begin ();
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext conftest$ac_exeext
17306 if { (ac_try="$ac_link"
17307 case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310 esac
17311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_link") 2>conftest.er1
17313 ac_status=$?
17314 grep -v '^ *+' conftest.er1 >conftest.err
17315 rm -f conftest.er1
17316 cat conftest.err >&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest$ac_exeext &&
17322 $as_test_x conftest$ac_exeext; then
17323 ac_cv_lib_elf_elf_begin=yes
17324 else
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 ac_cv_lib_elf_elf_begin=no
17331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17332 conftest$ac_exeext conftest.$ac_ext
17333 LIBS=$ac_check_lib_save_LIBS
17335 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17336 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17337 if test $ac_cv_lib_elf_elf_begin = yes; then
17338 LIBS="-lelf $LIBS"
17342 if test $ac_have_func = no; then
17343 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17344 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17345 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lkvm $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h. */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17360 #ifdef __cplusplus
17361 extern "C"
17362 #endif
17363 char kvm_open ();
17365 main ()
17367 return kvm_open ();
17369 return 0;
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17380 ac_status=$?
17381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); } && {
17386 test -z "$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 } && test -s conftest$ac_exeext &&
17389 $as_test_x conftest$ac_exeext; then
17390 ac_cv_lib_kvm_kvm_open=yes
17391 else
17392 echo "$as_me: failed program was:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 ac_cv_lib_kvm_kvm_open=no
17398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17399 conftest$ac_exeext conftest.$ac_ext
17400 LIBS=$ac_check_lib_save_LIBS
17402 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17403 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17404 if test $ac_cv_lib_kvm_kvm_open = yes; then
17405 LIBS="-lkvm $LIBS"
17408 # Check for the 4.4BSD definition of getloadavg.
17409 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17410 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17411 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414 ac_check_lib_save_LIBS=$LIBS
17415 LIBS="-lutil $LIBS"
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h. */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17423 /* Override any GCC internal prototype to avoid an error.
17424 Use char because int might match the return type of a GCC
17425 builtin and then its argument prototype would still apply. */
17426 #ifdef __cplusplus
17427 extern "C"
17428 #endif
17429 char getloadavg ();
17431 main ()
17433 return getloadavg ();
17435 return 0;
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_link") 2>conftest.er1
17446 ac_status=$?
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext &&
17455 $as_test_x conftest$ac_exeext; then
17456 ac_cv_lib_util_getloadavg=yes
17457 else
17458 echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17461 ac_cv_lib_util_getloadavg=no
17464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17465 conftest$ac_exeext conftest.$ac_ext
17466 LIBS=$ac_check_lib_save_LIBS
17468 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17469 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17470 if test $ac_cv_lib_util_getloadavg = yes; then
17471 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17476 if test $ac_have_func = no; then
17477 # There is a commonly available library for RS/6000 AIX.
17478 # Since it is not a standard part of AIX, it might be installed locally.
17479 ac_getloadavg_LIBS=$LIBS
17480 LIBS="-L/usr/local/lib $LIBS"
17481 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17482 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17483 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17484 echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486 ac_check_lib_save_LIBS=$LIBS
17487 LIBS="-lgetloadavg $LIBS"
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char getloadavg ();
17503 main ()
17505 return getloadavg ();
17507 return 0;
17509 _ACEOF
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515 esac
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17518 ac_status=$?
17519 grep -v '^ *+' conftest.er1 >conftest.err
17520 rm -f conftest.er1
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } && {
17524 test -z "$ac_c_werror_flag" ||
17525 test ! -s conftest.err
17526 } && test -s conftest$ac_exeext &&
17527 $as_test_x conftest$ac_exeext; then
17528 ac_cv_lib_getloadavg_getloadavg=yes
17529 else
17530 echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_cv_lib_getloadavg_getloadavg=no
17536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17537 conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17540 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17541 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17542 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17543 LIBS="-lgetloadavg $LIBS"
17544 else
17545 LIBS=$ac_getloadavg_LIBS
17550 # Make sure it is really in the library, if we think we found it,
17551 # otherwise set up the replacement function.
17553 for ac_func in getloadavg
17555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561 cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h. */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17569 #define $ac_func innocuous_$ac_func
17571 /* System header to define __stub macros and hopefully few prototypes,
17572 which can conflict with char $ac_func (); below.
17573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17574 <limits.h> exists even on freestanding compilers. */
17576 #ifdef __STDC__
17577 # include <limits.h>
17578 #else
17579 # include <assert.h>
17580 #endif
17582 #undef $ac_func
17584 /* Override any GCC internal prototype to avoid an error.
17585 Use char because int might match the return type of a GCC
17586 builtin and then its argument prototype would still apply. */
17587 #ifdef __cplusplus
17588 extern "C"
17589 #endif
17590 char $ac_func ();
17591 /* The GNU C library defines this for functions which it implements
17592 to always fail with ENOSYS. Some functions are actually named
17593 something starting with __ and the normal name is an alias. */
17594 #if defined __stub_$ac_func || defined __stub___$ac_func
17595 choke me
17596 #endif
17599 main ()
17601 return $ac_func ();
17603 return 0;
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 eval "$as_ac_var=yes"
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 eval "$as_ac_var=no"
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17635 ac_res=`eval echo '${'$as_ac_var'}'`
17636 { echo "$as_me:$LINENO: result: $ac_res" >&5
17637 echo "${ECHO_T}$ac_res" >&6; }
17638 if test `eval echo '${'$as_ac_var'}'` = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17641 _ACEOF
17643 else
17644 case " $LIBOBJS " in
17645 *" getloadavg.$ac_objext "* ) ;;
17646 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17648 esac
17651 cat >>confdefs.h <<\_ACEOF
17652 #define C_GETLOADAVG 1
17653 _ACEOF
17655 # Figure out what our getloadavg.c needs.
17656 ac_have_func=no
17657 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17658 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17659 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17660 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17664 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17665 else
17666 # Is the header compilable?
17667 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17668 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h. */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h. */
17675 $ac_includes_default
17676 #include <sys/dg_sys_info.h>
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_compile") 2>conftest.er1
17686 ac_status=$?
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } && {
17692 test -z "$ac_c_werror_flag" ||
17693 test ! -s conftest.err
17694 } && test -s conftest.$ac_objext; then
17695 ac_header_compiler=yes
17696 else
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_compiler=no
17703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17705 echo "${ECHO_T}$ac_header_compiler" >&6; }
17707 # Is the header present?
17708 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17709 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17710 cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h. */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 #include <sys/dg_sys_info.h>
17717 _ACEOF
17718 if { (ac_try="$ac_cpp conftest.$ac_ext"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } >/dev/null && {
17731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 }; then
17734 ac_header_preproc=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17739 ac_header_preproc=no
17742 rm -f conftest.err conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17744 echo "${ECHO_T}$ac_header_preproc" >&6; }
17746 # So? What about this header?
17747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17748 yes:no: )
17749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17750 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17752 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17753 ac_header_preproc=yes
17755 no:yes:* )
17756 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17757 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17759 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17761 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17763 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17765 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17766 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17767 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17770 esac
17771 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17772 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17773 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17778 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17779 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17782 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17783 ac_have_func=yes
17785 cat >>confdefs.h <<\_ACEOF
17786 #define DGUX 1
17787 _ACEOF
17790 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17791 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17792 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-ldgc $LIBS"
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h. */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17804 /* Override any GCC internal prototype to avoid an error.
17805 Use char because int might match the return type of a GCC
17806 builtin and then its argument prototype would still apply. */
17807 #ifdef __cplusplus
17808 extern "C"
17809 #endif
17810 char dg_sys_info ();
17812 main ()
17814 return dg_sys_info ();
17816 return 0;
17818 _ACEOF
17819 rm -f conftest.$ac_objext conftest$ac_exeext
17820 if { (ac_try="$ac_link"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_link") 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest$ac_exeext &&
17836 $as_test_x conftest$ac_exeext; then
17837 ac_cv_lib_dgc_dg_sys_info=yes
17838 else
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17842 ac_cv_lib_dgc_dg_sys_info=no
17845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17850 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17851 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17852 cat >>confdefs.h <<_ACEOF
17853 #define HAVE_LIBDGC 1
17854 _ACEOF
17856 LIBS="-ldgc $LIBS"
17864 if test "${ac_cv_header_locale_h+set}" = set; then
17865 { echo "$as_me:$LINENO: checking for locale.h" >&5
17866 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17867 if test "${ac_cv_header_locale_h+set}" = set; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17870 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17871 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17872 else
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17875 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17877 /* confdefs.h. */
17878 _ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <locale.h>
17884 _ACEOF
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17893 ac_status=$?
17894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_header_compiler=yes
17903 else
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_header_compiler=no
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17916 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <locale.h>
17924 _ACEOF
17925 if { (ac_try="$ac_cpp conftest.$ac_ext"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17932 ac_status=$?
17933 grep -v '^ *+' conftest.er1 >conftest.err
17934 rm -f conftest.er1
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17940 }; then
17941 ac_header_preproc=yes
17942 else
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_header_preproc=no
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17955 yes:no: )
17956 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17957 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17959 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17960 ac_header_preproc=yes
17962 no:yes:* )
17963 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17964 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17966 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17967 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17968 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17969 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17970 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17972 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17974 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17977 esac
17978 { echo "$as_me:$LINENO: checking for locale.h" >&5
17979 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17980 if test "${ac_cv_header_locale_h+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 else
17983 ac_cv_header_locale_h=$ac_header_preproc
17985 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17992 for ac_func in setlocale
17994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000 cat >conftest.$ac_ext <<_ACEOF
18001 /* confdefs.h. */
18002 _ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18008 #define $ac_func innocuous_$ac_func
18010 /* System header to define __stub macros and hopefully few prototypes,
18011 which can conflict with char $ac_func (); below.
18012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18013 <limits.h> exists even on freestanding compilers. */
18015 #ifdef __STDC__
18016 # include <limits.h>
18017 #else
18018 # include <assert.h>
18019 #endif
18021 #undef $ac_func
18023 /* Override any GCC internal prototype to avoid an error.
18024 Use char because int might match the return type of a GCC
18025 builtin and then its argument prototype would still apply. */
18026 #ifdef __cplusplus
18027 extern "C"
18028 #endif
18029 char $ac_func ();
18030 /* The GNU C library defines this for functions which it implements
18031 to always fail with ENOSYS. Some functions are actually named
18032 something starting with __ and the normal name is an alias. */
18033 #if defined __stub_$ac_func || defined __stub___$ac_func
18034 choke me
18035 #endif
18038 main ()
18040 return $ac_func ();
18042 return 0;
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_link") 2>conftest.er1
18053 ac_status=$?
18054 grep -v '^ *+' conftest.er1 >conftest.err
18055 rm -f conftest.er1
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest$ac_exeext &&
18062 $as_test_x conftest$ac_exeext; then
18063 eval "$as_ac_var=yes"
18064 else
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 eval "$as_ac_var=no"
18071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18072 conftest$ac_exeext conftest.$ac_ext
18074 ac_res=`eval echo '${'$as_ac_var'}'`
18075 { echo "$as_me:$LINENO: result: $ac_res" >&5
18076 echo "${ECHO_T}$ac_res" >&6; }
18077 if test `eval echo '${'$as_ac_var'}'` = yes; then
18078 cat >>confdefs.h <<_ACEOF
18079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18080 _ACEOF
18083 done
18086 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18087 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18088 # Irix 4.0.5F has the header but not the library.
18089 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18090 ac_have_func=yes
18092 cat >>confdefs.h <<\_ACEOF
18093 #define SVR4 1
18094 _ACEOF
18098 if test $ac_have_func = no; then
18099 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18100 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18101 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18102 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18106 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18107 else
18108 # Is the header compilable?
18109 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18110 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18111 cat >conftest.$ac_ext <<_ACEOF
18112 /* confdefs.h. */
18113 _ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18117 $ac_includes_default
18118 #include <inq_stats/cpustats.h>
18119 _ACEOF
18120 rm -f conftest.$ac_objext
18121 if { (ac_try="$ac_compile"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_compile") 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_c_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest.$ac_objext; then
18137 ac_header_compiler=yes
18138 else
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 ac_header_compiler=no
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18147 echo "${ECHO_T}$ac_header_compiler" >&6; }
18149 # Is the header present?
18150 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18151 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18152 cat >conftest.$ac_ext <<_ACEOF
18153 /* confdefs.h. */
18154 _ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <inq_stats/cpustats.h>
18159 _ACEOF
18160 if { (ac_try="$ac_cpp conftest.$ac_ext"
18161 case "(($ac_try" in
18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18163 *) ac_try_echo=$ac_try;;
18164 esac
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18167 ac_status=$?
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } >/dev/null && {
18173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 }; then
18176 ac_header_preproc=yes
18177 else
18178 echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18181 ac_header_preproc=no
18184 rm -f conftest.err conftest.$ac_ext
18185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18186 echo "${ECHO_T}$ac_header_preproc" >&6; }
18188 # So? What about this header?
18189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18190 yes:no: )
18191 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18192 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18193 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18194 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18195 ac_header_preproc=yes
18197 no:yes:* )
18198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18199 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18201 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18202 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18203 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18204 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18205 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18206 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18207 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18208 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18209 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18212 esac
18213 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18214 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18215 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18220 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18221 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18224 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18225 ac_have_func=yes
18227 cat >>confdefs.h <<\_ACEOF
18228 #define UMAX 1
18229 _ACEOF
18232 cat >>confdefs.h <<\_ACEOF
18233 #define UMAX4_3 1
18234 _ACEOF
18241 if test $ac_have_func = no; then
18242 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18243 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18244 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18245 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18249 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18250 else
18251 # Is the header compilable?
18252 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18253 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18254 cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h. */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18260 $ac_includes_default
18261 #include <sys/cpustats.h>
18262 _ACEOF
18263 rm -f conftest.$ac_objext
18264 if { (ac_try="$ac_compile"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_compile") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && {
18277 test -z "$ac_c_werror_flag" ||
18278 test ! -s conftest.err
18279 } && test -s conftest.$ac_objext; then
18280 ac_header_compiler=yes
18281 else
18282 echo "$as_me: failed program was:" >&5
18283 sed 's/^/| /' conftest.$ac_ext >&5
18285 ac_header_compiler=no
18288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18290 echo "${ECHO_T}$ac_header_compiler" >&6; }
18292 # Is the header present?
18293 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18294 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18295 cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h. */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <sys/cpustats.h>
18302 _ACEOF
18303 if { (ac_try="$ac_cpp conftest.$ac_ext"
18304 case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18310 ac_status=$?
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } >/dev/null && {
18316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18317 test ! -s conftest.err
18318 }; then
18319 ac_header_preproc=yes
18320 else
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_header_preproc=no
18327 rm -f conftest.err conftest.$ac_ext
18328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18329 echo "${ECHO_T}$ac_header_preproc" >&6; }
18331 # So? What about this header?
18332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18333 yes:no: )
18334 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18335 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18336 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18337 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18338 ac_header_preproc=yes
18340 no:yes:* )
18341 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18342 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18344 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18345 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18346 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18347 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18348 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18349 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18350 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18352 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18355 esac
18356 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18357 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18358 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18364 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18367 if test $ac_cv_header_sys_cpustats_h = yes; then
18368 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18369 #define UMAX 1
18370 _ACEOF
18377 if test $ac_have_func = no; then
18379 for ac_header in mach/mach.h
18381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18388 ac_res=`eval echo '${'$as_ac_Header'}'`
18389 { echo "$as_me:$LINENO: result: $ac_res" >&5
18390 echo "${ECHO_T}$ac_res" >&6; }
18391 else
18392 # Is the header compilable?
18393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 $ac_includes_default
18402 #include <$ac_header>
18403 _ACEOF
18404 rm -f conftest.$ac_objext
18405 if { (ac_try="$ac_compile"
18406 case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409 esac
18410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_compile") 2>conftest.er1
18412 ac_status=$?
18413 grep -v '^ *+' conftest.er1 >conftest.err
18414 rm -f conftest.er1
18415 cat conftest.err >&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && {
18418 test -z "$ac_c_werror_flag" ||
18419 test ! -s conftest.err
18420 } && test -s conftest.$ac_objext; then
18421 ac_header_compiler=yes
18422 else
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_header_compiler=no
18429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18431 echo "${ECHO_T}$ac_header_compiler" >&6; }
18433 # Is the header present?
18434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18436 cat >conftest.$ac_ext <<_ACEOF
18437 /* confdefs.h. */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18442 #include <$ac_header>
18443 _ACEOF
18444 if { (ac_try="$ac_cpp conftest.$ac_ext"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448 esac
18449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } >/dev/null && {
18457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18458 test ! -s conftest.err
18459 }; then
18460 ac_header_preproc=yes
18461 else
18462 echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18465 ac_header_preproc=no
18468 rm -f conftest.err conftest.$ac_ext
18469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18470 echo "${ECHO_T}$ac_header_preproc" >&6; }
18472 # So? What about this header?
18473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18474 yes:no: )
18475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18479 ac_header_preproc=yes
18481 no:yes:* )
18482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18496 esac
18497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18500 echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502 eval "$as_ac_Header=\$ac_header_preproc"
18504 ac_res=`eval echo '${'$as_ac_Header'}'`
18505 { echo "$as_me:$LINENO: result: $ac_res" >&5
18506 echo "${ECHO_T}$ac_res" >&6; }
18509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18510 cat >>confdefs.h <<_ACEOF
18511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18512 _ACEOF
18516 done
18521 for ac_header in nlist.h
18523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18528 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 ac_res=`eval echo '${'$as_ac_Header'}'`
18531 { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 else
18534 # Is the header compilable?
18535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 $ac_includes_default
18544 #include <$ac_header>
18545 _ACEOF
18546 rm -f conftest.$ac_objext
18547 if { (ac_try="$ac_compile"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_compile") 2>conftest.er1
18554 ac_status=$?
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest.$ac_objext; then
18563 ac_header_compiler=yes
18564 else
18565 echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18568 ac_header_compiler=no
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18573 echo "${ECHO_T}$ac_header_compiler" >&6; }
18575 # Is the header present?
18576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 #include <$ac_header>
18585 _ACEOF
18586 if { (ac_try="$ac_cpp conftest.$ac_ext"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } >/dev/null && {
18599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 }; then
18602 ac_header_preproc=yes
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_header_preproc=no
18610 rm -f conftest.err conftest.$ac_ext
18611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18612 echo "${ECHO_T}$ac_header_preproc" >&6; }
18614 # So? What about this header?
18615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18616 yes:no: )
18617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18621 ac_header_preproc=yes
18623 no:yes:* )
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18638 esac
18639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643 else
18644 eval "$as_ac_Header=\$ac_header_preproc"
18646 ac_res=`eval echo '${'$as_ac_Header'}'`
18647 { echo "$as_me:$LINENO: result: $ac_res" >&5
18648 echo "${ECHO_T}$ac_res" >&6; }
18651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18652 cat >>confdefs.h <<_ACEOF
18653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18654 _ACEOF
18655 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18656 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18657 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h. */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 #include <nlist.h>
18669 main ()
18671 static struct nlist ac_aggr;
18672 if (ac_aggr.n_un.n_name)
18673 return 0;
18675 return 0;
18677 _ACEOF
18678 rm -f conftest.$ac_objext
18679 if { (ac_try="$ac_compile"
18680 case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_compile") 2>conftest.er1
18686 ac_status=$?
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } && {
18692 test -z "$ac_c_werror_flag" ||
18693 test ! -s conftest.err
18694 } && test -s conftest.$ac_objext; then
18695 ac_cv_member_struct_nlist_n_un_n_name=yes
18696 else
18697 echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 cat >conftest.$ac_ext <<_ACEOF
18701 /* confdefs.h. */
18702 _ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18706 #include <nlist.h>
18709 main ()
18711 static struct nlist ac_aggr;
18712 if (sizeof ac_aggr.n_un.n_name)
18713 return 0;
18715 return 0;
18717 _ACEOF
18718 rm -f conftest.$ac_objext
18719 if { (ac_try="$ac_compile"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_compile") 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest.$ac_objext; then
18735 ac_cv_member_struct_nlist_n_un_n_name=yes
18736 else
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_member_struct_nlist_n_un_n_name=no
18743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18749 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18750 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18752 cat >>confdefs.h <<_ACEOF
18753 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18754 _ACEOF
18757 cat >>confdefs.h <<\_ACEOF
18758 #define NLIST_NAME_UNION 1
18759 _ACEOF
18766 done
18769 done
18772 # Some definitions of getloadavg require that the program be installed setgid.
18773 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18774 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18775 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18785 #ifdef LDAV_PRIVILEGED
18786 Yowza Am I SETGID yet
18787 #endif
18788 _ACEOF
18789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18790 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18791 ac_cv_func_getloadavg_setgid=yes
18792 else
18793 ac_cv_func_getloadavg_setgid=no
18795 rm -f conftest*
18798 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18799 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18800 if test $ac_cv_func_getloadavg_setgid = yes; then
18801 NEED_SETGID=true
18803 cat >>confdefs.h <<\_ACEOF
18804 #define GETLOADAVG_PRIVILEGED 1
18805 _ACEOF
18807 else
18808 NEED_SETGID=false
18811 if test $ac_cv_func_getloadavg_setgid = yes; then
18812 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18813 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18814 if test "${ac_cv_group_kmem+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18816 else
18817 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18818 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18819 # If we got an error (system does not support symlinks), try without -L.
18820 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18821 ac_cv_group_kmem=`echo $ac_ls_output \
18822 | sed -ne 's/[ ][ ]*/ /g;
18823 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18824 / /s/.* //;p;'`
18827 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18828 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18829 KMEM_GROUP=$ac_cv_group_kmem
18831 if test "x$ac_save_LIBS" = x; then
18832 GETLOADAVG_LIBS=$LIBS
18833 else
18834 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18836 LIBS=$ac_save_LIBS
18840 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18841 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18842 if test "${ac_cv_sys_largefile_source+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845 while :; do
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h. */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 #include <stdio.h>
18854 main ()
18856 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18858 return 0;
18860 _ACEOF
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_link") 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } && {
18875 test -z "$ac_c_werror_flag" ||
18876 test ! -s conftest.err
18877 } && test -s conftest$ac_exeext &&
18878 $as_test_x conftest$ac_exeext; then
18879 ac_cv_sys_largefile_source=no; break
18880 else
18881 echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18888 conftest$ac_exeext conftest.$ac_ext
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 #define _LARGEFILE_SOURCE 1
18896 #include <stdio.h>
18898 main ()
18900 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18902 return 0;
18904 _ACEOF
18905 rm -f conftest.$ac_objext conftest$ac_exeext
18906 if { (ac_try="$ac_link"
18907 case "(($ac_try" in
18908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18910 esac
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18913 ac_status=$?
18914 grep -v '^ *+' conftest.er1 >conftest.err
18915 rm -f conftest.er1
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && {
18919 test -z "$ac_c_werror_flag" ||
18920 test ! -s conftest.err
18921 } && test -s conftest$ac_exeext &&
18922 $as_test_x conftest$ac_exeext; then
18923 ac_cv_sys_largefile_source=1; break
18924 else
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
18933 ac_cv_sys_largefile_source=unknown
18934 break
18935 done
18937 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18938 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18939 case $ac_cv_sys_largefile_source in #(
18940 no | unknown) ;;
18942 cat >>confdefs.h <<_ACEOF
18943 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18944 _ACEOF
18946 esac
18947 rm -f conftest*
18949 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18950 # in glibc 2.1.3, but that breaks too many other things.
18951 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18952 if test $ac_cv_sys_largefile_source != unknown; then
18954 cat >>confdefs.h <<\_ACEOF
18955 #define HAVE_FSEEKO 1
18956 _ACEOF
18961 # Configure getopt.
18962 # getopt.m4 serial 10
18964 # The getopt module assume you want GNU getopt, with getopt_long etc,
18965 # rather than vanilla POSIX getopt. This means your your code should
18966 # always include <getopt.h> for the getopt prototypes.
18978 # Prerequisites of lib/getopt*.
18983 GETOPT_H=
18985 for ac_header in getopt.h
18987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18994 ac_res=`eval echo '${'$as_ac_Header'}'`
18995 { echo "$as_me:$LINENO: result: $ac_res" >&5
18996 echo "${ECHO_T}$ac_res" >&6; }
18997 else
18998 # Is the header compilable?
18999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19001 cat >conftest.$ac_ext <<_ACEOF
19002 /* confdefs.h. */
19003 _ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 $ac_includes_default
19008 #include <$ac_header>
19009 _ACEOF
19010 rm -f conftest.$ac_objext
19011 if { (ac_try="$ac_compile"
19012 case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_compile") 2>conftest.er1
19018 ac_status=$?
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && {
19024 test -z "$ac_c_werror_flag" ||
19025 test ! -s conftest.err
19026 } && test -s conftest.$ac_objext; then
19027 ac_header_compiler=yes
19028 else
19029 echo "$as_me: failed program was:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19032 ac_header_compiler=no
19035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19037 echo "${ECHO_T}$ac_header_compiler" >&6; }
19039 # Is the header present?
19040 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <$ac_header>
19049 _ACEOF
19050 if { (ac_try="$ac_cpp conftest.$ac_ext"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19057 ac_status=$?
19058 grep -v '^ *+' conftest.er1 >conftest.err
19059 rm -f conftest.er1
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } >/dev/null && {
19063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 }; then
19066 ac_header_preproc=yes
19067 else
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_preproc=no
19074 rm -f conftest.err conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19076 echo "${ECHO_T}$ac_header_preproc" >&6; }
19078 # So? What about this header?
19079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19080 yes:no: )
19081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19085 ac_header_preproc=yes
19087 no:yes:* )
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19095 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19102 esac
19103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 eval "$as_ac_Header=\$ac_header_preproc"
19110 ac_res=`eval echo '${'$as_ac_Header'}'`
19111 { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19116 cat >>confdefs.h <<_ACEOF
19117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19118 _ACEOF
19120 else
19121 GETOPT_H=getopt.h
19124 done
19126 if test -z "$GETOPT_H"; then
19128 for ac_func in getopt_long_only
19130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19144 #define $ac_func innocuous_$ac_func
19146 /* System header to define __stub macros and hopefully few prototypes,
19147 which can conflict with char $ac_func (); below.
19148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19149 <limits.h> exists even on freestanding compilers. */
19151 #ifdef __STDC__
19152 # include <limits.h>
19153 #else
19154 # include <assert.h>
19155 #endif
19157 #undef $ac_func
19159 /* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19162 #ifdef __cplusplus
19163 extern "C"
19164 #endif
19165 char $ac_func ();
19166 /* The GNU C library defines this for functions which it implements
19167 to always fail with ENOSYS. Some functions are actually named
19168 something starting with __ and the normal name is an alias. */
19169 #if defined __stub_$ac_func || defined __stub___$ac_func
19170 choke me
19171 #endif
19174 main ()
19176 return $ac_func ();
19178 return 0;
19180 _ACEOF
19181 rm -f conftest.$ac_objext conftest$ac_exeext
19182 if { (ac_try="$ac_link"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_link") 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest$ac_exeext &&
19198 $as_test_x conftest$ac_exeext; then
19199 eval "$as_ac_var=yes"
19200 else
19201 echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 eval "$as_ac_var=no"
19207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19208 conftest$ac_exeext conftest.$ac_ext
19210 ac_res=`eval echo '${'$as_ac_var'}'`
19211 { echo "$as_me:$LINENO: result: $ac_res" >&5
19212 echo "${ECHO_T}$ac_res" >&6; }
19213 if test `eval echo '${'$as_ac_var'}'` = yes; then
19214 cat >>confdefs.h <<_ACEOF
19215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19216 _ACEOF
19218 else
19219 GETOPT_H=getopt.h
19221 done
19225 if test -z "$GETOPT_H"; then
19226 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19227 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19228 if test "${ac_cv_have_decl_optreset+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h. */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 #include <getopt.h>
19240 main ()
19242 #ifndef optreset
19243 (void) optreset;
19244 #endif
19247 return 0;
19249 _ACEOF
19250 rm -f conftest.$ac_objext
19251 if { (ac_try="$ac_compile"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19255 esac
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_compile") 2>conftest.er1
19258 ac_status=$?
19259 grep -v '^ *+' conftest.er1 >conftest.err
19260 rm -f conftest.er1
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } && {
19264 test -z "$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19266 } && test -s conftest.$ac_objext; then
19267 ac_cv_have_decl_optreset=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_cv_have_decl_optreset=no
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19278 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19279 if test $ac_cv_have_decl_optreset = yes; then
19280 GETOPT_H=getopt.h
19285 if test -z "$GETOPT_H"; then
19286 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19287 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19288 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291 if test "$cross_compiling" = yes; then
19292 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19293 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19294 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19295 echo $ECHO_N "(cached) $ECHO_C" >&6
19296 else
19297 cat >conftest.$ac_ext <<_ACEOF
19298 /* confdefs.h. */
19299 _ACEOF
19300 cat confdefs.h >>conftest.$ac_ext
19301 cat >>conftest.$ac_ext <<_ACEOF
19302 /* end confdefs.h. */
19303 #include <getopt.h>
19306 main ()
19308 #ifndef getopt_clip
19309 (void) getopt_clip;
19310 #endif
19313 return 0;
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_compile") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest.$ac_objext; then
19333 ac_cv_have_decl_getopt_clip=yes
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 ac_cv_have_decl_getopt_clip=no
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19344 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19345 if test $ac_cv_have_decl_getopt_clip = yes; then
19346 gl_cv_func_gnu_getopt=no
19347 else
19348 gl_cv_func_gnu_getopt=yes
19351 else
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <getopt.h>
19360 main ()
19363 char *myargv[3];
19364 myargv[0] = "conftest";
19365 myargv[1] = "-+";
19366 myargv[2] = 0;
19367 return getopt (2, myargv, "+a") != '?';
19370 return 0;
19372 _ACEOF
19373 rm -f conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 gl_cv_func_gnu_getopt=yes
19394 else
19395 echo "$as_me: program exited with status $ac_status" >&5
19396 echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19399 ( exit $ac_status )
19400 gl_cv_func_gnu_getopt=no
19402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19407 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19408 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19409 if test "$gl_cv_func_gnu_getopt" = "no"; then
19410 GETOPT_H=getopt.h
19416 if test -n "$GETOPT_H"; then
19419 GETOPT_H=getopt.h
19421 cat >>confdefs.h <<\_ACEOF
19422 #define __GETOPT_PREFIX rpl_
19423 _ACEOF
19428 GETOPTOBJS='getopt.o getopt1.o'
19435 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19436 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19437 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440 # Use it with a single arg.
19441 cat >conftest.$ac_ext <<_ACEOF
19442 /* confdefs.h. */
19443 _ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 $ac_includes_default
19449 main ()
19451 getpgrp (0);
19453 return 0;
19455 _ACEOF
19456 rm -f conftest.$ac_objext
19457 if { (ac_try="$ac_compile"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19463 (eval "$ac_compile") 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } && {
19470 test -z "$ac_c_werror_flag" ||
19471 test ! -s conftest.err
19472 } && test -s conftest.$ac_objext; then
19473 ac_cv_func_getpgrp_void=no
19474 else
19475 echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19478 ac_cv_func_getpgrp_void=yes
19481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19484 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19485 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19486 if test $ac_cv_func_getpgrp_void = yes; then
19488 cat >>confdefs.h <<\_ACEOF
19489 #define GETPGRP_VOID 1
19490 _ACEOF
19496 for ac_func in strftime
19498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19512 #define $ac_func innocuous_$ac_func
19514 /* System header to define __stub macros and hopefully few prototypes,
19515 which can conflict with char $ac_func (); below.
19516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19517 <limits.h> exists even on freestanding compilers. */
19519 #ifdef __STDC__
19520 # include <limits.h>
19521 #else
19522 # include <assert.h>
19523 #endif
19525 #undef $ac_func
19527 /* Override any GCC internal prototype to avoid an error.
19528 Use char because int might match the return type of a GCC
19529 builtin and then its argument prototype would still apply. */
19530 #ifdef __cplusplus
19531 extern "C"
19532 #endif
19533 char $ac_func ();
19534 /* The GNU C library defines this for functions which it implements
19535 to always fail with ENOSYS. Some functions are actually named
19536 something starting with __ and the normal name is an alias. */
19537 #if defined __stub_$ac_func || defined __stub___$ac_func
19538 choke me
19539 #endif
19542 main ()
19544 return $ac_func ();
19546 return 0;
19548 _ACEOF
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_link") 2>conftest.er1
19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest$ac_exeext &&
19566 $as_test_x conftest$ac_exeext; then
19567 eval "$as_ac_var=yes"
19568 else
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 eval "$as_ac_var=no"
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576 conftest$ac_exeext conftest.$ac_ext
19578 ac_res=`eval echo '${'$as_ac_var'}'`
19579 { echo "$as_me:$LINENO: result: $ac_res" >&5
19580 echo "${ECHO_T}$ac_res" >&6; }
19581 if test `eval echo '${'$as_ac_var'}'` = yes; then
19582 cat >>confdefs.h <<_ACEOF
19583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19584 _ACEOF
19586 else
19587 # strftime is in -lintl on SCO UNIX.
19588 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19589 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19590 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19592 else
19593 ac_check_lib_save_LIBS=$LIBS
19594 LIBS="-lintl $LIBS"
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h. */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19602 /* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19605 #ifdef __cplusplus
19606 extern "C"
19607 #endif
19608 char strftime ();
19610 main ()
19612 return strftime ();
19614 return 0;
19616 _ACEOF
19617 rm -f conftest.$ac_objext conftest$ac_exeext
19618 if { (ac_try="$ac_link"
19619 case "(($ac_try" in
19620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621 *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624 (eval "$ac_link") 2>conftest.er1
19625 ac_status=$?
19626 grep -v '^ *+' conftest.er1 >conftest.err
19627 rm -f conftest.er1
19628 cat conftest.err >&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } && {
19631 test -z "$ac_c_werror_flag" ||
19632 test ! -s conftest.err
19633 } && test -s conftest$ac_exeext &&
19634 $as_test_x conftest$ac_exeext; then
19635 ac_cv_lib_intl_strftime=yes
19636 else
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_cv_lib_intl_strftime=no
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644 conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19647 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19648 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19649 if test $ac_cv_lib_intl_strftime = yes; then
19650 cat >>confdefs.h <<\_ACEOF
19651 #define HAVE_STRFTIME 1
19652 _ACEOF
19654 LIBS="-lintl $LIBS"
19658 done
19661 # UNIX98 PTYs.
19663 for ac_func in grantpt
19665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671 cat >conftest.$ac_ext <<_ACEOF
19672 /* confdefs.h. */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19679 #define $ac_func innocuous_$ac_func
19681 /* System header to define __stub macros and hopefully few prototypes,
19682 which can conflict with char $ac_func (); below.
19683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19684 <limits.h> exists even on freestanding compilers. */
19686 #ifdef __STDC__
19687 # include <limits.h>
19688 #else
19689 # include <assert.h>
19690 #endif
19692 #undef $ac_func
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19697 #ifdef __cplusplus
19698 extern "C"
19699 #endif
19700 char $ac_func ();
19701 /* The GNU C library defines this for functions which it implements
19702 to always fail with ENOSYS. Some functions are actually named
19703 something starting with __ and the normal name is an alias. */
19704 #if defined __stub_$ac_func || defined __stub___$ac_func
19705 choke me
19706 #endif
19709 main ()
19711 return $ac_func ();
19713 return 0;
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19724 ac_status=$?
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 eval "$as_ac_var=yes"
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 eval "$as_ac_var=no"
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19745 ac_res=`eval echo '${'$as_ac_var'}'`
19746 { echo "$as_me:$LINENO: result: $ac_res" >&5
19747 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_var'}'` = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19751 _ACEOF
19754 done
19757 # PTY-related GNU extensions.
19759 for ac_func in getpt
19761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h. */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19775 #define $ac_func innocuous_$ac_func
19777 /* System header to define __stub macros and hopefully few prototypes,
19778 which can conflict with char $ac_func (); below.
19779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19780 <limits.h> exists even on freestanding compilers. */
19782 #ifdef __STDC__
19783 # include <limits.h>
19784 #else
19785 # include <assert.h>
19786 #endif
19788 #undef $ac_func
19790 /* Override any GCC internal prototype to avoid an error.
19791 Use char because int might match the return type of a GCC
19792 builtin and then its argument prototype would still apply. */
19793 #ifdef __cplusplus
19794 extern "C"
19795 #endif
19796 char $ac_func ();
19797 /* The GNU C library defines this for functions which it implements
19798 to always fail with ENOSYS. Some functions are actually named
19799 something starting with __ and the normal name is an alias. */
19800 #if defined __stub_$ac_func || defined __stub___$ac_func
19801 choke me
19802 #endif
19805 main ()
19807 return $ac_func ();
19809 return 0;
19811 _ACEOF
19812 rm -f conftest.$ac_objext conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817 esac
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>conftest.er1
19820 ac_status=$?
19821 grep -v '^ *+' conftest.er1 >conftest.err
19822 rm -f conftest.er1
19823 cat conftest.err >&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); } && {
19826 test -z "$ac_c_werror_flag" ||
19827 test ! -s conftest.err
19828 } && test -s conftest$ac_exeext &&
19829 $as_test_x conftest$ac_exeext; then
19830 eval "$as_ac_var=yes"
19831 else
19832 echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 eval "$as_ac_var=no"
19838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19839 conftest$ac_exeext conftest.$ac_ext
19841 ac_res=`eval echo '${'$as_ac_var'}'`
19842 { echo "$as_me:$LINENO: result: $ac_res" >&5
19843 echo "${ECHO_T}$ac_res" >&6; }
19844 if test `eval echo '${'$as_ac_var'}'` = yes; then
19845 cat >>confdefs.h <<_ACEOF
19846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19847 _ACEOF
19850 done
19853 # Check this now, so that we will NOT find the above functions in ncurses.
19854 # That is because we have not set up to link ncurses in lib-src.
19855 # It's better to believe a function is not available
19856 # than to expect to find it in ncurses.
19858 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19859 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19860 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19861 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863 ac_check_lib_save_LIBS=$LIBS
19864 LIBS="-lncurses $LIBS"
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19872 /* Override any GCC internal prototype to avoid an error.
19873 Use char because int might match the return type of a GCC
19874 builtin and then its argument prototype would still apply. */
19875 #ifdef __cplusplus
19876 extern "C"
19877 #endif
19878 char tparm ();
19880 main ()
19882 return tparm ();
19884 return 0;
19886 _ACEOF
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (ac_try="$ac_link"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_link") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest$ac_exeext &&
19904 $as_test_x conftest$ac_exeext; then
19905 ac_cv_lib_ncurses_tparm=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_cv_lib_ncurses_tparm=no
19913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19914 conftest$ac_exeext conftest.$ac_ext
19915 LIBS=$ac_check_lib_save_LIBS
19917 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19918 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19919 if test $ac_cv_lib_ncurses_tparm = yes; then
19920 cat >>confdefs.h <<_ACEOF
19921 #define HAVE_LIBNCURSES 1
19922 _ACEOF
19924 LIBS="-lncurses $LIBS"
19929 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19931 resolv=no
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h. */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 #include <netinet/in.h>
19939 #include <arpa/nameser.h>
19940 #include <resolv.h>
19942 main ()
19944 return res_init();
19946 return 0;
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19957 ac_status=$?
19958 grep -v '^ *+' conftest.er1 >conftest.err
19959 rm -f conftest.er1
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 have_res_init=yes
19968 else
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 have_res_init=no
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19977 if test "$have_res_init" = no; then
19978 OLIBS="$LIBS"
19979 LIBS="$LIBS -lresolv"
19980 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19981 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19982 cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h. */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 #include <netinet/in.h>
19989 #include <arpa/nameser.h>
19990 #include <resolv.h>
19992 main ()
19994 return res_init();
19996 return 0;
19998 _ACEOF
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004 esac
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20007 ac_status=$?
20008 grep -v '^ *+' conftest.er1 >conftest.err
20009 rm -f conftest.er1
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 have_res_init=yes
20018 else
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 have_res_init=no
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20028 echo "${ECHO_T}$have_res_init" >&6; }
20029 if test "$have_res_init" = yes ; then
20030 resolv=yes
20032 LIBS="$OLIBS"
20035 if test "$have_res_init" = yes; then
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_RES_INIT 1
20039 _ACEOF
20043 # Do we need the Hesiod library to provide the support routines?
20044 if test "$with_hesiod" != no ; then
20045 # Don't set $LIBS here -- see comments above.
20046 { echo "$as_me:$LINENO: checking for res_send" >&5
20047 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20048 if test "${ac_cv_func_res_send+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 else
20051 cat >conftest.$ac_ext <<_ACEOF
20052 /* confdefs.h. */
20053 _ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20059 #define res_send innocuous_res_send
20061 /* System header to define __stub macros and hopefully few prototypes,
20062 which can conflict with char res_send (); below.
20063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064 <limits.h> exists even on freestanding compilers. */
20066 #ifdef __STDC__
20067 # include <limits.h>
20068 #else
20069 # include <assert.h>
20070 #endif
20072 #undef res_send
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20077 #ifdef __cplusplus
20078 extern "C"
20079 #endif
20080 char res_send ();
20081 /* The GNU C library defines this for functions which it implements
20082 to always fail with ENOSYS. Some functions are actually named
20083 something starting with __ and the normal name is an alias. */
20084 #if defined __stub_res_send || defined __stub___res_send
20085 choke me
20086 #endif
20089 main ()
20091 return res_send ();
20093 return 0;
20095 _ACEOF
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20101 esac
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_link") 2>conftest.er1
20104 ac_status=$?
20105 grep -v '^ *+' conftest.er1 >conftest.err
20106 rm -f conftest.er1
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest$ac_exeext &&
20113 $as_test_x conftest$ac_exeext; then
20114 ac_cv_func_res_send=yes
20115 else
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_cv_func_res_send=no
20122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20123 conftest$ac_exeext conftest.$ac_ext
20125 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20126 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20127 if test $ac_cv_func_res_send = yes; then
20129 else
20130 { echo "$as_me:$LINENO: checking for __res_send" >&5
20131 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20132 if test "${ac_cv_func___res_send+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20143 #define __res_send innocuous___res_send
20145 /* System header to define __stub macros and hopefully few prototypes,
20146 which can conflict with char __res_send (); below.
20147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20148 <limits.h> exists even on freestanding compilers. */
20150 #ifdef __STDC__
20151 # include <limits.h>
20152 #else
20153 # include <assert.h>
20154 #endif
20156 #undef __res_send
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20161 #ifdef __cplusplus
20162 extern "C"
20163 #endif
20164 char __res_send ();
20165 /* The GNU C library defines this for functions which it implements
20166 to always fail with ENOSYS. Some functions are actually named
20167 something starting with __ and the normal name is an alias. */
20168 #if defined __stub___res_send || defined __stub_____res_send
20169 choke me
20170 #endif
20173 main ()
20175 return __res_send ();
20177 return 0;
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_func___res_send=yes
20199 else
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20203 ac_cv_func___res_send=no
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20209 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20210 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20211 if test $ac_cv_func___res_send = yes; then
20213 else
20214 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20215 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20216 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20217 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219 ac_check_lib_save_LIBS=$LIBS
20220 LIBS="-lresolv $LIBS"
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h. */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20228 /* Override any GCC internal prototype to avoid an error.
20229 Use char because int might match the return type of a GCC
20230 builtin and then its argument prototype would still apply. */
20231 #ifdef __cplusplus
20232 extern "C"
20233 #endif
20234 char res_send ();
20236 main ()
20238 return res_send ();
20240 return 0;
20242 _ACEOF
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (ac_try="$ac_link"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_link") 2>conftest.er1
20251 ac_status=$?
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && {
20257 test -z "$ac_c_werror_flag" ||
20258 test ! -s conftest.err
20259 } && test -s conftest$ac_exeext &&
20260 $as_test_x conftest$ac_exeext; then
20261 ac_cv_lib_resolv_res_send=yes
20262 else
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_lib_resolv_res_send=no
20269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20274 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20275 if test $ac_cv_lib_resolv_res_send = yes; then
20276 resolv=yes
20277 else
20278 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20279 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20280 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283 ac_check_lib_save_LIBS=$LIBS
20284 LIBS="-lresolv $LIBS"
20285 cat >conftest.$ac_ext <<_ACEOF
20286 /* confdefs.h. */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20295 #ifdef __cplusplus
20296 extern "C"
20297 #endif
20298 char __res_send ();
20300 main ()
20302 return __res_send ();
20304 return 0;
20306 _ACEOF
20307 rm -f conftest.$ac_objext conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_link") 2>conftest.er1
20315 ac_status=$?
20316 grep -v '^ *+' conftest.er1 >conftest.err
20317 rm -f conftest.er1
20318 cat conftest.err >&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest$ac_exeext &&
20324 $as_test_x conftest$ac_exeext; then
20325 ac_cv_lib_resolv___res_send=yes
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_cv_lib_resolv___res_send=no
20333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20334 conftest$ac_exeext conftest.$ac_ext
20335 LIBS=$ac_check_lib_save_LIBS
20337 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20338 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20339 if test $ac_cv_lib_resolv___res_send = yes; then
20340 resolv=yes
20349 if test "$resolv" = yes ; then
20350 RESOLVLIB=-lresolv
20351 else
20352 RESOLVLIB=
20354 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20355 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20356 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 else
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h. */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20367 #define hes_getmailhost innocuous_hes_getmailhost
20369 /* System header to define __stub macros and hopefully few prototypes,
20370 which can conflict with char hes_getmailhost (); below.
20371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20372 <limits.h> exists even on freestanding compilers. */
20374 #ifdef __STDC__
20375 # include <limits.h>
20376 #else
20377 # include <assert.h>
20378 #endif
20380 #undef hes_getmailhost
20382 /* Override any GCC internal prototype to avoid an error.
20383 Use char because int might match the return type of a GCC
20384 builtin and then its argument prototype would still apply. */
20385 #ifdef __cplusplus
20386 extern "C"
20387 #endif
20388 char hes_getmailhost ();
20389 /* The GNU C library defines this for functions which it implements
20390 to always fail with ENOSYS. Some functions are actually named
20391 something starting with __ and the normal name is an alias. */
20392 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20393 choke me
20394 #endif
20397 main ()
20399 return hes_getmailhost ();
20401 return 0;
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411 (eval "$ac_link") 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest$ac_exeext &&
20421 $as_test_x conftest$ac_exeext; then
20422 ac_cv_func_hes_getmailhost=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_func_hes_getmailhost=no
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20433 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20434 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20435 if test $ac_cv_func_hes_getmailhost = yes; then
20437 else
20438 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20439 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20440 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20441 echo $ECHO_N "(cached) $ECHO_C" >&6
20442 else
20443 ac_check_lib_save_LIBS=$LIBS
20444 LIBS="-lhesiod $RESOLVLIB $LIBS"
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any GCC internal prototype to avoid an error.
20453 Use char because int might match the return type of a GCC
20454 builtin and then its argument prototype would still apply. */
20455 #ifdef __cplusplus
20456 extern "C"
20457 #endif
20458 char hes_getmailhost ();
20460 main ()
20462 return hes_getmailhost ();
20464 return 0;
20466 _ACEOF
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (ac_try="$ac_link"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_link") 2>conftest.er1
20475 ac_status=$?
20476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } && {
20481 test -z "$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20483 } && test -s conftest$ac_exeext &&
20484 $as_test_x conftest$ac_exeext; then
20485 ac_cv_lib_hesiod_hes_getmailhost=yes
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_lib_hesiod_hes_getmailhost=no
20493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20494 conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20497 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20498 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20499 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_LIBHESIOD 1
20503 _ACEOF
20505 else
20513 # Do we need libresolv (due to res_init or Hesiod)?
20514 if test "$resolv" = yes ; then
20516 cat >>confdefs.h <<\_ACEOF
20517 #define HAVE_LIBRESOLV 1
20518 _ACEOF
20522 # These tell us which Kerberos-related libraries to use.
20523 if test "${with_kerberos}" != no; then
20525 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20526 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20527 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lcom_err $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20542 #ifdef __cplusplus
20543 extern "C"
20544 #endif
20545 char com_err ();
20547 main ()
20549 return com_err ();
20551 return 0;
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest$ac_exeext &&
20571 $as_test_x conftest$ac_exeext; then
20572 ac_cv_lib_com_err_com_err=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_lib_com_err_com_err=no
20580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20584 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20585 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20586 if test $ac_cv_lib_com_err_com_err = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBCOM_ERR 1
20589 _ACEOF
20591 LIBS="-lcom_err $LIBS"
20596 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20597 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20598 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20599 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 else
20601 ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lk5crypto $LIBS"
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 /* Override any GCC internal prototype to avoid an error.
20611 Use char because int might match the return type of a GCC
20612 builtin and then its argument prototype would still apply. */
20613 #ifdef __cplusplus
20614 extern "C"
20615 #endif
20616 char mit_des_cbc_encrypt ();
20618 main ()
20620 return mit_des_cbc_encrypt ();
20622 return 0;
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20630 esac
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20633 ac_status=$?
20634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20655 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20656 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20657 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LIBK5CRYPTO 1
20660 _ACEOF
20662 LIBS="-lk5crypto $LIBS"
20667 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20668 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20669 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20670 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 else
20672 ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-lcrypto $LIBS"
20674 cat >conftest.$ac_ext <<_ACEOF
20675 /* confdefs.h. */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20684 #ifdef __cplusplus
20685 extern "C"
20686 #endif
20687 char mit_des_cbc_encrypt ();
20689 main ()
20691 return mit_des_cbc_encrypt ();
20693 return 0;
20695 _ACEOF
20696 rm -f conftest.$ac_objext conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>conftest.er1
20704 ac_status=$?
20705 grep -v '^ *+' conftest.er1 >conftest.err
20706 rm -f conftest.er1
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest$ac_exeext &&
20713 $as_test_x conftest$ac_exeext; then
20714 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20715 else
20716 echo "$as_me: failed program was:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20727 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20728 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_LIBCRYPTO 1
20731 _ACEOF
20733 LIBS="-lcrypto $LIBS"
20738 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20739 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20740 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20741 echo $ECHO_N "(cached) $ECHO_C" >&6
20742 else
20743 ac_check_lib_save_LIBS=$LIBS
20744 LIBS="-lkrb5 $LIBS"
20745 cat >conftest.$ac_ext <<_ACEOF
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20752 /* Override any GCC internal prototype to avoid an error.
20753 Use char because int might match the return type of a GCC
20754 builtin and then its argument prototype would still apply. */
20755 #ifdef __cplusplus
20756 extern "C"
20757 #endif
20758 char krb5_init_context ();
20760 main ()
20762 return krb5_init_context ();
20764 return 0;
20766 _ACEOF
20767 rm -f conftest.$ac_objext conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_link") 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } && {
20781 test -z "$ac_c_werror_flag" ||
20782 test ! -s conftest.err
20783 } && test -s conftest$ac_exeext &&
20784 $as_test_x conftest$ac_exeext; then
20785 ac_cv_lib_krb5_krb5_init_context=yes
20786 else
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ac_cv_lib_krb5_krb5_init_context=no
20793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20794 conftest$ac_exeext conftest.$ac_ext
20795 LIBS=$ac_check_lib_save_LIBS
20797 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20798 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20799 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20800 cat >>confdefs.h <<_ACEOF
20801 #define HAVE_LIBKRB5 1
20802 _ACEOF
20804 LIBS="-lkrb5 $LIBS"
20808 if test "${with_kerberos5}" = no; then
20810 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20811 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20812 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815 ac_check_lib_save_LIBS=$LIBS
20816 LIBS="-ldes425 $LIBS"
20817 cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h. */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 char des_cbc_encrypt ();
20832 main ()
20834 return des_cbc_encrypt ();
20836 return 0;
20838 _ACEOF
20839 rm -f conftest.$ac_objext conftest$ac_exeext
20840 if { (ac_try="$ac_link"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_link") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest$ac_exeext &&
20856 $as_test_x conftest$ac_exeext; then
20857 ac_cv_lib_des425_des_cbc_encrypt=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_cv_lib_des425_des_cbc_encrypt=no
20865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20866 conftest$ac_exeext conftest.$ac_ext
20867 LIBS=$ac_check_lib_save_LIBS
20869 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20870 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20871 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define HAVE_LIBDES425 1
20874 _ACEOF
20876 LIBS="-ldes425 $LIBS"
20878 else
20880 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20881 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20882 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 else
20885 ac_check_lib_save_LIBS=$LIBS
20886 LIBS="-ldes $LIBS"
20887 cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h. */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h. */
20894 /* Override any GCC internal prototype to avoid an error.
20895 Use char because int might match the return type of a GCC
20896 builtin and then its argument prototype would still apply. */
20897 #ifdef __cplusplus
20898 extern "C"
20899 #endif
20900 char des_cbc_encrypt ();
20902 main ()
20904 return des_cbc_encrypt ();
20906 return 0;
20908 _ACEOF
20909 rm -f conftest.$ac_objext conftest$ac_exeext
20910 if { (ac_try="$ac_link"
20911 case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914 esac
20915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_link") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest$ac_exeext &&
20926 $as_test_x conftest$ac_exeext; then
20927 ac_cv_lib_des_des_cbc_encrypt=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_cv_lib_des_des_cbc_encrypt=no
20935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20936 conftest$ac_exeext conftest.$ac_ext
20937 LIBS=$ac_check_lib_save_LIBS
20939 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20940 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20941 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20942 cat >>confdefs.h <<_ACEOF
20943 #define HAVE_LIBDES 1
20944 _ACEOF
20946 LIBS="-ldes $LIBS"
20953 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20954 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20955 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 ac_check_lib_save_LIBS=$LIBS
20959 LIBS="-lkrb4 $LIBS"
20960 cat >conftest.$ac_ext <<_ACEOF
20961 /* confdefs.h. */
20962 _ACEOF
20963 cat confdefs.h >>conftest.$ac_ext
20964 cat >>conftest.$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20967 /* Override any GCC internal prototype to avoid an error.
20968 Use char because int might match the return type of a GCC
20969 builtin and then its argument prototype would still apply. */
20970 #ifdef __cplusplus
20971 extern "C"
20972 #endif
20973 char krb_get_cred ();
20975 main ()
20977 return krb_get_cred ();
20979 return 0;
20981 _ACEOF
20982 rm -f conftest.$ac_objext conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987 esac
20988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_link") 2>conftest.er1
20990 ac_status=$?
20991 grep -v '^ *+' conftest.er1 >conftest.err
20992 rm -f conftest.er1
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); } && {
20996 test -z "$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20998 } && test -s conftest$ac_exeext &&
20999 $as_test_x conftest$ac_exeext; then
21000 ac_cv_lib_krb4_krb_get_cred=yes
21001 else
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_cv_lib_krb4_krb_get_cred=no
21008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21009 conftest$ac_exeext conftest.$ac_ext
21010 LIBS=$ac_check_lib_save_LIBS
21012 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21013 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21014 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_LIBKRB4 1
21017 _ACEOF
21019 LIBS="-lkrb4 $LIBS"
21021 else
21023 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21024 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21025 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028 ac_check_lib_save_LIBS=$LIBS
21029 LIBS="-lkrb $LIBS"
21030 cat >conftest.$ac_ext <<_ACEOF
21031 /* confdefs.h. */
21032 _ACEOF
21033 cat confdefs.h >>conftest.$ac_ext
21034 cat >>conftest.$ac_ext <<_ACEOF
21035 /* end confdefs.h. */
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 char krb_get_cred ();
21045 main ()
21047 return krb_get_cred ();
21049 return 0;
21051 _ACEOF
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest$ac_exeext &&
21069 $as_test_x conftest$ac_exeext; then
21070 ac_cv_lib_krb_krb_get_cred=yes
21071 else
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_cv_lib_krb_krb_get_cred=no
21078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21079 conftest$ac_exeext conftest.$ac_ext
21080 LIBS=$ac_check_lib_save_LIBS
21082 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21083 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21084 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21085 cat >>confdefs.h <<_ACEOF
21086 #define HAVE_LIBKRB 1
21087 _ACEOF
21089 LIBS="-lkrb $LIBS"
21097 if test "${with_kerberos5}" != no; then
21099 for ac_header in krb5.h
21101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21111 else
21112 # Is the header compilable?
21113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h. */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121 $ac_includes_default
21122 #include <$ac_header>
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_compile") 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && {
21138 test -z "$ac_c_werror_flag" ||
21139 test ! -s conftest.err
21140 } && test -s conftest.$ac_objext; then
21141 ac_header_compiler=yes
21142 else
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21146 ac_header_compiler=no
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21151 echo "${ECHO_T}$ac_header_compiler" >&6; }
21153 # Is the header present?
21154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h. */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 #include <$ac_header>
21163 _ACEOF
21164 if { (ac_try="$ac_cpp conftest.$ac_ext"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168 esac
21169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21171 ac_status=$?
21172 grep -v '^ *+' conftest.er1 >conftest.err
21173 rm -f conftest.er1
21174 cat conftest.err >&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); } >/dev/null && {
21177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 }; then
21180 ac_header_preproc=yes
21181 else
21182 echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21185 ac_header_preproc=no
21188 rm -f conftest.err conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21190 echo "${ECHO_T}$ac_header_preproc" >&6; }
21192 # So? What about this header?
21193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21194 yes:no: )
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21199 ac_header_preproc=yes
21201 no:yes:* )
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21216 esac
21217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 eval "$as_ac_Header=\$ac_header_preproc"
21224 ac_res=`eval echo '${'$as_ac_Header'}'`
21225 { echo "$as_me:$LINENO: result: $ac_res" >&5
21226 echo "${ECHO_T}$ac_res" >&6; }
21229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21232 _ACEOF
21233 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21234 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21235 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h. */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <krb5.h>
21247 main ()
21249 static krb5_error ac_aggr;
21250 if (ac_aggr.text)
21251 return 0;
21253 return 0;
21255 _ACEOF
21256 rm -f conftest.$ac_objext
21257 if { (ac_try="$ac_compile"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21261 esac
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_compile") 2>conftest.er1
21264 ac_status=$?
21265 grep -v '^ *+' conftest.er1 >conftest.err
21266 rm -f conftest.er1
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } && {
21270 test -z "$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21272 } && test -s conftest.$ac_objext; then
21273 ac_cv_member_krb5_error_text=yes
21274 else
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 #include <krb5.h>
21287 main ()
21289 static krb5_error ac_aggr;
21290 if (sizeof ac_aggr.text)
21291 return 0;
21293 return 0;
21295 _ACEOF
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21301 esac
21302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_cv_member_krb5_error_text=yes
21314 else
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_cv_member_krb5_error_text=no
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21327 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21328 if test $ac_cv_member_krb5_error_text = yes; then
21330 cat >>confdefs.h <<_ACEOF
21331 #define HAVE_KRB5_ERROR_TEXT 1
21332 _ACEOF
21336 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21337 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21338 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
21340 else
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h. */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <krb5.h>
21350 main ()
21352 static krb5_error ac_aggr;
21353 if (ac_aggr.e_text)
21354 return 0;
21356 return 0;
21358 _ACEOF
21359 rm -f conftest.$ac_objext
21360 if { (ac_try="$ac_compile"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_compile") 2>conftest.er1
21367 ac_status=$?
21368 grep -v '^ *+' conftest.er1 >conftest.err
21369 rm -f conftest.er1
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest.$ac_objext; then
21376 ac_cv_member_krb5_error_e_text=yes
21377 else
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h. */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <krb5.h>
21390 main ()
21392 static krb5_error ac_aggr;
21393 if (sizeof ac_aggr.e_text)
21394 return 0;
21396 return 0;
21398 _ACEOF
21399 rm -f conftest.$ac_objext
21400 if { (ac_try="$ac_compile"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_compile") 2>conftest.er1
21407 ac_status=$?
21408 grep -v '^ *+' conftest.er1 >conftest.err
21409 rm -f conftest.er1
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest.$ac_objext; then
21416 ac_cv_member_krb5_error_e_text=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_cv_member_krb5_error_e_text=no
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21430 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21431 if test $ac_cv_member_krb5_error_e_text = yes; then
21433 cat >>confdefs.h <<_ACEOF
21434 #define HAVE_KRB5_ERROR_E_TEXT 1
21435 _ACEOF
21442 done
21444 else
21446 for ac_header in des.h
21448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 ac_res=`eval echo '${'$as_ac_Header'}'`
21456 { echo "$as_me:$LINENO: result: $ac_res" >&5
21457 echo "${ECHO_T}$ac_res" >&6; }
21458 else
21459 # Is the header compilable?
21460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h. */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 $ac_includes_default
21469 #include <$ac_header>
21470 _ACEOF
21471 rm -f conftest.$ac_objext
21472 if { (ac_try="$ac_compile"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.$ac_objext; then
21488 ac_header_compiler=yes
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ac_header_compiler=no
21496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21498 echo "${ECHO_T}$ac_header_compiler" >&6; }
21500 # Is the header present?
21501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21503 cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h. */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 #include <$ac_header>
21510 _ACEOF
21511 if { (ac_try="$ac_cpp conftest.$ac_ext"
21512 case "(($ac_try" in
21513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514 *) ac_try_echo=$ac_try;;
21515 esac
21516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21518 ac_status=$?
21519 grep -v '^ *+' conftest.er1 >conftest.err
21520 rm -f conftest.er1
21521 cat conftest.err >&5
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } >/dev/null && {
21524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21525 test ! -s conftest.err
21526 }; then
21527 ac_header_preproc=yes
21528 else
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ac_header_preproc=no
21535 rm -f conftest.err conftest.$ac_ext
21536 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21537 echo "${ECHO_T}$ac_header_preproc" >&6; }
21539 # So? What about this header?
21540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21541 yes:no: )
21542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21546 ac_header_preproc=yes
21548 no:yes:* )
21549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21563 esac
21564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21569 eval "$as_ac_Header=\$ac_header_preproc"
21571 ac_res=`eval echo '${'$as_ac_Header'}'`
21572 { echo "$as_me:$LINENO: result: $ac_res" >&5
21573 echo "${ECHO_T}$ac_res" >&6; }
21576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21577 cat >>confdefs.h <<_ACEOF
21578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21579 _ACEOF
21581 else
21583 for ac_header in kerberosIV/des.h
21585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21590 echo $ECHO_N "(cached) $ECHO_C" >&6
21592 ac_res=`eval echo '${'$as_ac_Header'}'`
21593 { echo "$as_me:$LINENO: result: $ac_res" >&5
21594 echo "${ECHO_T}$ac_res" >&6; }
21595 else
21596 # Is the header compilable?
21597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21599 cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h. */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h. */
21605 $ac_includes_default
21606 #include <$ac_header>
21607 _ACEOF
21608 rm -f conftest.$ac_objext
21609 if { (ac_try="$ac_compile"
21610 case "(($ac_try" in
21611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612 *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615 (eval "$ac_compile") 2>conftest.er1
21616 ac_status=$?
21617 grep -v '^ *+' conftest.er1 >conftest.err
21618 rm -f conftest.er1
21619 cat conftest.err >&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } && {
21622 test -z "$ac_c_werror_flag" ||
21623 test ! -s conftest.err
21624 } && test -s conftest.$ac_objext; then
21625 ac_header_compiler=yes
21626 else
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 ac_header_compiler=no
21633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21635 echo "${ECHO_T}$ac_header_compiler" >&6; }
21637 # Is the header present?
21638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21640 cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h. */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 #include <$ac_header>
21647 _ACEOF
21648 if { (ac_try="$ac_cpp conftest.$ac_ext"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } >/dev/null && {
21661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 }; then
21664 ac_header_preproc=yes
21665 else
21666 echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_header_preproc=no
21672 rm -f conftest.err conftest.$ac_ext
21673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21674 echo "${ECHO_T}$ac_header_preproc" >&6; }
21676 # So? What about this header?
21677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21678 yes:no: )
21679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21683 ac_header_preproc=yes
21685 no:yes:* )
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21700 esac
21701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706 eval "$as_ac_Header=\$ac_header_preproc"
21708 ac_res=`eval echo '${'$as_ac_Header'}'`
21709 { echo "$as_me:$LINENO: result: $ac_res" >&5
21710 echo "${ECHO_T}$ac_res" >&6; }
21713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21714 cat >>confdefs.h <<_ACEOF
21715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21716 _ACEOF
21718 else
21720 for ac_header in kerberos/des.h
21722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 ac_res=`eval echo '${'$as_ac_Header'}'`
21730 { echo "$as_me:$LINENO: result: $ac_res" >&5
21731 echo "${ECHO_T}$ac_res" >&6; }
21732 else
21733 # Is the header compilable?
21734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h. */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 $ac_includes_default
21743 #include <$ac_header>
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (ac_try="$ac_compile"
21747 case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_compile") 2>conftest.er1
21753 ac_status=$?
21754 grep -v '^ *+' conftest.er1 >conftest.err
21755 rm -f conftest.er1
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } && {
21759 test -z "$ac_c_werror_flag" ||
21760 test ! -s conftest.err
21761 } && test -s conftest.$ac_objext; then
21762 ac_header_compiler=yes
21763 else
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ac_header_compiler=no
21770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21772 echo "${ECHO_T}$ac_header_compiler" >&6; }
21774 # Is the header present?
21775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21777 cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h. */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 #include <$ac_header>
21784 _ACEOF
21785 if { (ac_try="$ac_cpp conftest.$ac_ext"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } >/dev/null && {
21798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 }; then
21801 ac_header_preproc=yes
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_preproc=no
21809 rm -f conftest.err conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21811 echo "${ECHO_T}$ac_header_preproc" >&6; }
21813 # So? What about this header?
21814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21815 yes:no: )
21816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21820 ac_header_preproc=yes
21822 no:yes:* )
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21837 esac
21838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 eval "$as_ac_Header=\$ac_header_preproc"
21845 ac_res=`eval echo '${'$as_ac_Header'}'`
21846 { echo "$as_me:$LINENO: result: $ac_res" >&5
21847 echo "${ECHO_T}$ac_res" >&6; }
21850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21851 cat >>confdefs.h <<_ACEOF
21852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21853 _ACEOF
21857 done
21861 done
21865 done
21868 for ac_header in krb.h
21870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21875 echo $ECHO_N "(cached) $ECHO_C" >&6
21877 ac_res=`eval echo '${'$as_ac_Header'}'`
21878 { echo "$as_me:$LINENO: result: $ac_res" >&5
21879 echo "${ECHO_T}$ac_res" >&6; }
21880 else
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h. */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <$ac_header>
21892 _ACEOF
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_compiler=no
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <$ac_header>
21932 _ACEOF
21933 if { (ac_try="$ac_cpp conftest.$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21937 esac
21938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21948 }; then
21949 ac_header_preproc=yes
21950 else
21951 echo "$as_me: failed program was:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_header_preproc=no
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21963 yes:no: )
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21968 ac_header_preproc=yes
21970 no:yes:* )
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21974 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21978 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21985 esac
21986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991 eval "$as_ac_Header=\$ac_header_preproc"
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994 { echo "$as_me:$LINENO: result: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21999 cat >>confdefs.h <<_ACEOF
22000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22001 _ACEOF
22003 else
22005 for ac_header in kerberosIV/krb.h
22007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22012 echo $ECHO_N "(cached) $ECHO_C" >&6
22014 ac_res=`eval echo '${'$as_ac_Header'}'`
22015 { echo "$as_me:$LINENO: result: $ac_res" >&5
22016 echo "${ECHO_T}$ac_res" >&6; }
22017 else
22018 # Is the header compilable?
22019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22021 cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h. */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 $ac_includes_default
22028 #include <$ac_header>
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (ac_try="$ac_compile"
22032 case "(($ac_try" in
22033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034 *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037 (eval "$ac_compile") 2>conftest.er1
22038 ac_status=$?
22039 grep -v '^ *+' conftest.er1 >conftest.err
22040 rm -f conftest.er1
22041 cat conftest.err >&5
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); } && {
22044 test -z "$ac_c_werror_flag" ||
22045 test ! -s conftest.err
22046 } && test -s conftest.$ac_objext; then
22047 ac_header_compiler=yes
22048 else
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ac_header_compiler=no
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22057 echo "${ECHO_T}$ac_header_compiler" >&6; }
22059 # Is the header present?
22060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22063 /* confdefs.h. */
22064 _ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 #include <$ac_header>
22069 _ACEOF
22070 if { (ac_try="$ac_cpp conftest.$ac_ext"
22071 case "(($ac_try" in
22072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22073 *) ac_try_echo=$ac_try;;
22074 esac
22075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22077 ac_status=$?
22078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } >/dev/null && {
22083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22084 test ! -s conftest.err
22085 }; then
22086 ac_header_preproc=yes
22087 else
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_header_preproc=no
22094 rm -f conftest.err conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22096 echo "${ECHO_T}$ac_header_preproc" >&6; }
22098 # So? What about this header?
22099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22100 yes:no: )
22101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22105 ac_header_preproc=yes
22107 no:yes:* )
22108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22122 esac
22123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128 eval "$as_ac_Header=\$ac_header_preproc"
22130 ac_res=`eval echo '${'$as_ac_Header'}'`
22131 { echo "$as_me:$LINENO: result: $ac_res" >&5
22132 echo "${ECHO_T}$ac_res" >&6; }
22135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22136 cat >>confdefs.h <<_ACEOF
22137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22138 _ACEOF
22140 else
22142 for ac_header in kerberos/krb.h
22144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 ac_res=`eval echo '${'$as_ac_Header'}'`
22152 { echo "$as_me:$LINENO: result: $ac_res" >&5
22153 echo "${ECHO_T}$ac_res" >&6; }
22154 else
22155 # Is the header compilable?
22156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h. */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 $ac_includes_default
22165 #include <$ac_header>
22166 _ACEOF
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22171 *) ac_try_echo=$ac_try;;
22172 esac
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22175 ac_status=$?
22176 grep -v '^ *+' conftest.er1 >conftest.err
22177 rm -f conftest.er1
22178 cat conftest.err >&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.$ac_objext; then
22184 ac_header_compiler=yes
22185 else
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.$ac_ext >&5
22189 ac_header_compiler=no
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22194 echo "${ECHO_T}$ac_header_compiler" >&6; }
22196 # Is the header present?
22197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22199 cat >conftest.$ac_ext <<_ACEOF
22200 /* confdefs.h. */
22201 _ACEOF
22202 cat confdefs.h >>conftest.$ac_ext
22203 cat >>conftest.$ac_ext <<_ACEOF
22204 /* end confdefs.h. */
22205 #include <$ac_header>
22206 _ACEOF
22207 if { (ac_try="$ac_cpp conftest.$ac_ext"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22214 ac_status=$?
22215 grep -v '^ *+' conftest.er1 >conftest.err
22216 rm -f conftest.er1
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } >/dev/null && {
22220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 }; then
22223 ac_header_preproc=yes
22224 else
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_header_preproc=no
22231 rm -f conftest.err conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22233 echo "${ECHO_T}$ac_header_preproc" >&6; }
22235 # So? What about this header?
22236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22237 yes:no: )
22238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22242 ac_header_preproc=yes
22244 no:yes:* )
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22259 esac
22260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 else
22265 eval "$as_ac_Header=\$ac_header_preproc"
22267 ac_res=`eval echo '${'$as_ac_Header'}'`
22268 { echo "$as_me:$LINENO: result: $ac_res" >&5
22269 echo "${ECHO_T}$ac_res" >&6; }
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273 cat >>confdefs.h <<_ACEOF
22274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22275 _ACEOF
22279 done
22283 done
22287 done
22291 for ac_header in com_err.h
22293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 ac_res=`eval echo '${'$as_ac_Header'}'`
22301 { echo "$as_me:$LINENO: result: $ac_res" >&5
22302 echo "${ECHO_T}$ac_res" >&6; }
22303 else
22304 # Is the header compilable?
22305 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22307 cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h. */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22313 $ac_includes_default
22314 #include <$ac_header>
22315 _ACEOF
22316 rm -f conftest.$ac_objext
22317 if { (ac_try="$ac_compile"
22318 case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_compile") 2>conftest.er1
22324 ac_status=$?
22325 grep -v '^ *+' conftest.er1 >conftest.err
22326 rm -f conftest.er1
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } && {
22330 test -z "$ac_c_werror_flag" ||
22331 test ! -s conftest.err
22332 } && test -s conftest.$ac_objext; then
22333 ac_header_compiler=yes
22334 else
22335 echo "$as_me: failed program was:" >&5
22336 sed 's/^/| /' conftest.$ac_ext >&5
22338 ac_header_compiler=no
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22343 echo "${ECHO_T}$ac_header_compiler" >&6; }
22345 # Is the header present?
22346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22348 cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h. */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h. */
22354 #include <$ac_header>
22355 _ACEOF
22356 if { (ac_try="$ac_cpp conftest.$ac_ext"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } >/dev/null && {
22369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 }; then
22372 ac_header_preproc=yes
22373 else
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_header_preproc=no
22380 rm -f conftest.err conftest.$ac_ext
22381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22382 echo "${ECHO_T}$ac_header_preproc" >&6; }
22384 # So? What about this header?
22385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22386 yes:no: )
22387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22391 ac_header_preproc=yes
22393 no:yes:* )
22394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22408 esac
22409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414 eval "$as_ac_Header=\$ac_header_preproc"
22416 ac_res=`eval echo '${'$as_ac_Header'}'`
22417 { echo "$as_me:$LINENO: result: $ac_res" >&5
22418 echo "${ECHO_T}$ac_res" >&6; }
22421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22422 cat >>confdefs.h <<_ACEOF
22423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22424 _ACEOF
22428 done
22432 # Solaris requires -lintl if you want strerror (which calls dgettext)
22433 # to return localized messages.
22435 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22436 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22437 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 else
22440 ac_check_lib_save_LIBS=$LIBS
22441 LIBS="-lintl $LIBS"
22442 cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h. */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22449 /* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
22452 #ifdef __cplusplus
22453 extern "C"
22454 #endif
22455 char dgettext ();
22457 main ()
22459 return dgettext ();
22461 return 0;
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>conftest.er1
22472 ac_status=$?
22473 grep -v '^ *+' conftest.er1 >conftest.err
22474 rm -f conftest.er1
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest$ac_exeext &&
22481 $as_test_x conftest$ac_exeext; then
22482 ac_cv_lib_intl_dgettext=yes
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_cv_lib_intl_dgettext=no
22490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22491 conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22494 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22495 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22496 if test $ac_cv_lib_intl_dgettext = yes; then
22497 cat >>confdefs.h <<_ACEOF
22498 #define HAVE_LIBINTL 1
22499 _ACEOF
22501 LIBS="-lintl $LIBS"
22506 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22507 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22508 if test "${emacs_cv_localtime_cache+set}" = set; then
22509 echo $ECHO_N "(cached) $ECHO_C" >&6
22510 else
22511 if test x$ac_cv_func_tzset = xyes; then
22512 if test "$cross_compiling" = yes; then
22513 # If we have tzset, assume the worst when cross-compiling.
22514 emacs_cv_localtime_cache=yes
22515 else
22516 cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h. */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 #include <time.h>
22523 extern char **environ;
22524 unset_TZ ()
22526 char **from, **to;
22527 for (to = from = environ; (*to = *from); from++)
22528 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22529 to++;
22531 char TZ_GMT0[] = "TZ=GMT0";
22532 char TZ_PST8[] = "TZ=PST8";
22533 main()
22535 time_t now = time ((time_t *) 0);
22536 int hour_GMT0, hour_unset;
22537 if (putenv (TZ_GMT0) != 0)
22538 exit (1);
22539 hour_GMT0 = localtime (&now)->tm_hour;
22540 unset_TZ ();
22541 hour_unset = localtime (&now)->tm_hour;
22542 if (putenv (TZ_PST8) != 0)
22543 exit (1);
22544 if (localtime (&now)->tm_hour == hour_GMT0)
22545 exit (1);
22546 unset_TZ ();
22547 if (localtime (&now)->tm_hour != hour_unset)
22548 exit (1);
22549 exit (0);
22551 _ACEOF
22552 rm -f conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_link") 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22563 { (case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_try") 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; }; then
22572 emacs_cv_localtime_cache=no
22573 else
22574 echo "$as_me: program exited with status $ac_status" >&5
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ( exit $ac_status )
22579 emacs_cv_localtime_cache=yes
22581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22585 else
22586 # If we lack tzset, report that localtime does not cache TZ,
22587 # since we can't invalidate the cache if we don't have tzset.
22588 emacs_cv_localtime_cache=no
22591 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22592 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22593 if test $emacs_cv_localtime_cache = yes; then
22595 cat >>confdefs.h <<\_ACEOF
22596 #define LOCALTIME_CACHE 1
22597 _ACEOF
22601 if test "x$HAVE_TIMEVAL" = xyes; then
22603 for ac_func in gettimeofday
22605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h. */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h. */
22617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22619 #define $ac_func innocuous_$ac_func
22621 /* System header to define __stub macros and hopefully few prototypes,
22622 which can conflict with char $ac_func (); below.
22623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22624 <limits.h> exists even on freestanding compilers. */
22626 #ifdef __STDC__
22627 # include <limits.h>
22628 #else
22629 # include <assert.h>
22630 #endif
22632 #undef $ac_func
22634 /* Override any GCC internal prototype to avoid an error.
22635 Use char because int might match the return type of a GCC
22636 builtin and then its argument prototype would still apply. */
22637 #ifdef __cplusplus
22638 extern "C"
22639 #endif
22640 char $ac_func ();
22641 /* The GNU C library defines this for functions which it implements
22642 to always fail with ENOSYS. Some functions are actually named
22643 something starting with __ and the normal name is an alias. */
22644 #if defined __stub_$ac_func || defined __stub___$ac_func
22645 choke me
22646 #endif
22649 main ()
22651 return $ac_func ();
22653 return 0;
22655 _ACEOF
22656 rm -f conftest.$ac_objext conftest$ac_exeext
22657 if { (ac_try="$ac_link"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_link") 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest$ac_exeext &&
22673 $as_test_x conftest$ac_exeext; then
22674 eval "$as_ac_var=yes"
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 eval "$as_ac_var=no"
22682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22683 conftest$ac_exeext conftest.$ac_ext
22685 ac_res=`eval echo '${'$as_ac_var'}'`
22686 { echo "$as_me:$LINENO: result: $ac_res" >&5
22687 echo "${ECHO_T}$ac_res" >&6; }
22688 if test `eval echo '${'$as_ac_var'}'` = yes; then
22689 cat >>confdefs.h <<_ACEOF
22690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22691 _ACEOF
22694 done
22696 if test $ac_cv_func_gettimeofday = yes; then
22697 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22698 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22699 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22702 cat >conftest.$ac_ext <<_ACEOF
22703 /* confdefs.h. */
22704 _ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 #ifdef TIME_WITH_SYS_TIME
22710 #include <sys/time.h>
22711 #include <time.h>
22712 #else
22713 #ifdef HAVE_SYS_TIME_H
22714 #include <sys/time.h>
22715 #else
22716 #include <time.h>
22717 #endif
22718 #endif
22720 main ()
22722 struct timeval time;
22723 gettimeofday (&time, 0);
22725 return 0;
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_compile") 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest.$ac_objext; then
22745 emacs_cv_gettimeofday_two_arguments=yes
22746 else
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 emacs_cv_gettimeofday_two_arguments=no
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22756 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22757 if test $emacs_cv_gettimeofday_two_arguments = no; then
22759 cat >>confdefs.h <<\_ACEOF
22760 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22761 _ACEOF
22767 ok_so_far=yes
22768 { echo "$as_me:$LINENO: checking for socket" >&5
22769 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22770 if test "${ac_cv_func_socket+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773 cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h. */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22781 #define socket innocuous_socket
22783 /* System header to define __stub macros and hopefully few prototypes,
22784 which can conflict with char socket (); below.
22785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22786 <limits.h> exists even on freestanding compilers. */
22788 #ifdef __STDC__
22789 # include <limits.h>
22790 #else
22791 # include <assert.h>
22792 #endif
22794 #undef socket
22796 /* Override any GCC internal prototype to avoid an error.
22797 Use char because int might match the return type of a GCC
22798 builtin and then its argument prototype would still apply. */
22799 #ifdef __cplusplus
22800 extern "C"
22801 #endif
22802 char socket ();
22803 /* The GNU C library defines this for functions which it implements
22804 to always fail with ENOSYS. Some functions are actually named
22805 something starting with __ and the normal name is an alias. */
22806 #if defined __stub_socket || defined __stub___socket
22807 choke me
22808 #endif
22811 main ()
22813 return socket ();
22815 return 0;
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (ac_try="$ac_link"
22820 case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_link") 2>conftest.er1
22826 ac_status=$?
22827 grep -v '^ *+' conftest.er1 >conftest.err
22828 rm -f conftest.er1
22829 cat conftest.err >&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && {
22832 test -z "$ac_c_werror_flag" ||
22833 test ! -s conftest.err
22834 } && test -s conftest$ac_exeext &&
22835 $as_test_x conftest$ac_exeext; then
22836 ac_cv_func_socket=yes
22837 else
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_cv_func_socket=no
22844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22845 conftest$ac_exeext conftest.$ac_ext
22847 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22848 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22849 if test $ac_cv_func_socket = yes; then
22851 else
22852 ok_so_far=no
22855 if test $ok_so_far = yes; then
22856 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22857 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22858 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22859 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22863 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22864 else
22865 # Is the header compilable?
22866 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22867 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22868 cat >conftest.$ac_ext <<_ACEOF
22869 /* confdefs.h. */
22870 _ACEOF
22871 cat confdefs.h >>conftest.$ac_ext
22872 cat >>conftest.$ac_ext <<_ACEOF
22873 /* end confdefs.h. */
22874 $ac_includes_default
22875 #include <netinet/in.h>
22876 _ACEOF
22877 rm -f conftest.$ac_objext
22878 if { (ac_try="$ac_compile"
22879 case "(($ac_try" in
22880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881 *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22885 ac_status=$?
22886 grep -v '^ *+' conftest.er1 >conftest.err
22887 rm -f conftest.er1
22888 cat conftest.err >&5
22889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.$ac_objext; then
22894 ac_header_compiler=yes
22895 else
22896 echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899 ac_header_compiler=no
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22904 echo "${ECHO_T}$ac_header_compiler" >&6; }
22906 # Is the header present?
22907 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22908 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22909 cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h. */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22915 #include <netinet/in.h>
22916 _ACEOF
22917 if { (ac_try="$ac_cpp conftest.$ac_ext"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } >/dev/null && {
22930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 }; then
22933 ac_header_preproc=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_header_preproc=no
22941 rm -f conftest.err conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22943 echo "${ECHO_T}$ac_header_preproc" >&6; }
22945 # So? What about this header?
22946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22947 yes:no: )
22948 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22949 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22950 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22951 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22952 ac_header_preproc=yes
22954 no:yes:* )
22955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22956 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22957 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22958 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22959 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22960 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22961 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22962 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22963 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22964 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22965 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22966 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22969 esac
22970 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22971 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22972 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22974 else
22975 ac_cv_header_netinet_in_h=$ac_header_preproc
22977 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22978 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22981 if test $ac_cv_header_netinet_in_h = yes; then
22983 else
22984 ok_so_far=no
22989 if test $ok_so_far = yes; then
22990 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22991 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22992 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22993 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22997 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22998 else
22999 # Is the header compilable?
23000 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23001 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23002 cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h. */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 $ac_includes_default
23009 #include <arpa/inet.h>
23010 _ACEOF
23011 rm -f conftest.$ac_objext
23012 if { (ac_try="$ac_compile"
23013 case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_compile") 2>conftest.er1
23019 ac_status=$?
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest.$ac_objext; then
23028 ac_header_compiler=yes
23029 else
23030 echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23033 ac_header_compiler=no
23036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23038 echo "${ECHO_T}$ac_header_compiler" >&6; }
23040 # Is the header present?
23041 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23042 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h. */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 #include <arpa/inet.h>
23050 _ACEOF
23051 if { (ac_try="$ac_cpp conftest.$ac_ext"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23055 esac
23056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23058 ac_status=$?
23059 grep -v '^ *+' conftest.er1 >conftest.err
23060 rm -f conftest.er1
23061 cat conftest.err >&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } >/dev/null && {
23064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23065 test ! -s conftest.err
23066 }; then
23067 ac_header_preproc=yes
23068 else
23069 echo "$as_me: failed program was:" >&5
23070 sed 's/^/| /' conftest.$ac_ext >&5
23072 ac_header_preproc=no
23075 rm -f conftest.err conftest.$ac_ext
23076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23077 echo "${ECHO_T}$ac_header_preproc" >&6; }
23079 # So? What about this header?
23080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23081 yes:no: )
23082 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23083 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23084 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23085 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23086 ac_header_preproc=yes
23088 no:yes:* )
23089 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23090 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23092 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23093 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23094 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23095 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23096 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23098 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23099 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23100 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23103 esac
23104 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23105 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23106 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
23108 else
23109 ac_cv_header_arpa_inet_h=$ac_header_preproc
23111 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23112 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23115 if test $ac_cv_header_arpa_inet_h = yes; then
23117 else
23118 ok_so_far=no
23123 if test $ok_so_far = yes; then
23125 cat >>confdefs.h <<\_ACEOF
23126 #define HAVE_INET_SOCKETS 1
23127 _ACEOF
23132 for ac_header in sys/ioctl.h
23134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23139 echo $ECHO_N "(cached) $ECHO_C" >&6
23141 ac_res=`eval echo '${'$as_ac_Header'}'`
23142 { echo "$as_me:$LINENO: result: $ac_res" >&5
23143 echo "${ECHO_T}$ac_res" >&6; }
23144 else
23145 # Is the header compilable?
23146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23148 cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h. */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 $ac_includes_default
23155 #include <$ac_header>
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_compile") 2>conftest.er1
23165 ac_status=$?
23166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } && {
23171 test -z "$ac_c_werror_flag" ||
23172 test ! -s conftest.err
23173 } && test -s conftest.$ac_objext; then
23174 ac_header_compiler=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_header_compiler=no
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23184 echo "${ECHO_T}$ac_header_compiler" >&6; }
23186 # Is the header present?
23187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23189 cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h. */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 #include <$ac_header>
23196 _ACEOF
23197 if { (ac_try="$ac_cpp conftest.$ac_ext"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23204 ac_status=$?
23205 grep -v '^ *+' conftest.er1 >conftest.err
23206 rm -f conftest.er1
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } >/dev/null && {
23210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 }; then
23213 ac_header_preproc=yes
23214 else
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 ac_header_preproc=no
23221 rm -f conftest.err conftest.$ac_ext
23222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23223 echo "${ECHO_T}$ac_header_preproc" >&6; }
23225 # So? What about this header?
23226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23227 yes:no: )
23228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23232 ac_header_preproc=yes
23234 no:yes:* )
23235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23242 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23249 esac
23250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23253 echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255 eval "$as_ac_Header=\$ac_header_preproc"
23257 ac_res=`eval echo '${'$as_ac_Header'}'`
23258 { echo "$as_me:$LINENO: result: $ac_res" >&5
23259 echo "${ECHO_T}$ac_res" >&6; }
23262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23263 cat >>confdefs.h <<_ACEOF
23264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23265 _ACEOF
23269 done
23272 if test -f /usr/lpp/X11/bin/smt.exp; then
23274 cat >>confdefs.h <<\_ACEOF
23275 #define HAVE_AIX_SMT_EXP 1
23276 _ACEOF
23280 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23281 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23282 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23283 { echo "$as_me:$LINENO: result: yes" >&5
23284 echo "${ECHO_T}yes" >&6; }
23286 cat >>confdefs.h <<\_ACEOF
23287 #define HAVE_DEV_PTMX 1
23288 _ACEOF
23290 else
23291 { echo "$as_me:$LINENO: result: no" >&5
23292 echo "${ECHO_T}no" >&6; }
23295 { echo "$as_me:$LINENO: checking for pid_t" >&5
23296 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23297 if test "${ac_cv_type_pid_t+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23299 else
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h. */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 $ac_includes_default
23307 typedef pid_t ac__type_new_;
23309 main ()
23311 if ((ac__type_new_ *) 0)
23312 return 0;
23313 if (sizeof (ac__type_new_))
23314 return 0;
23316 return 0;
23318 _ACEOF
23319 rm -f conftest.$ac_objext
23320 if { (ac_try="$ac_compile"
23321 case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23327 ac_status=$?
23328 grep -v '^ *+' conftest.er1 >conftest.err
23329 rm -f conftest.er1
23330 cat conftest.err >&5
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_cv_type_pid_t=yes
23337 else
23338 echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 ac_cv_type_pid_t=no
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23347 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23348 if test $ac_cv_type_pid_t = yes; then
23350 else
23352 cat >>confdefs.h <<_ACEOF
23353 #define pid_t int
23354 _ACEOF
23359 for ac_header in vfork.h
23361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23366 echo $ECHO_N "(cached) $ECHO_C" >&6
23368 ac_res=`eval echo '${'$as_ac_Header'}'`
23369 { echo "$as_me:$LINENO: result: $ac_res" >&5
23370 echo "${ECHO_T}$ac_res" >&6; }
23371 else
23372 # Is the header compilable?
23373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23375 cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h. */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23381 $ac_includes_default
23382 #include <$ac_header>
23383 _ACEOF
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388 *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391 (eval "$ac_compile") 2>conftest.er1
23392 ac_status=$?
23393 grep -v '^ *+' conftest.er1 >conftest.err
23394 rm -f conftest.er1
23395 cat conftest.err >&5
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } && {
23398 test -z "$ac_c_werror_flag" ||
23399 test ! -s conftest.err
23400 } && test -s conftest.$ac_objext; then
23401 ac_header_compiler=yes
23402 else
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23406 ac_header_compiler=no
23409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23411 echo "${ECHO_T}$ac_header_compiler" >&6; }
23413 # Is the header present?
23414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23416 cat >conftest.$ac_ext <<_ACEOF
23417 /* confdefs.h. */
23418 _ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 #include <$ac_header>
23423 _ACEOF
23424 if { (ac_try="$ac_cpp conftest.$ac_ext"
23425 case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428 esac
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23431 ac_status=$?
23432 grep -v '^ *+' conftest.er1 >conftest.err
23433 rm -f conftest.er1
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } >/dev/null && {
23437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23438 test ! -s conftest.err
23439 }; then
23440 ac_header_preproc=yes
23441 else
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 ac_header_preproc=no
23448 rm -f conftest.err conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23450 echo "${ECHO_T}$ac_header_preproc" >&6; }
23452 # So? What about this header?
23453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23454 yes:no: )
23455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23459 ac_header_preproc=yes
23461 no:yes:* )
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23476 esac
23477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482 eval "$as_ac_Header=\$ac_header_preproc"
23484 ac_res=`eval echo '${'$as_ac_Header'}'`
23485 { echo "$as_me:$LINENO: result: $ac_res" >&5
23486 echo "${ECHO_T}$ac_res" >&6; }
23489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23492 _ACEOF
23496 done
23500 for ac_func in fork vfork
23502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23506 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508 cat >conftest.$ac_ext <<_ACEOF
23509 /* confdefs.h. */
23510 _ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h. */
23514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23516 #define $ac_func innocuous_$ac_func
23518 /* System header to define __stub macros and hopefully few prototypes,
23519 which can conflict with char $ac_func (); below.
23520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23521 <limits.h> exists even on freestanding compilers. */
23523 #ifdef __STDC__
23524 # include <limits.h>
23525 #else
23526 # include <assert.h>
23527 #endif
23529 #undef $ac_func
23531 /* Override any GCC internal prototype to avoid an error.
23532 Use char because int might match the return type of a GCC
23533 builtin and then its argument prototype would still apply. */
23534 #ifdef __cplusplus
23535 extern "C"
23536 #endif
23537 char $ac_func ();
23538 /* The GNU C library defines this for functions which it implements
23539 to always fail with ENOSYS. Some functions are actually named
23540 something starting with __ and the normal name is an alias. */
23541 #if defined __stub_$ac_func || defined __stub___$ac_func
23542 choke me
23543 #endif
23546 main ()
23548 return $ac_func ();
23550 return 0;
23552 _ACEOF
23553 rm -f conftest.$ac_objext conftest$ac_exeext
23554 if { (ac_try="$ac_link"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_link") 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest$ac_exeext &&
23570 $as_test_x conftest$ac_exeext; then
23571 eval "$as_ac_var=yes"
23572 else
23573 echo "$as_me: failed program was:" >&5
23574 sed 's/^/| /' conftest.$ac_ext >&5
23576 eval "$as_ac_var=no"
23579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23580 conftest$ac_exeext conftest.$ac_ext
23582 ac_res=`eval echo '${'$as_ac_var'}'`
23583 { echo "$as_me:$LINENO: result: $ac_res" >&5
23584 echo "${ECHO_T}$ac_res" >&6; }
23585 if test `eval echo '${'$as_ac_var'}'` = yes; then
23586 cat >>confdefs.h <<_ACEOF
23587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23588 _ACEOF
23591 done
23593 if test "x$ac_cv_func_fork" = xyes; then
23594 { echo "$as_me:$LINENO: checking for working fork" >&5
23595 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23596 if test "${ac_cv_func_fork_works+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599 if test "$cross_compiling" = yes; then
23600 ac_cv_func_fork_works=cross
23601 else
23602 cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h. */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 $ac_includes_default
23610 main ()
23613 /* By Ruediger Kuhlmann. */
23614 return fork () < 0;
23617 return 0;
23619 _ACEOF
23620 rm -f conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_link") 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23631 { (case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_try") 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640 ac_cv_func_fork_works=yes
23641 else
23642 echo "$as_me: program exited with status $ac_status" >&5
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23646 ( exit $ac_status )
23647 ac_cv_func_fork_works=no
23649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23654 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23655 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23657 else
23658 ac_cv_func_fork_works=$ac_cv_func_fork
23660 if test "x$ac_cv_func_fork_works" = xcross; then
23661 case $host in
23662 *-*-amigaos* | *-*-msdosdjgpp*)
23663 # Override, as these systems have only a dummy fork() stub
23664 ac_cv_func_fork_works=no
23667 ac_cv_func_fork_works=yes
23669 esac
23670 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23671 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23673 ac_cv_func_vfork_works=$ac_cv_func_vfork
23674 if test "x$ac_cv_func_vfork" = xyes; then
23675 { echo "$as_me:$LINENO: checking for working vfork" >&5
23676 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23677 if test "${ac_cv_func_vfork_works+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23679 else
23680 if test "$cross_compiling" = yes; then
23681 ac_cv_func_vfork_works=cross
23682 else
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h. */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h. */
23689 /* Thanks to Paul Eggert for this test. */
23690 $ac_includes_default
23691 #include <sys/wait.h>
23692 #ifdef HAVE_VFORK_H
23693 # include <vfork.h>
23694 #endif
23695 /* On some sparc systems, changes by the child to local and incoming
23696 argument registers are propagated back to the parent. The compiler
23697 is told about this with #include <vfork.h>, but some compilers
23698 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23699 static variable whose address is put into a register that is
23700 clobbered by the vfork. */
23701 static void
23702 #ifdef __cplusplus
23703 sparc_address_test (int arg)
23704 # else
23705 sparc_address_test (arg) int arg;
23706 #endif
23708 static pid_t child;
23709 if (!child) {
23710 child = vfork ();
23711 if (child < 0) {
23712 perror ("vfork");
23713 _exit(2);
23715 if (!child) {
23716 arg = getpid();
23717 write(-1, "", 0);
23718 _exit (arg);
23724 main ()
23726 pid_t parent = getpid ();
23727 pid_t child;
23729 sparc_address_test (0);
23731 child = vfork ();
23733 if (child == 0) {
23734 /* Here is another test for sparc vfork register problems. This
23735 test uses lots of local variables, at least as many local
23736 variables as main has allocated so far including compiler
23737 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23738 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23739 reuse the register of parent for one of the local variables,
23740 since it will think that parent can't possibly be used any more
23741 in this routine. Assigning to the local variable will thus
23742 munge parent in the parent process. */
23743 pid_t
23744 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23745 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23746 /* Convince the compiler that p..p7 are live; otherwise, it might
23747 use the same hardware register for all 8 local variables. */
23748 if (p != p1 || p != p2 || p != p3 || p != p4
23749 || p != p5 || p != p6 || p != p7)
23750 _exit(1);
23752 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23753 from child file descriptors. If the child closes a descriptor
23754 before it execs or exits, this munges the parent's descriptor
23755 as well. Test for this by closing stdout in the child. */
23756 _exit(close(fileno(stdout)) != 0);
23757 } else {
23758 int status;
23759 struct stat st;
23761 while (wait(&status) != child)
23763 return (
23764 /* Was there some problem with vforking? */
23765 child < 0
23767 /* Did the child fail? (This shouldn't happen.) */
23768 || status
23770 /* Did the vfork/compiler bug occur? */
23771 || parent != getpid()
23773 /* Did the file descriptor bug occur? */
23774 || fstat(fileno(stdout), &st) != 0
23778 _ACEOF
23779 rm -f conftest$ac_exeext
23780 if { (ac_try="$ac_link"
23781 case "(($ac_try" in
23782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23783 *) ac_try_echo=$ac_try;;
23784 esac
23785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23786 (eval "$ac_link") 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23790 { (case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23793 esac
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795 (eval "$ac_try") 2>&5
23796 ac_status=$?
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); }; }; then
23799 ac_cv_func_vfork_works=yes
23800 else
23801 echo "$as_me: program exited with status $ac_status" >&5
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23805 ( exit $ac_status )
23806 ac_cv_func_vfork_works=no
23808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23814 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23817 if test "x$ac_cv_func_fork_works" = xcross; then
23818 ac_cv_func_vfork_works=$ac_cv_func_vfork
23819 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23820 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23823 if test "x$ac_cv_func_vfork_works" = xyes; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_WORKING_VFORK 1
23827 _ACEOF
23829 else
23831 cat >>confdefs.h <<\_ACEOF
23832 #define vfork fork
23833 _ACEOF
23836 if test "x$ac_cv_func_fork_works" = xyes; then
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_WORKING_FORK 1
23840 _ACEOF
23845 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23846 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23847 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
23849 else
23850 cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h. */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23856 #include <langinfo.h>
23858 main ()
23860 char* cs = nl_langinfo(CODESET);
23862 return 0;
23864 _ACEOF
23865 rm -f conftest.$ac_objext conftest$ac_exeext
23866 if { (ac_try="$ac_link"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23870 esac
23871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_link") 2>conftest.er1
23873 ac_status=$?
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } && {
23879 test -z "$ac_c_werror_flag" ||
23880 test ! -s conftest.err
23881 } && test -s conftest$ac_exeext &&
23882 $as_test_x conftest$ac_exeext; then
23883 emacs_cv_langinfo_codeset=yes
23884 else
23885 echo "$as_me: failed program was:" >&5
23886 sed 's/^/| /' conftest.$ac_ext >&5
23888 emacs_cv_langinfo_codeset=no
23891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23892 conftest$ac_exeext conftest.$ac_ext
23895 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23896 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23897 if test $emacs_cv_langinfo_codeset = yes; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define HAVE_LANGINFO_CODESET 1
23901 _ACEOF
23905 { echo "$as_me:$LINENO: checking for size_t" >&5
23906 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23907 if test "${ac_cv_type_size_t+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23909 else
23910 cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h. */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h. */
23916 $ac_includes_default
23917 typedef size_t ac__type_new_;
23919 main ()
23921 if ((ac__type_new_ *) 0)
23922 return 0;
23923 if (sizeof (ac__type_new_))
23924 return 0;
23926 return 0;
23928 _ACEOF
23929 rm -f conftest.$ac_objext
23930 if { (ac_try="$ac_compile"
23931 case "(($ac_try" in
23932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933 *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936 (eval "$ac_compile") 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } && {
23943 test -z "$ac_c_werror_flag" ||
23944 test ! -s conftest.err
23945 } && test -s conftest.$ac_objext; then
23946 ac_cv_type_size_t=yes
23947 else
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ac_cv_type_size_t=no
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23956 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23957 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23958 if test $ac_cv_type_size_t = yes; then
23960 cat >>confdefs.h <<_ACEOF
23961 #define HAVE_SIZE_T 1
23962 _ACEOF
23968 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23969 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23970 if test "${ac_cv_type_mbstate_t+set}" = set; then
23971 echo $ECHO_N "(cached) $ECHO_C" >&6
23972 else
23973 cat >conftest.$ac_ext <<_ACEOF
23974 /* confdefs.h. */
23975 _ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 $ac_includes_default
23980 # include <wchar.h>
23982 main ()
23984 mbstate_t x; return sizeof x;
23986 return 0;
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (ac_try="$ac_compile"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_compile") 2>conftest.er1
23997 ac_status=$?
23998 grep -v '^ *+' conftest.er1 >conftest.err
23999 rm -f conftest.er1
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && {
24003 test -z "$ac_c_werror_flag" ||
24004 test ! -s conftest.err
24005 } && test -s conftest.$ac_objext; then
24006 ac_cv_type_mbstate_t=yes
24007 else
24008 echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24011 ac_cv_type_mbstate_t=no
24014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24016 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24017 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24018 if test $ac_cv_type_mbstate_t = yes; then
24020 cat >>confdefs.h <<\_ACEOF
24021 #define HAVE_MBSTATE_T 1
24022 _ACEOF
24024 else
24026 cat >>confdefs.h <<\_ACEOF
24027 #define mbstate_t int
24028 _ACEOF
24032 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24033 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24034 if test "${emacs_cv_c_restrict+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24036 else
24037 cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h. */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 void fred (int *restrict x);
24045 main ()
24049 return 0;
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (ac_try="$ac_compile"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24057 esac
24058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24059 (eval "$ac_compile") 2>conftest.er1
24060 ac_status=$?
24061 grep -v '^ *+' conftest.er1 >conftest.err
24062 rm -f conftest.er1
24063 cat conftest.err >&5
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } && {
24066 test -z "$ac_c_werror_flag" ||
24067 test ! -s conftest.err
24068 } && test -s conftest.$ac_objext; then
24069 emacs_cv_c_restrict=yes
24070 else
24071 echo "$as_me: failed program was:" >&5
24072 sed 's/^/| /' conftest.$ac_ext >&5
24074 cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h. */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24080 void fred (int *__restrict x);
24082 main ()
24086 return 0;
24088 _ACEOF
24089 rm -f conftest.$ac_objext
24090 if { (ac_try="$ac_compile"
24091 case "(($ac_try" in
24092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093 *) ac_try_echo=$ac_try;;
24094 esac
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24106 emacs_cv_c_restrict=__restrict
24107 else
24108 echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24111 emacs_cv_c_restrict=no
24114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24120 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24121 case "$emacs_cv_c_restrict" in
24122 yes) emacs_restrict=restrict;;
24123 no) emacs_restrict="";;
24124 *) emacs_restrict="$emacs_cv_c_restrict";;
24125 esac
24126 if test "$emacs_restrict" != __restrict; then
24128 cat >>confdefs.h <<_ACEOF
24129 #define __restrict $emacs_restrict
24130 _ACEOF
24134 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24135 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24136 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24137 echo $ECHO_N "(cached) $ECHO_C" >&6
24138 else
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h. */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 void fred (int x[__restrict]);
24147 main ()
24151 return 0;
24153 _ACEOF
24154 rm -f conftest.$ac_objext
24155 if { (ac_try="$ac_compile"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24159 esac
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161 (eval "$ac_compile") 2>conftest.er1
24162 ac_status=$?
24163 grep -v '^ *+' conftest.er1 >conftest.err
24164 rm -f conftest.er1
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } && {
24168 test -z "$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24170 } && test -s conftest.$ac_objext; then
24171 emacs_cv_c_restrict_arr=yes
24172 else
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24176 emacs_cv_c_restrict_arr=no
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24182 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24183 if test "$emacs_cv_c_restrict_arr" = yes; then
24185 cat >>confdefs.h <<\_ACEOF
24186 #define __restrict_arr __restrict
24187 _ACEOF
24193 # Set up the CFLAGS for real compilation, so we can substitute it.
24194 CFLAGS="$REAL_CFLAGS"
24195 CPPFLAGS="$REAL_CPPFLAGS"
24197 #### Find out which version of Emacs this is.
24198 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24199 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24200 if test x"${version}" = x; then
24201 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24202 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24203 { (exit 1); exit 1; }; }
24206 ### Specify what sort of things we'll be editing into Makefile and config.h.
24207 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24251 cat >>confdefs.h <<_ACEOF
24252 #define EMACS_CONFIGURATION "${canonical}"
24253 _ACEOF
24256 cat >>confdefs.h <<_ACEOF
24257 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24258 _ACEOF
24261 cat >>confdefs.h <<_ACEOF
24262 #define config_machfile "${machfile}"
24263 _ACEOF
24266 cat >>confdefs.h <<_ACEOF
24267 #define config_opsysfile "${opsysfile}"
24268 _ACEOF
24271 cat >>confdefs.h <<_ACEOF
24272 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24273 _ACEOF
24276 cat >>confdefs.h <<_ACEOF
24277 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24278 _ACEOF
24281 cat >>confdefs.h <<_ACEOF
24282 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24283 _ACEOF
24286 cat >>confdefs.h <<_ACEOF
24287 #define UNEXEC_SRC ${UNEXEC_SRC}
24288 _ACEOF
24291 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24293 cat >>confdefs.h <<\_ACEOF
24294 #define HAVE_X_WINDOWS 1
24295 _ACEOF
24298 if test "${USE_X_TOOLKIT}" != "none" ; then
24300 cat >>confdefs.h <<\_ACEOF
24301 #define USE_X_TOOLKIT 1
24302 _ACEOF
24304 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24306 cat >>confdefs.h <<\_ACEOF
24307 #define USE_LUCID 1
24308 _ACEOF
24310 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24312 cat >>confdefs.h <<\_ACEOF
24313 #define USE_MOTIF 1
24314 _ACEOF
24318 if test "${HAVE_X11}" = "yes" ; then
24320 cat >>confdefs.h <<\_ACEOF
24321 #define HAVE_X11 1
24322 _ACEOF
24325 if test "${HAVE_MENUS}" = "yes" ; then
24327 cat >>confdefs.h <<\_ACEOF
24328 #define HAVE_MENUS 1
24329 _ACEOF
24332 if test "${GNU_MALLOC}" = "yes" ; then
24334 cat >>confdefs.h <<\_ACEOF
24335 #define GNU_MALLOC 1
24336 _ACEOF
24339 if test "${REL_ALLOC}" = "yes" ; then
24341 cat >>confdefs.h <<\_ACEOF
24342 #define REL_ALLOC 1
24343 _ACEOF
24352 #### Report on what we decided to do.
24353 #### Report GTK as a toolkit, even if it doesn't use Xt.
24354 #### It makes printing result more understandable as using GTK sets
24355 #### toolkit_scroll_bars to yes by default.
24356 if test "${HAVE_GTK}" = "yes"; then
24357 USE_X_TOOLKIT=GTK
24360 echo "
24361 Configured for \`${canonical}'.
24363 Where should the build process find the source code? ${srcdir}
24364 What operating system and machine description files should Emacs use?
24365 \`${opsysfile}' and \`${machfile}'
24366 What compiler should emacs be built with? ${CC} ${CFLAGS}
24367 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24368 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24369 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24370 What window system should Emacs use? ${window_system}
24371 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24373 if test -n "${x_includes}"; then
24374 echo " Where do we find X Windows header files? ${x_includes}"
24375 else
24376 echo " Where do we find X Windows header files? Standard dirs"
24378 if test -n "${x_libraries}"; then
24379 echo " Where do we find X Windows libraries? ${x_libraries}"
24380 else
24381 echo " Where do we find X Windows libraries? Standard dirs"
24384 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24385 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24386 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24387 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24388 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24389 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24390 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24391 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24392 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24394 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24395 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24396 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24397 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24399 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24400 echo
24402 if test $USE_XASSERTS = yes; then
24403 echo " Compiling with asserts turned on."
24404 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24407 echo
24409 if test "$USE_X_TOOLKIT" = GTK; then
24410 case "$canonical" in
24411 *cygwin*)
24412 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24413 will probably get a crash on startup. If this happens, please use another
24414 toolkit for Emacs. See etc/PROBLEMS for more information."
24416 esac
24419 if test "$HAVE_NS" = "yes"; then
24420 echo
24421 echo "You must run \"make install\" in order to test the built application.
24422 The installed application will go to nextstep/Emacs.app and can be
24423 run or moved from there."
24424 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24425 echo "The application will be fully self-contained."
24426 else
24427 echo "The lisp resources for the application will be installed under ${prefix}.
24428 You may need to run \"make install\" with sudo. The application will fail
24429 to run if these resources are not installed."
24431 echo
24434 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24435 echo "D-Bus integration has been tested for GNU/Linux only."
24436 echo
24440 # Remove any trailing slashes in these variables.
24441 test "${prefix}" != NONE &&
24442 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24443 test "${exec_prefix}" != NONE &&
24444 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24446 # Now get this: Some word that is part of the ${srcdir} directory name
24447 # or the ${configuration} value might, just might, happen to be an
24448 # identifier like `sun4' or `i386' or something, and be predefined by
24449 # the C preprocessor to some helpful value like 1, or maybe the empty
24450 # string. Needless to say consequent macro substitutions are less
24451 # than conducive to the makefile finding the correct directory.
24452 cpp_undefs="`echo $srcdir $configuration $canonical |
24453 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24454 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24456 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24457 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24458 ## from Makefile.c can correctly provide the arg `-traditional' to the
24459 ## C preprocessor.
24461 cat >conftest.$ac_ext <<_ACEOF
24462 /* confdefs.h. */
24463 _ACEOF
24464 cat confdefs.h >>conftest.$ac_ext
24465 cat >>conftest.$ac_ext <<_ACEOF
24466 /* end confdefs.h. */
24467 yes..yes
24468 _ACEOF
24469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24470 $EGREP "yes..yes" >/dev/null 2>&1; then
24471 CPP_NEED_TRADITIONAL=no
24472 else
24473 CPP_NEED_TRADITIONAL=yes
24475 rm -f conftest*
24478 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"
24480 ac_config_commands="$ac_config_commands default"
24482 cat >confcache <<\_ACEOF
24483 # This file is a shell script that caches the results of configure
24484 # tests run on this system so they can be shared between configure
24485 # scripts and configure runs, see configure's option --config-cache.
24486 # It is not useful on other systems. If it contains results you don't
24487 # want to keep, you may remove or edit it.
24489 # config.status only pays attention to the cache file if you give it
24490 # the --recheck option to rerun configure.
24492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24494 # following values.
24496 _ACEOF
24498 # The following way of writing the cache mishandles newlines in values,
24499 # but we know of no workaround that is simple, portable, and efficient.
24500 # So, we kill variables containing newlines.
24501 # Ultrix sh set writes to stderr and can't be redirected directly,
24502 # and sets the high bit in the cache file unless we assign to the vars.
24504 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24505 eval ac_val=\$$ac_var
24506 case $ac_val in #(
24507 *${as_nl}*)
24508 case $ac_var in #(
24509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24511 esac
24512 case $ac_var in #(
24513 _ | IFS | as_nl) ;; #(
24514 *) $as_unset $ac_var ;;
24515 esac ;;
24516 esac
24517 done
24519 (set) 2>&1 |
24520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24521 *${as_nl}ac_space=\ *)
24522 # `set' does not quote correctly, so add quotes (double-quote
24523 # substitution turns \\\\ into \\, and sed turns \\ into \).
24524 sed -n \
24525 "s/'/'\\\\''/g;
24526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24527 ;; #(
24529 # `set' quotes correctly as required by POSIX, so do not add quotes.
24530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24532 esac |
24533 sort
24535 sed '
24536 /^ac_cv_env_/b end
24537 t clear
24538 :clear
24539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24540 t end
24541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24542 :end' >>confcache
24543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24544 if test -w "$cache_file"; then
24545 test "x$cache_file" != "x/dev/null" &&
24546 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24547 echo "$as_me: updating cache $cache_file" >&6;}
24548 cat confcache >$cache_file
24549 else
24550 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24551 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24554 rm -f confcache
24556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24557 # Let make expand exec_prefix.
24558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24560 DEFS=-DHAVE_CONFIG_H
24562 ac_libobjs=
24563 ac_ltlibobjs=
24564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24565 # 1. Remove the extension, and $U if already installed.
24566 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24567 ac_i=`echo "$ac_i" | sed "$ac_script"`
24568 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24569 # will be set to the directory where LIBOBJS objects are built.
24570 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24571 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24572 done
24573 LIBOBJS=$ac_libobjs
24575 LTLIBOBJS=$ac_ltlibobjs
24579 : ${CONFIG_STATUS=./config.status}
24580 ac_clean_files_save=$ac_clean_files
24581 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24582 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24583 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24584 cat >$CONFIG_STATUS <<_ACEOF
24585 #! $SHELL
24586 # Generated by $as_me.
24587 # Run this file to recreate the current configuration.
24588 # Compiler output produced by configure, useful for debugging
24589 # configure, is in config.log if it exists.
24591 debug=false
24592 ac_cs_recheck=false
24593 ac_cs_silent=false
24594 SHELL=\${CONFIG_SHELL-$SHELL}
24595 _ACEOF
24597 cat >>$CONFIG_STATUS <<\_ACEOF
24598 ## --------------------- ##
24599 ## M4sh Initialization. ##
24600 ## --------------------- ##
24602 # Be more Bourne compatible
24603 DUALCASE=1; export DUALCASE # for MKS sh
24604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24605 emulate sh
24606 NULLCMD=:
24607 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24608 # is contrary to our usage. Disable this feature.
24609 alias -g '${1+"$@"}'='"$@"'
24610 setopt NO_GLOB_SUBST
24611 else
24612 case `(set -o) 2>/dev/null` in
24613 *posix*) set -o posix ;;
24614 esac
24621 # PATH needs CR
24622 # Avoid depending upon Character Ranges.
24623 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24624 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24625 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24626 as_cr_digits='0123456789'
24627 as_cr_alnum=$as_cr_Letters$as_cr_digits
24629 # The user is always right.
24630 if test "${PATH_SEPARATOR+set}" != set; then
24631 echo "#! /bin/sh" >conf$$.sh
24632 echo "exit 0" >>conf$$.sh
24633 chmod +x conf$$.sh
24634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24635 PATH_SEPARATOR=';'
24636 else
24637 PATH_SEPARATOR=:
24639 rm -f conf$$.sh
24642 # Support unset when possible.
24643 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24644 as_unset=unset
24645 else
24646 as_unset=false
24650 # IFS
24651 # We need space, tab and new line, in precisely that order. Quoting is
24652 # there to prevent editors from complaining about space-tab.
24653 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24654 # splitting by setting IFS to empty value.)
24655 as_nl='
24657 IFS=" "" $as_nl"
24659 # Find who we are. Look in the path if we contain no directory separator.
24660 case $0 in
24661 *[\\/]* ) as_myself=$0 ;;
24662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24663 for as_dir in $PATH
24665 IFS=$as_save_IFS
24666 test -z "$as_dir" && as_dir=.
24667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24668 done
24669 IFS=$as_save_IFS
24672 esac
24673 # We did not find ourselves, most probably we were run as `sh COMMAND'
24674 # in which case we are not to be found in the path.
24675 if test "x$as_myself" = x; then
24676 as_myself=$0
24678 if test ! -f "$as_myself"; then
24679 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24680 { (exit 1); exit 1; }
24683 # Work around bugs in pre-3.0 UWIN ksh.
24684 for as_var in ENV MAIL MAILPATH
24685 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24686 done
24687 PS1='$ '
24688 PS2='> '
24689 PS4='+ '
24691 # NLS nuisances.
24692 for as_var in \
24693 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24694 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24695 LC_TELEPHONE LC_TIME
24697 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24698 eval $as_var=C; export $as_var
24699 else
24700 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24702 done
24704 # Required to use basename.
24705 if expr a : '\(a\)' >/dev/null 2>&1 &&
24706 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24707 as_expr=expr
24708 else
24709 as_expr=false
24712 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24713 as_basename=basename
24714 else
24715 as_basename=false
24719 # Name of the executable.
24720 as_me=`$as_basename -- "$0" ||
24721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24722 X"$0" : 'X\(//\)$' \| \
24723 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24724 echo X/"$0" |
24725 sed '/^.*\/\([^/][^/]*\)\/*$/{
24726 s//\1/
24729 /^X\/\(\/\/\)$/{
24730 s//\1/
24733 /^X\/\(\/\).*/{
24734 s//\1/
24737 s/.*/./; q'`
24739 # CDPATH.
24740 $as_unset CDPATH
24744 as_lineno_1=$LINENO
24745 as_lineno_2=$LINENO
24746 test "x$as_lineno_1" != "x$as_lineno_2" &&
24747 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24750 # uniformly replaced by the line number. The first 'sed' inserts a
24751 # line-number line after each line using $LINENO; the second 'sed'
24752 # does the real work. The second script uses 'N' to pair each
24753 # line-number line with the line containing $LINENO, and appends
24754 # trailing '-' during substitution so that $LINENO is not a special
24755 # case at line end.
24756 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24757 # scripts with optimization help from Paolo Bonzini. Blame Lee
24758 # E. McMahon (1931-1989) for sed's syntax. :-)
24759 sed -n '
24761 /[$]LINENO/=
24762 ' <$as_myself |
24763 sed '
24764 s/[$]LINENO.*/&-/
24765 t lineno
24767 :lineno
24769 :loop
24770 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24771 t loop
24772 s/-\n.*//
24773 ' >$as_me.lineno &&
24774 chmod +x "$as_me.lineno" ||
24775 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24776 { (exit 1); exit 1; }; }
24778 # Don't try to exec as it changes $[0], causing all sort of problems
24779 # (the dirname of $[0] is not the place where we might find the
24780 # original and so on. Autoconf is especially sensitive to this).
24781 . "./$as_me.lineno"
24782 # Exit status is that of the last command.
24783 exit
24787 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24788 as_dirname=dirname
24789 else
24790 as_dirname=false
24793 ECHO_C= ECHO_N= ECHO_T=
24794 case `echo -n x` in
24795 -n*)
24796 case `echo 'x\c'` in
24797 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24798 *) ECHO_C='\c';;
24799 esac;;
24801 ECHO_N='-n';;
24802 esac
24804 if expr a : '\(a\)' >/dev/null 2>&1 &&
24805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24806 as_expr=expr
24807 else
24808 as_expr=false
24811 rm -f conf$$ conf$$.exe conf$$.file
24812 if test -d conf$$.dir; then
24813 rm -f conf$$.dir/conf$$.file
24814 else
24815 rm -f conf$$.dir
24816 mkdir conf$$.dir
24818 echo >conf$$.file
24819 if ln -s conf$$.file conf$$ 2>/dev/null; then
24820 as_ln_s='ln -s'
24821 # ... but there are two gotchas:
24822 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24823 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24824 # In both cases, we have to default to `cp -p'.
24825 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24826 as_ln_s='cp -p'
24827 elif ln conf$$.file conf$$ 2>/dev/null; then
24828 as_ln_s=ln
24829 else
24830 as_ln_s='cp -p'
24832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24833 rmdir conf$$.dir 2>/dev/null
24835 if mkdir -p . 2>/dev/null; then
24836 as_mkdir_p=:
24837 else
24838 test -d ./-p && rmdir ./-p
24839 as_mkdir_p=false
24842 if test -x / >/dev/null 2>&1; then
24843 as_test_x='test -x'
24844 else
24845 if ls -dL / >/dev/null 2>&1; then
24846 as_ls_L_option=L
24847 else
24848 as_ls_L_option=
24850 as_test_x='
24851 eval sh -c '\''
24852 if test -d "$1"; then
24853 test -d "$1/.";
24854 else
24855 case $1 in
24856 -*)set "./$1";;
24857 esac;
24858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24859 ???[sx]*):;;*)false;;esac;fi
24860 '\'' sh
24863 as_executable_p=$as_test_x
24865 # Sed expression to map a string onto a valid CPP name.
24866 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24868 # Sed expression to map a string onto a valid variable name.
24869 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24872 exec 6>&1
24874 # Save the log message, to keep $[0] and so on meaningful, and to
24875 # report actual input values of CONFIG_FILES etc. instead of their
24876 # values after options handling.
24877 ac_log="
24878 This file was extended by emacs $as_me 23.0.91, which was
24879 generated by GNU Autoconf 2.61. Invocation command line was
24881 CONFIG_FILES = $CONFIG_FILES
24882 CONFIG_HEADERS = $CONFIG_HEADERS
24883 CONFIG_LINKS = $CONFIG_LINKS
24884 CONFIG_COMMANDS = $CONFIG_COMMANDS
24885 $ $0 $@
24887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24890 _ACEOF
24892 cat >>$CONFIG_STATUS <<_ACEOF
24893 # Files that config.status was made for.
24894 config_files="$ac_config_files"
24895 config_headers="$ac_config_headers"
24896 config_commands="$ac_config_commands"
24898 _ACEOF
24900 cat >>$CONFIG_STATUS <<\_ACEOF
24901 ac_cs_usage="\
24902 \`$as_me' instantiates files from templates according to the
24903 current configuration.
24905 Usage: $0 [OPTIONS] [FILE]...
24907 -h, --help print this help, then exit
24908 -V, --version print version number and configuration settings, then exit
24909 -q, --quiet do not print progress messages
24910 -d, --debug don't remove temporary files
24911 --recheck update $as_me by reconfiguring in the same conditions
24912 --file=FILE[:TEMPLATE]
24913 instantiate the configuration file FILE
24914 --header=FILE[:TEMPLATE]
24915 instantiate the configuration header FILE
24917 Configuration files:
24918 $config_files
24920 Configuration headers:
24921 $config_headers
24923 Configuration commands:
24924 $config_commands
24926 Report bugs to <bug-autoconf@gnu.org>."
24928 _ACEOF
24929 cat >>$CONFIG_STATUS <<_ACEOF
24930 ac_cs_version="\\
24931 emacs config.status 23.0.91
24932 configured by $0, generated by GNU Autoconf 2.61,
24933 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24935 Copyright (C) 2006 Free Software Foundation, Inc.
24936 This config.status script is free software; the Free Software Foundation
24937 gives unlimited permission to copy, distribute and modify it."
24939 ac_pwd='$ac_pwd'
24940 srcdir='$srcdir'
24941 INSTALL='$INSTALL'
24942 _ACEOF
24944 cat >>$CONFIG_STATUS <<\_ACEOF
24945 # If no file are specified by the user, then we need to provide default
24946 # value. By we need to know if files were specified by the user.
24947 ac_need_defaults=:
24948 while test $# != 0
24950 case $1 in
24951 --*=*)
24952 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24953 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24954 ac_shift=:
24957 ac_option=$1
24958 ac_optarg=$2
24959 ac_shift=shift
24961 esac
24963 case $ac_option in
24964 # Handling of the options.
24965 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24966 ac_cs_recheck=: ;;
24967 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24968 echo "$ac_cs_version"; exit ;;
24969 --debug | --debu | --deb | --de | --d | -d )
24970 debug=: ;;
24971 --file | --fil | --fi | --f )
24972 $ac_shift
24973 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24974 ac_need_defaults=false;;
24975 --header | --heade | --head | --hea )
24976 $ac_shift
24977 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24978 ac_need_defaults=false;;
24979 --he | --h)
24980 # Conflict between --help and --header
24981 { echo "$as_me: error: ambiguous option: $1
24982 Try \`$0 --help' for more information." >&2
24983 { (exit 1); exit 1; }; };;
24984 --help | --hel | -h )
24985 echo "$ac_cs_usage"; exit ;;
24986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24988 ac_cs_silent=: ;;
24990 # This is an error.
24991 -*) { echo "$as_me: error: unrecognized option: $1
24992 Try \`$0 --help' for more information." >&2
24993 { (exit 1); exit 1; }; } ;;
24995 *) ac_config_targets="$ac_config_targets $1"
24996 ac_need_defaults=false ;;
24998 esac
24999 shift
25000 done
25002 ac_configure_extra_args=
25004 if $ac_cs_silent; then
25005 exec 6>/dev/null
25006 ac_configure_extra_args="$ac_configure_extra_args --silent"
25009 _ACEOF
25010 cat >>$CONFIG_STATUS <<_ACEOF
25011 if \$ac_cs_recheck; then
25012 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25013 CONFIG_SHELL=$SHELL
25014 export CONFIG_SHELL
25015 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25018 _ACEOF
25019 cat >>$CONFIG_STATUS <<\_ACEOF
25020 exec 5>>config.log
25022 echo
25023 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25024 ## Running $as_me. ##
25025 _ASBOX
25026 echo "$ac_log"
25027 } >&5
25029 _ACEOF
25030 cat >>$CONFIG_STATUS <<_ACEOF
25032 # INIT-COMMANDS
25034 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25036 _ACEOF
25038 cat >>$CONFIG_STATUS <<\_ACEOF
25040 # Handling of arguments.
25041 for ac_config_target in $ac_config_targets
25043 case $ac_config_target in
25044 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25046 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25047 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25048 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25049 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25050 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25051 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25052 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25053 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25054 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25055 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25056 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25058 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25060 { (exit 1); exit 1; }; };;
25061 esac
25062 done
25065 # If the user did not use the arguments to specify the items to instantiate,
25066 # then the envvar interface is used. Set only those that are not.
25067 # We use the long form for the default assignment because of an extremely
25068 # bizarre bug on SunOS 4.1.3.
25069 if $ac_need_defaults; then
25070 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25071 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25072 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25075 # Have a temporary directory for convenience. Make it in the build tree
25076 # simply because there is no reason against having it here, and in addition,
25077 # creating and moving files from /tmp can sometimes cause problems.
25078 # Hook for its removal unless debugging.
25079 # Note that there is a small window in which the directory will not be cleaned:
25080 # after its creation but before its name has been assigned to `$tmp'.
25081 $debug ||
25083 tmp=
25084 trap 'exit_status=$?
25085 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25087 trap '{ (exit 1); exit 1; }' 1 2 13 15
25089 # Create a (secure) tmp directory for tmp files.
25092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25093 test -n "$tmp" && test -d "$tmp"
25094 } ||
25096 tmp=./conf$$-$RANDOM
25097 (umask 077 && mkdir "$tmp")
25098 } ||
25100 echo "$me: cannot create a temporary directory in ." >&2
25101 { (exit 1); exit 1; }
25105 # Set up the sed scripts for CONFIG_FILES section.
25108 # No need to generate the scripts if there are no CONFIG_FILES.
25109 # This happens for instance when ./config.status config.h
25110 if test -n "$CONFIG_FILES"; then
25112 _ACEOF
25116 ac_delim='%!_!# '
25117 for ac_last_try in false false false false false :; do
25118 cat >conf$$subs.sed <<_ACEOF
25119 SHELL!$SHELL$ac_delim
25120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25126 exec_prefix!$exec_prefix$ac_delim
25127 prefix!$prefix$ac_delim
25128 program_transform_name!$program_transform_name$ac_delim
25129 bindir!$bindir$ac_delim
25130 sbindir!$sbindir$ac_delim
25131 libexecdir!$libexecdir$ac_delim
25132 datarootdir!$datarootdir$ac_delim
25133 datadir!$datadir$ac_delim
25134 sysconfdir!$sysconfdir$ac_delim
25135 sharedstatedir!$sharedstatedir$ac_delim
25136 localstatedir!$localstatedir$ac_delim
25137 includedir!$includedir$ac_delim
25138 oldincludedir!$oldincludedir$ac_delim
25139 docdir!$docdir$ac_delim
25140 infodir!$infodir$ac_delim
25141 htmldir!$htmldir$ac_delim
25142 dvidir!$dvidir$ac_delim
25143 pdfdir!$pdfdir$ac_delim
25144 psdir!$psdir$ac_delim
25145 libdir!$libdir$ac_delim
25146 localedir!$localedir$ac_delim
25147 mandir!$mandir$ac_delim
25148 DEFS!$DEFS$ac_delim
25149 ECHO_C!$ECHO_C$ac_delim
25150 ECHO_N!$ECHO_N$ac_delim
25151 ECHO_T!$ECHO_T$ac_delim
25152 LIBS!$LIBS$ac_delim
25153 build_alias!$build_alias$ac_delim
25154 host_alias!$host_alias$ac_delim
25155 target_alias!$target_alias$ac_delim
25156 MAINT!$MAINT$ac_delim
25157 build!$build$ac_delim
25158 build_cpu!$build_cpu$ac_delim
25159 build_vendor!$build_vendor$ac_delim
25160 build_os!$build_os$ac_delim
25161 host!$host$ac_delim
25162 host_cpu!$host_cpu$ac_delim
25163 host_vendor!$host_vendor$ac_delim
25164 host_os!$host_os$ac_delim
25165 CC!$CC$ac_delim
25166 CFLAGS!$CFLAGS$ac_delim
25167 LDFLAGS!$LDFLAGS$ac_delim
25168 CPPFLAGS!$CPPFLAGS$ac_delim
25169 ac_ct_CC!$ac_ct_CC$ac_delim
25170 EXEEXT!$EXEEXT$ac_delim
25171 OBJEXT!$OBJEXT$ac_delim
25172 CPP!$CPP$ac_delim
25173 GREP!$GREP$ac_delim
25174 EGREP!$EGREP$ac_delim
25175 LN_S!$LN_S$ac_delim
25176 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25177 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25178 INSTALL_DATA!$INSTALL_DATA$ac_delim
25179 RANLIB!$RANLIB$ac_delim
25180 INSTALL_INFO!$INSTALL_INFO$ac_delim
25181 GZIP_PROG!$GZIP_PROG$ac_delim
25182 MAKEINFO!$MAKEINFO$ac_delim
25183 LIBSOUND!$LIBSOUND$ac_delim
25184 PKG_CONFIG!$PKG_CONFIG$ac_delim
25185 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25186 ALSA_LIBS!$ALSA_LIBS$ac_delim
25187 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25188 SET_MAKE!$SET_MAKE$ac_delim
25189 XMKMF!$XMKMF$ac_delim
25190 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25191 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25192 RSVG_LIBS!$RSVG_LIBS$ac_delim
25193 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25194 GTK_LIBS!$GTK_LIBS$ac_delim
25195 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25196 DBUS_LIBS!$DBUS_LIBS$ac_delim
25197 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25198 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25199 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25200 XFT_LIBS!$XFT_LIBS$ac_delim
25201 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25202 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25203 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25204 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25205 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25206 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25207 ALLOCA!$ALLOCA$ac_delim
25208 liblockfile!$liblockfile$ac_delim
25209 LIBOBJS!$LIBOBJS$ac_delim
25210 NEED_SETGID!$NEED_SETGID$ac_delim
25211 KMEM_GROUP!$KMEM_GROUP$ac_delim
25212 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25213 GETOPT_H!$GETOPT_H$ac_delim
25214 GETOPTOBJS!$GETOPTOBJS$ac_delim
25215 version!$version$ac_delim
25216 _ACEOF
25218 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25219 break
25220 elif $ac_last_try; then
25221 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25223 { (exit 1); exit 1; }; }
25224 else
25225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25227 done
25229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25230 if test -n "$ac_eof"; then
25231 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25232 ac_eof=`expr $ac_eof + 1`
25235 cat >>$CONFIG_STATUS <<_ACEOF
25236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25238 _ACEOF
25239 sed '
25240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25241 s/^/s,@/; s/!/@,|#_!!_#|/
25244 s/'"$ac_delim"'$/,g/; t
25245 s/$/\\/; p
25246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25247 ' >>$CONFIG_STATUS <conf$$subs.sed
25248 rm -f conf$$subs.sed
25249 cat >>$CONFIG_STATUS <<_ACEOF
25250 CEOF$ac_eof
25251 _ACEOF
25254 ac_delim='%!_!# '
25255 for ac_last_try in false false false false false :; do
25256 cat >conf$$subs.sed <<_ACEOF
25257 configuration!$configuration$ac_delim
25258 canonical!$canonical$ac_delim
25259 srcdir!$srcdir$ac_delim
25260 lispdir!$lispdir$ac_delim
25261 locallisppath!$locallisppath$ac_delim
25262 lisppath!$lisppath$ac_delim
25263 x_default_search_path!$x_default_search_path$ac_delim
25264 etcdir!$etcdir$ac_delim
25265 archlibdir!$archlibdir$ac_delim
25266 bitmapdir!$bitmapdir$ac_delim
25267 gamedir!$gamedir$ac_delim
25268 gameuser!$gameuser$ac_delim
25269 c_switch_system!$c_switch_system$ac_delim
25270 c_switch_machine!$c_switch_machine$ac_delim
25271 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25272 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25273 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25274 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25275 machfile!$machfile$ac_delim
25276 opsysfile!$opsysfile$ac_delim
25277 ns_appdir!$ns_appdir$ac_delim
25278 ns_appbindir!$ns_appbindir$ac_delim
25279 ns_appresdir!$ns_appresdir$ac_delim
25280 ns_appsrc!$ns_appsrc$ac_delim
25281 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25282 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25283 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25284 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25285 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25286 LTLIBOBJS!$LTLIBOBJS$ac_delim
25287 _ACEOF
25289 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25290 break
25291 elif $ac_last_try; then
25292 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25293 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25294 { (exit 1); exit 1; }; }
25295 else
25296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25298 done
25300 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25301 if test -n "$ac_eof"; then
25302 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25303 ac_eof=`expr $ac_eof + 1`
25306 cat >>$CONFIG_STATUS <<_ACEOF
25307 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25309 _ACEOF
25310 sed '
25311 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25312 s/^/s,@/; s/!/@,|#_!!_#|/
25315 s/'"$ac_delim"'$/,g/; t
25316 s/$/\\/; p
25317 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25318 ' >>$CONFIG_STATUS <conf$$subs.sed
25319 rm -f conf$$subs.sed
25320 cat >>$CONFIG_STATUS <<_ACEOF
25321 :end
25322 s/|#_!!_#|//g
25323 CEOF$ac_eof
25324 _ACEOF
25327 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25328 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25329 # trailing colons and then remove the whole line if VPATH becomes empty
25330 # (actually we leave an empty line to preserve line numbers).
25331 if test "x$srcdir" = x.; then
25332 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25333 s/:*\$(srcdir):*/:/
25334 s/:*\${srcdir}:*/:/
25335 s/:*@srcdir@:*/:/
25336 s/^\([^=]*=[ ]*\):*/\1/
25337 s/:*$//
25338 s/^[^=]*=[ ]*$//
25342 cat >>$CONFIG_STATUS <<\_ACEOF
25343 fi # test -n "$CONFIG_FILES"
25346 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25348 case $ac_tag in
25349 :[FHLC]) ac_mode=$ac_tag; continue;;
25350 esac
25351 case $ac_mode$ac_tag in
25352 :[FHL]*:*);;
25353 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25354 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25355 { (exit 1); exit 1; }; };;
25356 :[FH]-) ac_tag=-:-;;
25357 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25358 esac
25359 ac_save_IFS=$IFS
25360 IFS=:
25361 set x $ac_tag
25362 IFS=$ac_save_IFS
25363 shift
25364 ac_file=$1
25365 shift
25367 case $ac_mode in
25368 :L) ac_source=$1;;
25369 :[FH])
25370 ac_file_inputs=
25371 for ac_f
25373 case $ac_f in
25374 -) ac_f="$tmp/stdin";;
25375 *) # Look for the file first in the build tree, then in the source tree
25376 # (if the path is not absolute). The absolute path cannot be DOS-style,
25377 # because $ac_f cannot contain `:'.
25378 test -f "$ac_f" ||
25379 case $ac_f in
25380 [\\/$]*) false;;
25381 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25382 esac ||
25383 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25384 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25385 { (exit 1); exit 1; }; };;
25386 esac
25387 ac_file_inputs="$ac_file_inputs $ac_f"
25388 done
25390 # Let's still pretend it is `configure' which instantiates (i.e., don't
25391 # use $as_me), people would be surprised to read:
25392 # /* config.h. Generated by config.status. */
25393 configure_input="Generated from "`IFS=:
25394 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25395 if test x"$ac_file" != x-; then
25396 configure_input="$ac_file. $configure_input"
25397 { echo "$as_me:$LINENO: creating $ac_file" >&5
25398 echo "$as_me: creating $ac_file" >&6;}
25401 case $ac_tag in
25402 *:-:* | *:-) cat >"$tmp/stdin";;
25403 esac
25405 esac
25407 ac_dir=`$as_dirname -- "$ac_file" ||
25408 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25409 X"$ac_file" : 'X\(//\)[^/]' \| \
25410 X"$ac_file" : 'X\(//\)$' \| \
25411 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25412 echo X"$ac_file" |
25413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25414 s//\1/
25417 /^X\(\/\/\)[^/].*/{
25418 s//\1/
25421 /^X\(\/\/\)$/{
25422 s//\1/
25425 /^X\(\/\).*/{
25426 s//\1/
25429 s/.*/./; q'`
25430 { as_dir="$ac_dir"
25431 case $as_dir in #(
25432 -*) as_dir=./$as_dir;;
25433 esac
25434 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25435 as_dirs=
25436 while :; do
25437 case $as_dir in #(
25438 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25439 *) as_qdir=$as_dir;;
25440 esac
25441 as_dirs="'$as_qdir' $as_dirs"
25442 as_dir=`$as_dirname -- "$as_dir" ||
25443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25444 X"$as_dir" : 'X\(//\)[^/]' \| \
25445 X"$as_dir" : 'X\(//\)$' \| \
25446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25447 echo X"$as_dir" |
25448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25449 s//\1/
25452 /^X\(\/\/\)[^/].*/{
25453 s//\1/
25456 /^X\(\/\/\)$/{
25457 s//\1/
25460 /^X\(\/\).*/{
25461 s//\1/
25464 s/.*/./; q'`
25465 test -d "$as_dir" && break
25466 done
25467 test -z "$as_dirs" || eval "mkdir $as_dirs"
25468 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25469 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25470 { (exit 1); exit 1; }; }; }
25471 ac_builddir=.
25473 case "$ac_dir" in
25474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25477 # A ".." for each directory in $ac_dir_suffix.
25478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25479 case $ac_top_builddir_sub in
25480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25482 esac ;;
25483 esac
25484 ac_abs_top_builddir=$ac_pwd
25485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25486 # for backward compatibility:
25487 ac_top_builddir=$ac_top_build_prefix
25489 case $srcdir in
25490 .) # We are building in place.
25491 ac_srcdir=.
25492 ac_top_srcdir=$ac_top_builddir_sub
25493 ac_abs_top_srcdir=$ac_pwd ;;
25494 [\\/]* | ?:[\\/]* ) # Absolute name.
25495 ac_srcdir=$srcdir$ac_dir_suffix;
25496 ac_top_srcdir=$srcdir
25497 ac_abs_top_srcdir=$srcdir ;;
25498 *) # Relative name.
25499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25500 ac_top_srcdir=$ac_top_build_prefix$srcdir
25501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25502 esac
25503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25506 case $ac_mode in
25509 # CONFIG_FILE
25512 case $INSTALL in
25513 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25514 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25515 esac
25516 _ACEOF
25518 cat >>$CONFIG_STATUS <<\_ACEOF
25519 # If the template does not know about datarootdir, expand it.
25520 # FIXME: This hack should be removed a few years after 2.60.
25521 ac_datarootdir_hack=; ac_datarootdir_seen=
25523 case `sed -n '/datarootdir/ {
25527 /@datadir@/p
25528 /@docdir@/p
25529 /@infodir@/p
25530 /@localedir@/p
25531 /@mandir@/p
25532 ' $ac_file_inputs` in
25533 *datarootdir*) ac_datarootdir_seen=yes;;
25534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25535 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25536 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25537 _ACEOF
25538 cat >>$CONFIG_STATUS <<_ACEOF
25539 ac_datarootdir_hack='
25540 s&@datadir@&$datadir&g
25541 s&@docdir@&$docdir&g
25542 s&@infodir@&$infodir&g
25543 s&@localedir@&$localedir&g
25544 s&@mandir@&$mandir&g
25545 s&\\\${datarootdir}&$datarootdir&g' ;;
25546 esac
25547 _ACEOF
25549 # Neutralize VPATH when `$srcdir' = `.'.
25550 # Shell code in configure.ac might set extrasub.
25551 # FIXME: do we really want to maintain this feature?
25552 cat >>$CONFIG_STATUS <<_ACEOF
25553 sed "$ac_vpsub
25554 $extrasub
25555 _ACEOF
25556 cat >>$CONFIG_STATUS <<\_ACEOF
25558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25559 s&@configure_input@&$configure_input&;t t
25560 s&@top_builddir@&$ac_top_builddir_sub&;t t
25561 s&@srcdir@&$ac_srcdir&;t t
25562 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25563 s&@top_srcdir@&$ac_top_srcdir&;t t
25564 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25565 s&@builddir@&$ac_builddir&;t t
25566 s&@abs_builddir@&$ac_abs_builddir&;t t
25567 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25568 s&@INSTALL@&$ac_INSTALL&;t t
25569 $ac_datarootdir_hack
25570 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25572 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25573 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25574 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25575 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25576 which seems to be undefined. Please make sure it is defined." >&5
25577 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25578 which seems to be undefined. Please make sure it is defined." >&2;}
25580 rm -f "$tmp/stdin"
25581 case $ac_file in
25582 -) cat "$tmp/out"; rm -f "$tmp/out";;
25583 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25584 esac
25588 # CONFIG_HEADER
25590 _ACEOF
25592 # Transform confdefs.h into a sed script `conftest.defines', that
25593 # substitutes the proper values into config.h.in to produce config.h.
25594 rm -f conftest.defines conftest.tail
25595 # First, append a space to every undef/define line, to ease matching.
25596 echo 's/$/ /' >conftest.defines
25597 # Then, protect against being on the right side of a sed subst, or in
25598 # an unquoted here document, in config.status. If some macros were
25599 # called several times there might be several #defines for the same
25600 # symbol, which is useless. But do not sort them, since the last
25601 # AC_DEFINE must be honored.
25602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25603 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25604 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25605 # PARAMS is the parameter list in the macro definition--in most cases, it's
25606 # just an empty string.
25607 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25608 ac_dB='\\)[ (].*,\\1define\\2'
25609 ac_dC=' '
25610 ac_dD=' ,'
25612 uniq confdefs.h |
25613 sed -n '
25614 t rset
25615 :rset
25616 s/^[ ]*#[ ]*define[ ][ ]*//
25617 t ok
25620 s/[\\&,]/\\&/g
25621 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25622 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25623 ' >>conftest.defines
25625 # Remove the space that was appended to ease matching.
25626 # Then replace #undef with comments. This is necessary, for
25627 # example, in the case of _POSIX_SOURCE, which is predefined and required
25628 # on some systems where configure will not decide to define it.
25629 # (The regexp can be short, since the line contains either #define or #undef.)
25630 echo 's/ $//
25631 s,^[ #]*u.*,/* & */,' >>conftest.defines
25633 # Break up conftest.defines:
25634 ac_max_sed_lines=50
25636 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25637 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25638 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25639 # et cetera.
25640 ac_in='$ac_file_inputs'
25641 ac_out='"$tmp/out1"'
25642 ac_nxt='"$tmp/out2"'
25644 while :
25646 # Write a here document:
25647 cat >>$CONFIG_STATUS <<_ACEOF
25648 # First, check the format of the line:
25649 cat >"\$tmp/defines.sed" <<\\CEOF
25650 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25651 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25653 :def
25654 _ACEOF
25655 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25656 echo 'CEOF
25657 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25658 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25659 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25660 grep . conftest.tail >/dev/null || break
25661 rm -f conftest.defines
25662 mv conftest.tail conftest.defines
25663 done
25664 rm -f conftest.defines conftest.tail
25666 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25667 cat >>$CONFIG_STATUS <<\_ACEOF
25668 if test x"$ac_file" != x-; then
25669 echo "/* $configure_input */" >"$tmp/config.h"
25670 cat "$ac_result" >>"$tmp/config.h"
25671 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25672 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25673 echo "$as_me: $ac_file is unchanged" >&6;}
25674 else
25675 rm -f $ac_file
25676 mv "$tmp/config.h" $ac_file
25678 else
25679 echo "/* $configure_input */"
25680 cat "$ac_result"
25682 rm -f "$tmp/out12"
25685 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25686 echo "$as_me: executing $ac_file commands" >&6;}
25688 esac
25691 case $ac_file$ac_mode in
25692 "default":C)
25694 ### Make the necessary directories, if they don't exist.
25695 for dir in etc lisp ; do
25696 test -d ${dir} || mkdir ${dir}
25697 done
25699 # Build src/Makefile from ${srcdir}/src/Makefile.c
25700 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25701 # This must be done after src/config.h is built, since we rely on that file.
25703 echo creating src/epaths.h
25704 ${MAKE-make} epaths-force
25706 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25707 # `..' to `. .' unless invoked with -traditional
25709 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25710 CPPFLAGS="$CPPFLAGS -traditional"
25713 echo creating lib-src/Makefile
25714 ( cd lib-src
25715 rm -f junk.c junk1.c junk2.c
25716 sed -e '/start of cpp stuff/q' \
25717 < Makefile.c > junk1.c
25718 sed -e '1,/start of cpp stuff/d'\
25719 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25720 < Makefile.c > junk.c
25721 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25722 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25723 cat junk1.c junk2.c > Makefile.new
25724 rm -f junk.c junk1.c junk2.c
25725 chmod 444 Makefile.new
25726 mv -f Makefile.new Makefile
25729 echo creating src/Makefile
25730 ( cd src
25731 rm -f junk.c junk1.c junk2.c
25732 sed -e '/start of cpp stuff/q' \
25733 < Makefile.c > junk1.c
25734 sed -e '1,/start of cpp stuff/d'\
25735 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25736 < Makefile.c > junk.c
25737 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25738 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25739 cat junk1.c junk2.c > Makefile.new
25740 rm -f junk.c junk1.c junk2.c
25741 chmod 444 Makefile.new
25742 mv -f Makefile.new Makefile
25745 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25746 echo creating src/.gdbinit
25747 echo source $srcdir/src/.gdbinit > src/.gdbinit
25752 esac
25753 done # for ac_tag
25756 { (exit 0); exit 0; }
25757 _ACEOF
25758 chmod +x $CONFIG_STATUS
25759 ac_clean_files=$ac_clean_files_save
25762 # configure is writing to config.log, and then calls config.status.
25763 # config.status does its own redirection, appending to config.log.
25764 # Unfortunately, on DOS this fails, as config.log is still kept open
25765 # by configure, so config.status won't be able to write to it; its
25766 # output is simply discarded. So we exec the FD to /dev/null,
25767 # effectively closing config.log, so it can be properly (re)opened and
25768 # appended to by config.status. When coming back to configure, we
25769 # need to make the FD available again.
25770 if test "$no_create" != yes; then
25771 ac_cs_success=:
25772 ac_config_status_args=
25773 test "$silent" = yes &&
25774 ac_config_status_args="$ac_config_status_args --quiet"
25775 exec 5>/dev/null
25776 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25777 exec 5>>config.log
25778 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25779 # would make configure fail if this is the last instruction.
25780 $ac_cs_success || { (exit 1); exit 1; }