Expand some wildcard entries.
[emacs.git] / configure
blob100a70c66f9a03055727246a44b7e27cf158a141
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 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.60 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.60:";;
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 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1388 or /etc/GNUstep/GNUstep.conf
1389 --with-x use the X Window System
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1400 XMKMF Path to xmkmf, Makefile generator for X Window System
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1405 _ACEOF
1406 ac_status=$?
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1413 ac_builddir=.
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 emacs configure 23.0.60
1466 generated by GNU Autoconf 2.61
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1479 It was created by emacs $as_me 23.0.60, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1482 $ $0 $@
1484 _ACEOF
1485 exec 5>>config.log
1487 cat <<_ASUNAME
1488 ## --------- ##
1489 ## Platform. ##
1490 ## --------- ##
1492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1509 _ASUNAME
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1517 done
1518 IFS=$as_save_IFS
1520 } >&5
1522 cat >&5 <<_ACEOF
1525 ## ----------- ##
1526 ## Core tests. ##
1527 ## ----------- ##
1529 _ACEOF
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_configure_args=
1538 ac_configure_args0=
1539 ac_configure_args1=
1540 ac_must_keep_next=false
1541 for ac_pass in 1 2
1543 for ac_arg
1545 case $ac_arg in
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1549 continue ;;
1550 *\'*)
1551 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 esac
1553 case $ac_pass in
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1559 else
1560 case $ac_arg in
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 esac
1569 -* ) ac_must_keep_next=true ;;
1570 esac
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1574 esac
1575 done
1576 done
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1588 echo
1590 cat <<\_ASBOX
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1594 _ASBOX
1595 echo
1596 # The following way of writing the cache mishandles newlines in values,
1598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in #(
1601 *${as_nl}*)
1602 case $ac_var in #(
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 esac
1606 case $ac_var in #(
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1609 esac ;;
1610 esac
1611 done
1612 (set) 2>&1 |
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1615 sed -n \
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 ;; #(
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1622 esac |
1623 sort
1625 echo
1627 cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_vars
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1643 if test -n "$ac_subst_files"; then
1644 cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_files
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1661 if test -s confdefs.h; then
1662 cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667 echo
1668 cat confdefs.h
1669 echo
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1674 } >&5
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 exit $exit_status
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1687 # Predefined preprocessor variables.
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1720 else
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1724 shift
1725 for ac_site_file
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1731 . "$ac_site_file"
1733 done
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1741 case $cache_file in
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1744 esac
1746 else
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1749 >$cache_file
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1795 done
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s,x,x', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1848 _ACEOF
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1850 rm -f conftest.sed
1853 lispdir='${datadir}/emacs/${version}/lisp'
1854 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1855 '${datadir}/emacs/site-lisp'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1857 etcdir='${datadir}/emacs/${version}/etc'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs/${version}/etc'
1860 gamedir='${localstatedir}/games/emacs'
1862 gameuser=games
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1869 withval=$with_pop;
1870 else
1871 with_pop=yes
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1877 _ACEOF
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1886 else
1887 with_kerberos=no
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define KERBEROS 1
1893 _ACEOF
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1902 else
1903 with_kerberos5=no
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1908 with_kerberos=yes
1909 cat >>confdefs.h <<\_ACEOF
1910 #define KERBEROS 1
1911 _ACEOF
1915 cat >>confdefs.h <<\_ACEOF
1916 #define KERBEROS5 1
1917 _ACEOF
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1925 else
1926 with_hesiod=no
1929 if test "$with_hesiod" != no; then
1931 cat >>confdefs.h <<\_ACEOF
1932 #define HESIOD 1
1933 _ACEOF
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1941 else
1942 with_sound=yes
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1950 else
1951 with_sync_input=yes
1954 if test "$with_sync_input" = yes; then
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1958 _ACEOF
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1967 n | no ) val=no ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1976 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1978 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1981 esac
1982 with_x_toolkit=$val
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1990 withval=$with_xpm;
1991 else
1992 with_xpm=yes
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
1998 withval=$with_jpeg;
1999 else
2000 with_jpeg=yes
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2006 withval=$with_tiff;
2007 else
2008 with_tiff=yes
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2014 withval=$with_gif;
2015 else
2016 with_gif=yes
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2022 withval=$with_png;
2023 else
2024 with_png=yes
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2030 withval=$with_rsvg;
2031 else
2032 with_rsvg=yes
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2040 else
2041 with_freetype=yes
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2047 withval=$with_xft;
2048 else
2049 with_xft=yes
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2056 else
2057 with_libotf=yes
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2064 else
2065 with_m17n_flt=yes
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2073 else
2074 with_toolkit_scroll_bars=yes
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2081 else
2082 with_xaw3d=yes
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2088 withval=$with_xim;
2089 else
2090 with_xim=yes
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2096 withval=$with_ns;
2097 else
2098 with_ns=no
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2105 withval=$with_gpm;
2106 else
2107 with_gpm=yes
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2113 withval=$with_dbus;
2114 else
2115 with_dbus=yes
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval=$with_makeinfo;
2125 else
2126 with_makeinfo=yes
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval=$with_pkg_config_prog;
2158 if test "X${with_pkg_config_prog}" != X; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG="${with_pkg_config_prog}"
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval=$with_gnustep_conf;
2170 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2178 else
2179 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2186 else
2187 EN_NS_SELF_CONTAINED=yes
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval=$enable_asserts; USE_XASSERTS=$enableval
2194 else
2195 USE_XASSERTS=no
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2202 else
2203 USE_MAINTAINER_MODE=no
2206 if test $USE_MAINTAINER_MODE = yes; then
2207 MAINT=
2208 else
2209 MAINT=#
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2216 locallisppath=
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath=${enableval}
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2228 unset CDPATH
2229 case "${srcdir}" in
2230 /* ) ;;
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2238 then
2239 srcdir="$PWD"
2240 else
2241 srcdir="`(cd ${srcdir}; pwd)`"
2244 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2245 esac
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2267 ### Canonicalize the configuration name.
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
2275 elif test -f "$ac_dir/install.sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
2279 elif test -f "$ac_dir/shtool"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2284 done
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353 else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2383 canonical=$host
2384 configuration=${host_alias-${build_alias-$host}}
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2410 machine='' opsys='' unported=no
2411 case "${canonical}" in
2413 ## FreeBSD ports
2414 *-*-freebsd* )
2415 opsys=freebsd
2416 case "${canonical}" in
2417 alpha*-*-freebsd*) machine=alpha ;;
2418 arm*-*-freebsd*) machine=arm ;;
2419 ia64-*-freebsd*) machine=ia64 ;;
2420 sparc-*-freebsd*) machine=sparc ;;
2421 sparc64-*-freebsd*) machine=sparc ;;
2422 powerpc-*-freebsd*) machine=macppc ;;
2423 i[3456]86-*-freebsd*) machine=intel386 ;;
2424 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2425 esac
2428 ## FreeBSD kernel + glibc based userland
2429 *-*-kfreebsd*gnu* )
2430 opsys=gnu-kfreebsd
2431 case "${canonical}" in
2432 alpha*-*-kfreebsd*) machine=alpha ;;
2433 ia64-*-kfreebsd*) machine=ia64 ;;
2434 sparc-*-kfreebsd*) machine=sparc ;;
2435 sparc64-*-kfreebsd*) machine=sparc ;;
2436 powerpc-*-kfreebsd*) machine=macppc ;;
2437 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2438 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2439 esac
2442 ## NetBSD ports
2443 *-*-netbsd* )
2444 opsys=netbsd
2445 if test -f /usr/lib/crti.o; then
2447 cat >>confdefs.h <<\_ACEOF
2448 #define HAVE_CRTIN
2449 _ACEOF
2453 case "${canonical}" in
2454 alpha*-*-netbsd*) machine=alpha ;;
2455 i[3456]86-*-netbsd*) machine=intel386 ;;
2456 powerpc-*-netbsd*) machine=macppc ;;
2457 sparc*-*-netbsd*) machine=sparc ;;
2458 vax-*-netbsd*) machine=vax ;;
2459 arm-*-netbsd*) machine=arm ;;
2460 x86_64-*-netbsd*) machine=amdx86-64 ;;
2461 hppa-*-netbsd*) machine=hp800 ;;
2462 esac
2465 ## OpenBSD ports
2466 *-*-openbsd* )
2467 opsys=openbsd
2468 case "${canonical}" in
2469 alpha*-*-openbsd*) machine=alpha ;;
2470 arm-*-openbsd*) machine=arm ;;
2471 i386-*-openbsd*) machine=intel386 ;;
2472 powerpc-*-openbsd*) machine=macppc ;;
2473 sparc*-*-openbsd*) machine=sparc ;;
2474 vax-*-openbsd*) machine=vax ;;
2475 x86_64-*-openbsd*) machine=amdx86-64 ;;
2476 esac
2479 ## LynxOS ports
2480 *-*-lynxos* )
2481 opsys=lynxos
2482 case "${canonical}" in
2483 i[3456]86-*-lynxos*) machine=intel386 ;;
2484 powerpc-*-lynxos*) machine=powerpc ;;
2485 esac
2488 alpha*-*-linux-gnu* )
2489 machine=alpha opsys=gnu-linux
2492 arm*-*-linux-gnu* )
2493 machine=arm opsys=gnu-linux
2496 ## Apple Darwin / Mac OS X
2497 *-apple-darwin* )
2498 case "${canonical}" in
2499 i[3456]86-* ) machine=intel386 ;;
2500 powerpc-* ) machine=macppc ;;
2501 * ) unported=yes ;;
2502 esac
2503 opsys=darwin
2504 # Define CPP as follows to make autoconf work correctly.
2505 CPP="${CC-cc} -E -no-cpp-precomp"
2506 # Use fink packages if available.
2507 if test -d /sw/include && test -d /sw/lib; then
2508 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2509 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2510 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2514 ## HP 9000 series 700 and 800, running HP/UX
2515 hppa*-hp-hpux10.2* )
2516 machine=hp800 opsys=hpux10-20
2518 hppa*-hp-hpux1[1-9]* )
2519 machine=hp800 opsys=hpux11
2520 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2523 hppa*-*-linux-gnu* )
2524 machine=hp800 opsys=gnu-linux
2527 ## IBM machines
2528 s390-*-linux-gnu* )
2529 machine=ibms390 opsys=gnu-linux
2531 s390x-*-linux-gnu* )
2532 machine=ibms390x opsys=gnu-linux
2534 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2535 machine=ibmrs6000 opsys=aix4-2
2537 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2538 machine=ibmrs6000 opsys=aix4-2
2540 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2541 machine=ibmrs6000 opsys=aix4-2
2543 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2544 machine=ibmrs6000 opsys=aix4-2
2547 ## Macintosh PowerPC
2548 powerpc*-*-linux-gnu* )
2549 machine=macppc opsys=gnu-linux
2552 ## Silicon Graphics machines
2553 ## Iris 4D
2554 mips-sgi-irix6.5 )
2555 machine=iris4d opsys=irix6-5
2556 # Without defining _LANGUAGE_C, things get masked out in the headers
2557 # so that, for instance, grepping for `free' in stdlib.h fails and
2558 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2559 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2560 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2563 ## Suns
2564 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2565 machine=sparc opsys=gnu-linux
2568 *-sun-solaris* \
2569 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2570 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2571 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2572 case "${canonical}" in
2573 i[3456]86-*-* ) machine=intel386 ;;
2574 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2575 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2576 sparc* ) machine=sparc ;;
2577 * ) unported=yes ;;
2578 esac
2579 case "${canonical}" in
2580 *-sunos5.3* | *-solaris2.3* )
2581 opsys=sol2-3
2582 NON_GNU_CPP=/usr/ccs/lib/cpp
2584 *-sunos5.4* | *-solaris2.4* )
2585 opsys=sol2-4
2586 NON_GNU_CPP=/usr/ccs/lib/cpp
2587 RANLIB="ar -ts"
2589 *-sunos5.5* | *-solaris2.5* )
2590 opsys=sol2-5
2591 NON_GNU_CPP=/usr/ccs/lib/cpp
2592 RANLIB="ar -ts"
2594 *-sunos5.6* | *-solaris2.6* )
2595 opsys=sol2-6
2596 NON_GNU_CPP=/usr/ccs/lib/cpp
2597 RANLIB="ar -ts"
2599 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2600 opsys=sol2-6
2601 emacs_check_sunpro_c=yes
2602 NON_GNU_CPP=/usr/ccs/lib/cpp
2604 *-sunos5* | *-solaris* )
2605 opsys=sol2-10
2606 emacs_check_sunpro_c=yes
2607 NON_GNU_CPP=/usr/ccs/lib/cpp
2609 esac
2610 ## Watch out for a compiler that we know will not work.
2611 case "${canonical}" in
2612 *-solaris* | *-sunos5* )
2613 if [ "x$CC" = x/usr/ucb/cc ]; then
2614 ## /usr/ucb/cc doesn't work;
2615 ## we should find some other compiler that does work.
2616 unset CC
2619 *) ;;
2620 esac
2623 ## Vaxen.
2624 vax-dec-* )
2625 machine=vax
2626 case "${canonical}" in
2627 *-vms* ) opsys=vms ;;
2628 * ) unported=yes
2629 esac
2632 ## IA-64
2633 ia64*-*-linux* )
2634 machine=ia64 opsys=gnu-linux
2637 ## Intel 386 machines where we don't care about the manufacturer
2638 i[3456]86-*-* )
2639 machine=intel386
2640 case "${canonical}" in
2641 *-cygwin ) opsys=cygwin ;;
2642 *-darwin* ) opsys=darwin
2643 CPP="${CC-cc} -E -no-cpp-precomp"
2645 *-linux-gnu* ) opsys=gnu-linux ;;
2646 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2647 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2648 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2649 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2650 esac
2653 ## m68k Linux-based GNU system
2654 m68k-*-linux-gnu* )
2655 machine=m68k opsys=gnu-linux
2658 ## Mips Linux-based GNU system
2659 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2660 machine=mips opsys=gnu-linux
2663 ## AMD x86-64 Linux-based GNU system
2664 x86_64-*-linux-gnu* )
2665 machine=amdx86-64 opsys=gnu-linux
2668 ## Tensilica Xtensa Linux-based GNU system
2669 xtensa*-*-linux-gnu* )
2670 machine=xtensa opsys=gnu-linux
2673 ## SuperH Linux-based GNU system
2674 sh[34]*-*-linux-gnu* )
2675 machine=sh3 opsys=gnu-linux
2679 unported=yes
2681 esac
2683 ### If the code above didn't choose an operating system, just choose
2684 ### an operating system based on the configuration name. You really
2685 ### only want to use this when you have no idea what the right
2686 ### operating system is; if you know what operating systems a machine
2687 ### runs, it's cleaner to make it explicit in the case statement
2688 ### above.
2689 if test x"${opsys}" = x; then
2690 case "${canonical}" in
2691 *-gnu* ) opsys=gnu ;;
2692 *-sysv4.2uw* ) opsys=unixware ;;
2693 *-sysv5uw* ) opsys=unixware ;;
2694 *-sysv5OpenUNIX* ) opsys=unixware ;;
2695 *-sysv4.1* | *-sysvr4.1* )
2696 NON_GNU_CPP=/usr/lib/cpp
2697 opsys=usg5-4 ;;
2698 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2699 if [ x$NON_GNU_CPP = x ]; then
2700 if [ -f /usr/ccs/lib/cpp ]; then
2701 NON_GNU_CPP=/usr/ccs/lib/cpp
2702 else
2703 NON_GNU_CPP=/lib/cpp
2706 opsys=usg5-4-2 ;;
2707 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2709 unported=yes
2711 esac
2716 if test $unported = yes; then
2717 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2718 Check \`etc/MACHINES' for recognized configuration names." >&5
2719 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2721 { (exit 1); exit 1; }; }
2724 machfile="m/${machine}.h"
2725 opsysfile="s/${opsys}.h"
2728 #### Choose a compiler.
2729 test -n "$CC" && cc_specified=yes
2731 # Save the value of CFLAGS that the user specified.
2732 SPECIFIED_CFLAGS="$CFLAGS"
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 CC=$ac_cv_prog_CC
2768 if test -n "$CC"; then
2769 { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2771 else
2772 { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2778 if test -z "$ac_cv_prog_CC"; then
2779 ac_ct_CC=$CC
2780 # Extract the first word of "gcc", so it can be a program name with args.
2781 set dummy gcc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_CC="gcc"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2808 if test -n "$ac_ct_CC"; then
2809 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2810 echo "${ECHO_T}$ac_ct_CC" >&6; }
2811 else
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2816 if test "x$ac_ct_CC" = x; then
2817 CC=""
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2822 whose name does not start with the host triplet. If you think this
2823 configuration is useful to you, please write to autoconf@gnu.org." >&5
2824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2831 else
2832 CC="$ac_cv_prog_CC"
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2860 IFS=$as_save_IFS
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { echo "$as_me:$LINENO: result: $CC" >&5
2867 echo "${ECHO_T}$CC" >&6; }
2868 else
2869 { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2899 ac_cv_prog_CC="cc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { echo "$as_me:$LINENO: result: $CC" >&5
2924 echo "${ECHO_T}$CC" >&6; }
2925 else
2926 { echo "$as_me:$LINENO: result: no" >&5
2927 echo "${ECHO_T}no" >&6; }
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_CC+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { echo "$as_me:$LINENO: result: $CC" >&5
2966 echo "${ECHO_T}$CC" >&6; }
2967 else
2968 { echo "$as_me:$LINENO: result: no" >&5
2969 echo "${ECHO_T}no" >&6; }
2973 test -n "$CC" && break
2974 done
2976 if test -z "$CC"; then
2977 ac_ct_CC=$CC
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 else
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3017 test -n "$ac_ct_CC" && break
3018 done
3020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&5
3028 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 CC=$ac_ct_CC
3040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." >&2;}
3044 { (exit 1); exit 1; }; }
3046 # Provide some information about the compiler.
3047 echo "$as_me:$LINENO: checking for C compiler version" >&5
3048 ac_compiler=`set X $ac_compile; echo $2`
3049 { (ac_try="$ac_compiler --version >&5"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler --version >&5") 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3059 { (ac_try="$ac_compiler -v >&5"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compiler -v >&5") 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 { (ac_try="$ac_compiler -V >&5"
3070 case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compiler -V >&5") 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3088 main ()
3092 return 0;
3094 _ACEOF
3095 ac_clean_files_save=$ac_clean_files
3096 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3099 # of exeext.
3100 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3102 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3104 # List of possible output files, starting from the most likely.
3105 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3106 # only as a last resort. b.out is created by i960 compilers.
3107 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3109 # The IRIX 6 linker writes into existing files which may not be
3110 # executable, retaining their permissions. Remove them first so a
3111 # subsequent execution test works.
3112 ac_rmfiles=
3113 for ac_file in $ac_files
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3118 esac
3119 done
3120 rm -f $ac_rmfiles
3122 if { (ac_try="$ac_link_default"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_link_default") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3133 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3134 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3135 # so that the user can short-circuit this test for compilers unknown to
3136 # Autoconf.
3137 for ac_file in $ac_files ''
3139 test -f "$ac_file" || continue
3140 case $ac_file in
3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3143 [ab].out )
3144 # We found the default executable, but exeext='' is most
3145 # certainly right.
3146 break;;
3147 *.* )
3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 then :; else
3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3152 # We set ac_cv_exeext here because the later test for it is not
3153 # safe: cross compilers may not add the suffix if given an `-o'
3154 # argument, so we may need to know it at that point already.
3155 # Even if this section looks crufty: it has the advantage of
3156 # actually working.
3157 break;;
3159 break;;
3160 esac
3161 done
3162 test "$ac_cv_exeext" = no && ac_cv_exeext=
3164 else
3165 ac_file=''
3168 { echo "$as_me:$LINENO: result: $ac_file" >&5
3169 echo "${ECHO_T}$ac_file" >&6; }
3170 if test -z "$ac_file"; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C compiler cannot create executables
3177 See \`config.log' for more details." >&2;}
3178 { (exit 77); exit 77; }; }
3181 ac_exeext=$ac_cv_exeext
3183 # Check that the compiler produces executables we can run. If not, either
3184 # the compiler is broken, or we cross compile.
3185 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3188 # If not cross compiling, check that we can run a simple program.
3189 if test "$cross_compiling" != yes; then
3190 if { ac_try='./$ac_file'
3191 { (case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_try") 2>&5
3197 ac_status=$?
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 cross_compiling=no
3201 else
3202 if test "$cross_compiling" = maybe; then
3203 cross_compiling=yes
3204 else
3205 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3206 If you meant to cross compile, use \`--host'.
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3215 { echo "$as_me:$LINENO: result: yes" >&5
3216 echo "${ECHO_T}yes" >&6; }
3218 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3219 ac_clean_files=$ac_clean_files_save
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3223 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3224 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3225 echo "${ECHO_T}$cross_compiling" >&6; }
3227 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3228 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3229 if { (ac_try="$ac_link"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_link") 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; then
3239 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3241 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 # `rm'.
3243 for ac_file in conftest.exe conftest conftest.*; do
3244 test -f "$ac_file" || continue
3245 case $ac_file in
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3248 break;;
3249 * ) break;;
3250 esac
3251 done
3252 else
3253 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3260 rm -f conftest$ac_cv_exeext
3261 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3262 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3266 ac_exeext=$EXEEXT
3267 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3268 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3269 if test "${ac_cv_objext+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 else
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h. */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.o conftest.obj
3288 if { (ac_try="$ac_compile"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; then
3298 for ac_file in conftest.o conftest.obj conftest.*; do
3299 test -f "$ac_file" || continue;
3300 case $ac_file in
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303 break;;
3304 esac
3305 done
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3311 See \`config.log' for more details." >&5
3312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3313 See \`config.log' for more details." >&2;}
3314 { (exit 1); exit 1; }; }
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3319 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3320 echo "${ECHO_T}$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3336 main ()
3338 #ifndef __GNUC__
3339 choke me
3340 #endif
3343 return 0;
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
3354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } && {
3360 test -z "$ac_c_werror_flag" ||
3361 test ! -s conftest.err
3362 } && test -s conftest.$ac_objext; then
3363 ac_compiler_gnu=yes
3364 else
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_compiler_gnu=no
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3375 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3376 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3377 GCC=`test $ac_compiler_gnu = yes && echo yes`
3378 ac_test_CFLAGS=${CFLAGS+set}
3379 ac_save_CFLAGS=$CFLAGS
3380 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_cc_g+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 ac_save_c_werror_flag=$ac_c_werror_flag
3386 ac_c_werror_flag=yes
3387 ac_cv_prog_cc_g=no
3388 CFLAGS="-g"
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 rm -f conftest.$ac_objext
3405 if { (ac_try="$ac_compile"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_compile") 2>conftest.er1
3412 ac_status=$?
3413 grep -v '^ *+' conftest.er1 >conftest.err
3414 rm -f conftest.er1
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } && {
3418 test -z "$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3420 } && test -s conftest.$ac_objext; then
3421 ac_cv_prog_cc_g=yes
3422 else
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 CFLAGS=""
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3435 main ()
3439 return 0;
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3465 CFLAGS="-g"
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3474 main ()
3478 return 0;
3480 _ACEOF
3481 rm -f conftest.$ac_objext
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } && {
3495 test -z "$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 } && test -s conftest.$ac_objext; then
3498 ac_cv_prog_cc_g=yes
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3515 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3516 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3521 CFLAGS="-g -O2"
3522 else
3523 CFLAGS="-g"
3525 else
3526 if test "$GCC" = yes; then
3527 CFLAGS="-O2"
3528 else
3529 CFLAGS=
3532 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3533 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_c89+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553 char **p;
3554 int i;
3556 return p[i];
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3560 char *s;
3561 va_list v;
3562 va_start (v,p);
3563 s = g (p, va_arg (v,int));
3564 va_end (v);
3565 return s;
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3589 main ()
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3593 return 0;
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 CC="$ac_save_CC $ac_arg"
3600 rm -f conftest.$ac_objext
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest.$ac_objext; then
3617 ac_cv_prog_cc_c89=$ac_arg
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3635 { echo "$as_me:$LINENO: result: none needed" >&5
3636 echo "${ECHO_T}none needed" >&6; } ;;
3637 xno)
3638 { echo "$as_me:$LINENO: result: unsupported" >&5
3639 echo "${ECHO_T}unsupported" >&6; } ;;
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3643 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 # On Suns, sometimes $CPP names a directory.
3655 if test -n "$CPP" && test -d "$CPP"; then
3656 CPP=
3659 ## If not using gcc, and on Solaris, and no CPP specified, see if
3660 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3661 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3662 test x"$CPP" = x; then
3663 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3664 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3666 if test "${emacs_cv_sunpro_c+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3677 main ()
3679 #ifndef __SUNPRO_C
3680 fail;
3681 #endif
3684 return 0;
3686 _ACEOF
3687 rm -f conftest.$ac_objext conftest$ac_exeext
3688 if { (ac_try="$ac_link"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694 (eval "$ac_link") 2>conftest.er1
3695 ac_status=$?
3696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } && {
3701 test -z "$ac_c_werror_flag" ||
3702 test ! -s conftest.err
3703 } && test -s conftest$ac_exeext &&
3704 $as_test_x conftest$ac_exeext; then
3705 emacs_cv_sunpro_c=yes
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 emacs_cv_sunpro_c=no
3713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3714 conftest$ac_exeext conftest.$ac_ext
3717 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3718 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3720 if test x"$emacs_cv_sunpro_c" = xyes; then
3721 NON_GNU_CPP="$CC -E -Xs"
3725 #### Some systems specify a CPP to use unless we are using GCC.
3726 #### Now that we know whether we are using GCC, we can decide whether
3727 #### to use that one.
3728 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3729 then
3730 CPP="$NON_GNU_CPP"
3733 #### Some systems specify a CC to use unless we are using GCC.
3734 #### Now that we know whether we are using GCC, we can decide whether
3735 #### to use that one.
3736 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3737 test x$cc_specified != xyes
3738 then
3739 CC="$NON_GNU_CC"
3742 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3743 then
3744 CC="$CC $GCC_TEST_OPTIONS"
3747 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3748 then
3749 CC="$CC $NON_GCC_TEST_OPTIONS"
3753 cat >>confdefs.h <<\_ACEOF
3754 #define _GNU_SOURCE 1
3755 _ACEOF
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3765 # On Suns, sometimes $CPP names a directory.
3766 if test -n "$CPP" && test -d "$CPP"; then
3767 CPP=
3769 if test -z "$CPP"; then
3770 if test "${ac_cv_prog_CPP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 # Double quotes because CPP needs to be expanded
3774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3776 ac_preproc_ok=false
3777 for ac_c_preproc_warn_flag in '' yes
3779 # Use a header file that comes with gcc, so configuring glibc
3780 # with a fresh cross-compiler works.
3781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782 # <limits.h> exists even on freestanding compilers.
3783 # On the NeXT, cc -E runs the code through the compiler's parser,
3784 # not just through cpp. "Syntax error" is here to catch this case.
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h. */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #ifdef __STDC__
3792 # include <limits.h>
3793 #else
3794 # include <assert.h>
3795 #endif
3796 Syntax error
3797 _ACEOF
3798 if { (ac_try="$ac_cpp conftest.$ac_ext"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } >/dev/null && {
3811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3812 test ! -s conftest.err
3813 }; then
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 # Broken: fails on valid input.
3820 continue
3823 rm -f conftest.err conftest.$ac_ext
3825 # OK, works on sane cases. Now check whether nonexistent headers
3826 # can be detected and how.
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <ac_nonexistent.h>
3834 _ACEOF
3835 if { (ac_try="$ac_cpp conftest.$ac_ext"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3842 ac_status=$?
3843 grep -v '^ *+' conftest.er1 >conftest.err
3844 rm -f conftest.er1
3845 cat conftest.err >&5
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); } >/dev/null && {
3848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3849 test ! -s conftest.err
3850 }; then
3851 # Broken: success on invalid input.
3852 continue
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 # Passes both tests.
3858 ac_preproc_ok=:
3859 break
3862 rm -f conftest.err conftest.$ac_ext
3864 done
3865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3866 rm -f conftest.err conftest.$ac_ext
3867 if $ac_preproc_ok; then
3868 break
3871 done
3872 ac_cv_prog_CPP=$CPP
3875 CPP=$ac_cv_prog_CPP
3876 else
3877 ac_cv_prog_CPP=$CPP
3879 { echo "$as_me:$LINENO: result: $CPP" >&5
3880 echo "${ECHO_T}$CPP" >&6; }
3881 ac_preproc_ok=false
3882 for ac_c_preproc_warn_flag in '' yes
3884 # Use a header file that comes with gcc, so configuring glibc
3885 # with a fresh cross-compiler works.
3886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 # <limits.h> exists even on freestanding compilers.
3888 # On the NeXT, cc -E runs the code through the compiler's parser,
3889 # not just through cpp. "Syntax error" is here to catch this case.
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901 Syntax error
3902 _ACEOF
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } >/dev/null && {
3916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 }; then
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 # Broken: fails on valid input.
3925 continue
3928 rm -f conftest.err conftest.$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <ac_nonexistent.h>
3939 _ACEOF
3940 if { (ac_try="$ac_cpp conftest.$ac_ext"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } >/dev/null && {
3953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 }; then
3956 # Broken: success on invalid input.
3957 continue
3958 else
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.$ac_ext >&5
3962 # Passes both tests.
3963 ac_preproc_ok=:
3964 break
3967 rm -f conftest.err conftest.$ac_ext
3969 done
3970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3971 rm -f conftest.err conftest.$ac_ext
3972 if $ac_preproc_ok; then
3974 else
3975 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3976 See \`config.log' for more details." >&5
3977 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3978 See \`config.log' for more details." >&2;}
3979 { (exit 1); exit 1; }; }
3982 ac_ext=c
3983 ac_cpp='$CPP $CPPFLAGS'
3984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3990 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_GREP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 # Extract the first word of "grep ggrep" to use in msg output
3995 if test -z "$GREP"; then
3996 set dummy grep ggrep; ac_prog_name=$2
3997 if test "${ac_cv_path_GREP+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000 ac_path_GREP_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in grep ggrep; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4011 # Check for GNU ac_path_GREP and select it if it is found.
4012 # Check for GNU $ac_path_GREP
4013 case `"$ac_path_GREP" --version 2>&1` in
4014 *GNU*)
4015 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4017 ac_count=0
4018 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4019 while :
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 echo 'GREP' >> "conftest.nl"
4025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 ac_count=`expr $ac_count + 1`
4028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_GREP="$ac_path_GREP"
4031 ac_path_GREP_max=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4035 done
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4037 esac
4040 $ac_path_GREP_found && break 3
4041 done
4042 done
4044 done
4045 IFS=$as_save_IFS
4050 GREP="$ac_cv_path_GREP"
4051 if test -z "$GREP"; then
4052 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4053 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4054 { (exit 1); exit 1; }; }
4057 else
4058 ac_cv_path_GREP=$GREP
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4065 GREP="$ac_cv_path_GREP"
4068 { echo "$as_me:$LINENO: checking for egrep" >&5
4069 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_EGREP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4074 then ac_cv_path_EGREP="$GREP -E"
4075 else
4076 # Extract the first word of "egrep" to use in msg output
4077 if test -z "$EGREP"; then
4078 set dummy egrep; ac_prog_name=$2
4079 if test "${ac_cv_path_EGREP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 ac_path_EGREP_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in egrep; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4093 # Check for GNU ac_path_EGREP and select it if it is found.
4094 # Check for GNU $ac_path_EGREP
4095 case `"$ac_path_EGREP" --version 2>&1` in
4096 *GNU*)
4097 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099 ac_count=0
4100 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4101 while :
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 echo 'EGREP' >> "conftest.nl"
4107 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109 ac_count=`expr $ac_count + 1`
4110 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_EGREP="$ac_path_EGREP"
4113 ac_path_EGREP_max=$ac_count
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4122 $ac_path_EGREP_found && break 3
4123 done
4124 done
4126 done
4127 IFS=$as_save_IFS
4132 EGREP="$ac_cv_path_EGREP"
4133 if test -z "$EGREP"; then
4134 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4135 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4136 { (exit 1); exit 1; }; }
4139 else
4140 ac_cv_path_EGREP=$EGREP
4146 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4147 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4148 EGREP="$ac_cv_path_EGREP"
4152 { echo "$as_me:$LINENO: checking for AIX" >&5
4153 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #ifdef _AIX
4162 #endif
4164 _ACEOF
4165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4166 $EGREP "yes" >/dev/null 2>&1; then
4167 { echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6; }
4169 cat >>confdefs.h <<\_ACEOF
4170 #define _ALL_SOURCE 1
4171 _ACEOF
4173 else
4174 { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4177 rm -f conftest*
4180 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4182 if test "${ac_cv_header_stdc+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185 cat >conftest.$ac_ext <<_ACEOF
4186 /* confdefs.h. */
4187 _ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #include <stdlib.h>
4192 #include <stdarg.h>
4193 #include <string.h>
4194 #include <float.h>
4197 main ()
4201 return 0;
4203 _ACEOF
4204 rm -f conftest.$ac_objext
4205 if { (ac_try="$ac_compile"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 ac_cv_header_stdc=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_cv_header_stdc=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 if test $ac_cv_header_stdc = yes; then
4232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4233 cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 #include <string.h>
4241 _ACEOF
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "memchr" >/dev/null 2>&1; then
4245 else
4246 ac_cv_header_stdc=no
4248 rm -f conftest*
4252 if test $ac_cv_header_stdc = yes; then
4253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4260 #include <stdlib.h>
4262 _ACEOF
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "free" >/dev/null 2>&1; then
4266 else
4267 ac_cv_header_stdc=no
4269 rm -f conftest*
4273 if test $ac_cv_header_stdc = yes; then
4274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4275 if test "$cross_compiling" = yes; then
4277 else
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h. */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 #include <ctype.h>
4285 #include <stdlib.h>
4286 #if ((' ' & 0x0FF) == 0x020)
4287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4289 #else
4290 # define ISLOWER(c) \
4291 (('a' <= (c) && (c) <= 'i') \
4292 || ('j' <= (c) && (c) <= 'r') \
4293 || ('s' <= (c) && (c) <= 'z'))
4294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4295 #endif
4297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4299 main ()
4301 int i;
4302 for (i = 0; i < 256; i++)
4303 if (XOR (islower (i), ISLOWER (i))
4304 || toupper (i) != TOUPPER (i))
4305 return 2;
4306 return 0;
4308 _ACEOF
4309 rm -f conftest$ac_exeext
4310 if { (ac_try="$ac_link"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_link") 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4320 { (case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); }; }; then
4330 else
4331 echo "$as_me: program exited with status $ac_status" >&5
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ( exit $ac_status )
4336 ac_cv_header_stdc=no
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4344 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4345 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4346 if test $ac_cv_header_stdc = yes; then
4348 cat >>confdefs.h <<\_ACEOF
4349 #define STDC_HEADERS 1
4350 _ACEOF
4354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4364 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4365 inttypes.h stdint.h unistd.h
4367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h. */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 $ac_includes_default
4381 #include <$ac_header>
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && {
4397 test -z "$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 } && test -s conftest.$ac_objext; then
4400 eval "$as_ac_Header=yes"
4401 else
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4405 eval "$as_ac_Header=no"
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 ac_res=`eval echo '${'$as_ac_Header'}'`
4411 { echo "$as_me:$LINENO: result: $ac_res" >&5
4412 echo "${ECHO_T}$ac_res" >&6; }
4413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4414 cat >>confdefs.h <<_ACEOF
4415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4416 _ACEOF
4420 done
4423 if test "${ac_cv_header_minix_config_h+set}" = set; then
4424 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4425 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4426 if test "${ac_cv_header_minix_config_h+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4430 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4431 else
4432 # Is the header compilable?
4433 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4434 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4441 $ac_includes_default
4442 #include <minix/config.h>
4443 _ACEOF
4444 rm -f conftest.$ac_objext
4445 if { (ac_try="$ac_compile"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4461 ac_header_compiler=yes
4462 else
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 ac_header_compiler=no
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4471 echo "${ECHO_T}$ac_header_compiler" >&6; }
4473 # Is the header present?
4474 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4475 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4476 cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <minix/config.h>
4483 _ACEOF
4484 if { (ac_try="$ac_cpp conftest.$ac_ext"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } >/dev/null && {
4497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4498 test ! -s conftest.err
4499 }; then
4500 ac_header_preproc=yes
4501 else
4502 echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4505 ac_header_preproc=no
4508 rm -f conftest.err conftest.$ac_ext
4509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4510 echo "${ECHO_T}$ac_header_preproc" >&6; }
4512 # So? What about this header?
4513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4514 yes:no: )
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4516 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4517 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4518 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4519 ac_header_preproc=yes
4521 no:yes:* )
4522 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4523 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4524 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4525 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4526 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4527 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4529 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4530 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4531 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4532 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4533 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4536 esac
4537 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4538 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4539 if test "${ac_cv_header_minix_config_h+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 ac_cv_header_minix_config_h=$ac_header_preproc
4544 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4545 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4548 if test $ac_cv_header_minix_config_h = yes; then
4549 MINIX=yes
4550 else
4551 MINIX=
4555 if test "$MINIX" = yes; then
4557 cat >>confdefs.h <<\_ACEOF
4558 #define _POSIX_SOURCE 1
4559 _ACEOF
4562 cat >>confdefs.h <<\_ACEOF
4563 #define _POSIX_1_SOURCE 2
4564 _ACEOF
4567 cat >>confdefs.h <<\_ACEOF
4568 #define _MINIX 1
4569 _ACEOF
4583 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4584 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4585 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4595 # define __EXTENSIONS__ 1
4596 $ac_includes_default
4598 main ()
4602 return 0;
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_cv_safe_to_define___extensions__=yes
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_safe_to_define___extensions__=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4633 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 cat >>confdefs.h <<\_ACEOF
4636 #define __EXTENSIONS__ 1
4637 _ACEOF
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _POSIX_PTHREAD_SEMANTICS 1
4641 _ACEOF
4643 cat >>confdefs.h <<\_ACEOF
4644 #define _TANDEM_SOURCE 1
4645 _ACEOF
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS="$CFLAGS"
4653 CFLAGS="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4662 main ()
4666 return 0;
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4674 esac
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4677 ac_status=$?
4678 grep -v '^ *+' conftest.er1 >conftest.err
4679 rm -f conftest.er1
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4686 has_option=yes
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4691 has_option=no
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS="$SAVE_CFLAGS"
4701 unset has_option
4702 unset SAVE_CFLAGS
4704 #### Some other nice autoconf tests.
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4708 LN_S=$as_ln_s
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4712 else
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4717 ac_ext=c
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4726 CPP=
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4735 ac_preproc_ok=false
4736 for ac_c_preproc_warn_flag in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 #ifdef __STDC__
4751 # include <limits.h>
4752 #else
4753 # include <assert.h>
4754 #endif
4755 Syntax error
4756 _ACEOF
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4764 ac_status=$?
4765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 }; then
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4779 continue
4782 rm -f conftest.err conftest.$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4787 /* confdefs.h. */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4801 ac_status=$?
4802 grep -v '^ *+' conftest.er1 >conftest.err
4803 rm -f conftest.er1
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4809 }; then
4810 # Broken: success on invalid input.
4811 continue
4812 else
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4817 ac_preproc_ok=:
4818 break
4821 rm -f conftest.err conftest.$ac_ext
4823 done
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4827 break
4830 done
4831 ac_cv_prog_CPP=$CPP
4834 CPP=$ac_cv_prog_CPP
4835 else
4836 ac_cv_prog_CPP=$CPP
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4840 ac_preproc_ok=false
4841 for ac_c_preproc_warn_flag in '' yes
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860 Syntax error
4861 _ACEOF
4862 if { (ac_try="$ac_cpp conftest.$ac_ext"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 }; then
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 # Broken: fails on valid input.
4884 continue
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4898 _ACEOF
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4900 case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null && {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 }; then
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 # Passes both tests.
4922 ac_preproc_ok=:
4923 break
4926 rm -f conftest.err conftest.$ac_ext
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then
4933 else
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4953 # AIX /bin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements.
4972 case $as_dir/ in
4973 ./ | .// | /cC/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4976 /usr/ucb/* ) ;;
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4980 # by default.
4981 for ac_prog in ginstall scoinst install; do
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4992 else
4993 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4994 break 3
4997 done
4998 done
5000 esac
5001 done
5002 IFS=$as_save_IFS
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL=$ac_cv_path_install
5008 else
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL=$ac_install_sh
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5025 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5027 if test "x$RANLIB" = x; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5050 done
5051 done
5052 IFS=$as_save_IFS
5056 RANLIB=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5060 else
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5090 done
5091 done
5092 IFS=$as_save_IFS
5096 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5100 else
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5105 if test "x$ac_ct_RANLIB" = x; then
5106 RANLIB=":"
5107 else
5108 case $cross_compiling:$ac_tool_warned in
5109 yes:)
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118 RANLIB=$ac_ct_RANLIB
5120 else
5121 RANLIB="$ac_cv_prog_RANLIB"
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info; ac_word=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 case $INSTALL_INFO in
5133 [\\/]* | ?:[\\/]*)
5134 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5153 esac
5155 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5159 else
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 case $INSTALL_INFO in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in /usr/sbin
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5193 esac
5195 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5199 else
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info; ac_word=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5212 case $INSTALL_INFO in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in /sbin
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5230 IFS=$as_save_IFS
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5234 esac
5236 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5240 else
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy gzip; ac_word=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 case $GZIP_PROG in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5274 esac
5276 GZIP_PROG=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5280 else
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5288 ## Need makeinfo >= 4.6 (?) to build the manuals.
5289 # Extract the first word of "makeinfo", so it can be a program name with args.
5290 set dummy makeinfo; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 case $MAKEINFO in
5297 [\\/]* | ?:[\\/]*)
5298 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5316 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5318 esac
5320 MAKEINFO=$ac_cv_path_MAKEINFO
5321 if test -n "$MAKEINFO"; then
5322 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5323 echo "${ECHO_T}$MAKEINFO" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5330 if test "$MAKEINFO" != "no" && \
5331 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
5332 MAKEINFO=no
5335 ## Makeinfo is unusual. For a released Emacs, the manuals are
5336 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5337 ## therefore in the category of "special tools" not normally required, which
5338 ## configure does not have to check for (eg autoconf itself).
5339 ## In a CVS checkout on the other hand, the manuals are not included.
5340 ## So makeinfo is a requirement to build from CVS, and configure
5341 ## should test for it as it does for any other build requirement.
5342 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5343 ## with pre-built manuals, from a CVS checkout.
5344 if test "$MAKEINFO" = "no"; then
5345 if test "x${with_makeinfo}" = "xno"; then
5346 MAKEINFO=off
5347 elif ! test -e $srcdir/info/emacs; then
5348 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5349 source tree does not seem to have pre-built manuals in the \`info' directory.
5350 Either install a suitable version of makeinfo, or re-run configure
5351 with the \`--without-makeinfo' option to build without the manuals. " >&5
5352 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5353 source tree does not seem to have pre-built manuals in the \`info' directory.
5354 Either install a suitable version of makeinfo, or re-run configure
5355 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5356 { (exit 1); exit 1; }; }
5361 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5362 then
5363 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5366 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5367 then
5368 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5372 late_LDFLAGS=$LDFLAGS
5373 if test "$GCC" = yes; then
5374 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5375 else
5376 LDFLAGS="$LDFLAGS -znocombreloc"
5379 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5380 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5381 cat >conftest.$ac_ext <<_ACEOF
5382 main(){return 0;}
5383 _ACEOF
5384 rm -f conftest.$ac_objext conftest$ac_exeext
5385 if { (ac_try="$ac_link"
5386 case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389 esac
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_link") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest$ac_exeext &&
5401 $as_test_x conftest$ac_exeext; then
5402 { echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6; }
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 LDFLAGS=$late_LDFLAGS
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5414 conftest$ac_exeext conftest.$ac_ext
5416 #### Extract some information from the operating system and machine files.
5418 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5419 - which libraries the lib-src programs will want, and
5420 - whether the GNU malloc routines are usable..." >&5
5421 echo "$as_me: checking the machine- and system-dependent files to find out
5422 - which libraries the lib-src programs will want, and
5423 - whether the GNU malloc routines are usable..." >&6;}
5425 ### First figure out CFLAGS (which we use for running the compiler here)
5426 ### and REAL_CFLAGS (which we use for real compilation).
5427 ### The two are the same except on a few systems, where they are made
5428 ### different to work around various lossages. For example,
5429 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5430 ### as implying static linking.
5432 ### If the CFLAGS env var is specified, we use that value
5433 ### instead of the default.
5435 ### It's not important that this name contain the PID; you can't run
5436 ### two configures in the same directory and have anything work
5437 ### anyway.
5438 tempcname="conftest.c"
5440 echo '
5441 #include "'${srcdir}'/src/'${opsysfile}'"
5442 #include "'${srcdir}'/src/'${machfile}'"
5443 #ifndef LIBS_MACHINE
5444 #define LIBS_MACHINE
5445 #endif
5446 #ifndef LIBS_SYSTEM
5447 #define LIBS_SYSTEM
5448 #endif
5449 #ifndef C_SWITCH_SYSTEM
5450 #define C_SWITCH_SYSTEM
5451 #endif
5452 #ifndef C_SWITCH_MACHINE
5453 #define C_SWITCH_MACHINE
5454 #endif
5455 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5456 configure___ c_switch_system=C_SWITCH_SYSTEM
5457 configure___ c_switch_machine=C_SWITCH_MACHINE
5459 #ifndef LIB_X11_LIB
5460 #define LIB_X11_LIB -lX11
5461 #endif
5463 #ifndef LIBX11_SYSTEM
5464 #define LIBX11_SYSTEM
5465 #endif
5466 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5468 #ifdef UNEXEC
5469 configure___ unexec=UNEXEC
5470 #else
5471 configure___ unexec=unexec.o
5472 #endif
5474 #ifdef SYSTEM_MALLOC
5475 configure___ system_malloc=yes
5476 #else
5477 configure___ system_malloc=no
5478 #endif
5480 #ifdef USE_MMAP_FOR_BUFFERS
5481 configure___ use_mmap_for_buffers=yes
5482 #else
5483 configure___ use_mmap_for_buffers=no
5484 #endif
5486 #ifndef C_DEBUG_SWITCH
5487 #define C_DEBUG_SWITCH -g
5488 #endif
5490 #ifndef C_OPTIMIZE_SWITCH
5491 #ifdef __GNUC__
5492 #define C_OPTIMIZE_SWITCH -O2
5493 #else
5494 #define C_OPTIMIZE_SWITCH -O
5495 #endif
5496 #endif
5498 #ifndef C_WARNINGS_SWITCH
5499 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5500 #endif
5502 #ifndef LD_SWITCH_MACHINE
5503 #define LD_SWITCH_MACHINE
5504 #endif
5506 #ifndef LD_SWITCH_SYSTEM
5507 #define LD_SWITCH_SYSTEM
5508 #endif
5510 #ifndef LD_SWITCH_X_SITE_AUX
5511 #define LD_SWITCH_X_SITE_AUX
5512 #endif
5514 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5515 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5517 #ifdef THIS_IS_CONFIGURE
5519 /* Get the CFLAGS for tests in configure. */
5520 #ifdef __GNUC__
5521 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5522 #else
5523 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5524 #endif
5526 #else /* not THIS_IS_CONFIGURE */
5528 /* Get the CFLAGS for real compilation. */
5529 #ifdef __GNUC__
5530 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5531 #else
5532 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5533 #endif
5535 #endif /* not THIS_IS_CONFIGURE */
5536 ' > ${tempcname}
5538 # The value of CPP is a quoted variable reference, so we need to do this
5539 # to get its actual value...
5540 CPP=`eval "echo $CPP"`
5541 eval `${CPP} -Isrc ${tempcname} \
5542 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5543 if test "x$SPECIFIED_CFLAGS" = x; then
5544 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5545 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5546 else
5547 REAL_CFLAGS="$CFLAGS"
5549 rm ${tempcname}
5551 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5553 ### Make sure subsequent tests use flags consistent with the build flags.
5555 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5556 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5557 else
5558 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5563 # Check whether --enable-largefile was given.
5564 if test "${enable_largefile+set}" = set; then
5565 enableval=$enable_largefile;
5568 if test "$enable_largefile" != no; then
5570 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5571 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 ac_cv_sys_largefile_CC=no
5576 if test "$GCC" != yes; then
5577 ac_save_CC=$CC
5578 while :; do
5579 # IRIX 6.2 and later do not support large files by default,
5580 # so use the C compiler's -n32 option if that helps.
5581 cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h. */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5587 #include <sys/types.h>
5588 /* Check that off_t can represent 2**63 - 1 correctly.
5589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590 since some C++ compilers masquerading as C compilers
5591 incorrectly reject 9223372036854775807. */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594 && LARGE_OFF_T % 2147483647 == 1)
5595 ? 1 : -1];
5597 main ()
5601 return 0;
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (ac_try="$ac_compile"
5606 case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest.$ac_objext; then
5621 break
5622 else
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5629 rm -f core conftest.err conftest.$ac_objext
5630 CC="$CC -n32"
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 ac_cv_sys_largefile_CC=' -n32'; break
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f core conftest.err conftest.$ac_objext
5657 break
5658 done
5659 CC=$ac_save_CC
5660 rm -f conftest.$ac_ext
5663 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5664 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5665 if test "$ac_cv_sys_largefile_CC" != no; then
5666 CC=$CC$ac_cv_sys_largefile_CC
5669 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5670 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5671 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 else
5674 while :; do
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <sys/types.h>
5682 /* Check that off_t can represent 2**63 - 1 correctly.
5683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5684 since some C++ compilers masquerading as C compilers
5685 incorrectly reject 9223372036854775807. */
5686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5688 && LARGE_OFF_T % 2147483647 == 1)
5689 ? 1 : -1];
5691 main ()
5695 return 0;
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5700 case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_compile") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } && {
5712 test -z "$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 } && test -s conftest.$ac_objext; then
5715 ac_cv_sys_file_offset_bits=no; break
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h. */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5730 #define _FILE_OFFSET_BITS 64
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5739 ? 1 : -1];
5741 main ()
5745 return 0;
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_cv_sys_file_offset_bits=64; break
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 ac_cv_sys_file_offset_bits=unknown
5775 break
5776 done
5778 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5779 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5780 case $ac_cv_sys_file_offset_bits in #(
5781 no | unknown) ;;
5783 cat >>confdefs.h <<_ACEOF
5784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5785 _ACEOF
5787 esac
5788 rm -f conftest*
5789 if test $ac_cv_sys_file_offset_bits = unknown; then
5790 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5791 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5792 if test "${ac_cv_sys_large_files+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 while :; do
5796 cat >conftest.$ac_ext <<_ACEOF
5797 /* confdefs.h. */
5798 _ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <sys/types.h>
5803 /* Check that off_t can represent 2**63 - 1 correctly.
5804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5805 since some C++ compilers masquerading as C compilers
5806 incorrectly reject 9223372036854775807. */
5807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5809 && LARGE_OFF_T % 2147483647 == 1)
5810 ? 1 : -1];
5812 main ()
5816 return 0;
5818 _ACEOF
5819 rm -f conftest.$ac_objext
5820 if { (ac_try="$ac_compile"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest.$ac_objext; then
5836 ac_cv_sys_large_files=no; break
5837 else
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #define _LARGE_FILES 1
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5860 ? 1 : -1];
5862 main ()
5866 return 0;
5868 _ACEOF
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5871 case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874 esac
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.$ac_objext; then
5886 ac_cv_sys_large_files=1; break
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_cv_sys_large_files=unknown
5896 break
5897 done
5899 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5900 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5901 case $ac_cv_sys_large_files in #(
5902 no | unknown) ;;
5904 cat >>confdefs.h <<_ACEOF
5905 #define _LARGE_FILES $ac_cv_sys_large_files
5906 _ACEOF
5908 esac
5909 rm -f conftest*
5915 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5916 ### be located in either /usr/lib64 or /usr/lib.
5917 ### In some rare cases, /usr/lib64 exists but does not contain the
5918 ### relevant files (bug#1287). Hence test for crtn.o.
5919 case "${canonical}" in
5920 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5921 if test -e /usr/lib64/crtn.o; then
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_LIB64_DIR 1
5925 _ACEOF
5928 esac
5933 if test "${with_sound}" != "no"; then
5934 # Sound support for GNU/Linux and the free BSDs.
5938 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_res=`eval echo '${'$as_ac_Header'}'`
5948 { echo "$as_me:$LINENO: result: $ac_res" >&5
5949 echo "${ECHO_T}$ac_res" >&6; }
5950 else
5951 # Is the header compilable?
5952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5954 cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 #include <$ac_header>
5962 _ACEOF
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5965 case "(($ac_try" in
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5980 ac_header_compiler=yes
5981 else
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.$ac_ext >&5
5985 ac_header_compiler=no
5988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5990 echo "${ECHO_T}$ac_header_compiler" >&6; }
5992 # Is the header present?
5993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 #include <$ac_header>
6002 _ACEOF
6003 if { (ac_try="$ac_cpp conftest.$ac_ext"
6004 case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null && {
6016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 }; then
6019 ac_header_preproc=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_header_preproc=no
6027 rm -f conftest.err conftest.$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6029 echo "${ECHO_T}$ac_header_preproc" >&6; }
6031 # So? What about this header?
6032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6033 yes:no: )
6034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6038 ac_header_preproc=yes
6040 no:yes:* )
6041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6055 esac
6056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061 eval "$as_ac_Header=\$ac_header_preproc"
6063 ac_res=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071 _ACEOF
6075 done
6077 # Emulation library used on NetBSD.
6078 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6079 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6080 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 ac_check_lib_save_LIBS=$LIBS
6084 LIBS="-lossaudio $LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095 #ifdef __cplusplus
6096 extern "C"
6097 #endif
6098 char _oss_ioctl ();
6100 main ()
6102 return _oss_ioctl ();
6104 return 0;
6106 _ACEOF
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6109 case "(($ac_try" in
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_link") 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest$ac_exeext &&
6124 $as_test_x conftest$ac_exeext; then
6125 ac_cv_lib_ossaudio__oss_ioctl=yes
6126 else
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_cv_lib_ossaudio__oss_ioctl=no
6133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6134 conftest$ac_exeext conftest.$ac_ext
6135 LIBS=$ac_check_lib_save_LIBS
6137 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6138 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6139 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6140 LIBSOUND=-lossaudio
6141 else
6142 LIBSOUND=
6147 ALSA_REQUIRED=1.0.0
6148 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6150 succeeded=no
6152 # Extract the first word of "pkg-config", so it can be a program name with args.
6153 set dummy pkg-config; ac_word=$2
6154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6156 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 case $PKG_CONFIG in
6160 [\\/]* | ?:[\\/]*)
6161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6179 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6181 esac
6183 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6184 if test -n "$PKG_CONFIG"; then
6185 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6186 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6187 else
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6194 if test "$PKG_CONFIG" = "no" ; then
6195 HAVE_ALSA=no
6196 else
6197 PKG_CONFIG_MIN_VERSION=0.9.0
6198 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6199 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6200 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6202 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6203 { echo "$as_me:$LINENO: result: yes" >&5
6204 echo "${ECHO_T}yes" >&6; }
6205 succeeded=yes
6207 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6208 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6209 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6210 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6211 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6213 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6214 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6215 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6216 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6217 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6218 else
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 ALSA_CFLAGS=""
6222 ALSA_LIBS=""
6223 ## If we have a custom action on failure, don't print errors, but
6224 ## do set a variable so people can do so.
6225 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6231 else
6232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6237 if test $succeeded = yes; then
6238 HAVE_ALSA=yes
6239 else
6240 HAVE_ALSA=no
6243 if test $HAVE_ALSA = yes; then
6244 SAVE_CFLAGS="$CFLAGS"
6245 SAVE_LDFLAGS="$LDFLAGS"
6246 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6247 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #include <asoundlib.h>
6256 main ()
6258 snd_lib_error_set_handler (0);
6260 return 0;
6262 _ACEOF
6263 rm -f conftest.$ac_objext
6264 if { (ac_try="$ac_compile"
6265 case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } && {
6277 test -z "$ac_c_werror_flag" ||
6278 test ! -s conftest.err
6279 } && test -s conftest.$ac_objext; then
6280 emacs_alsa_normal=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6285 emacs_alsa_normal=no
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 if test "$emacs_alsa_normal" != yes; then
6290 cat >conftest.$ac_ext <<_ACEOF
6291 /* confdefs.h. */
6292 _ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <alsa/asoundlib.h>
6298 main ()
6300 snd_lib_error_set_handler (0);
6302 return 0;
6304 _ACEOF
6305 rm -f conftest.$ac_objext
6306 if { (ac_try="$ac_compile"
6307 case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310 esac
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest.$ac_objext; then
6322 emacs_alsa_subdir=yes
6323 else
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 emacs_alsa_subdir=no
6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 if test "$emacs_alsa_subdir" != yes; then
6332 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6333 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6334 { (exit 1); exit 1; }; }
6336 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6339 CFLAGS="$SAVE_CFLAGS"
6340 LDFLAGS="$SAVE_LDFLAGS"
6341 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6342 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_ALSA 1
6346 _ACEOF
6377 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6378 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6379 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6380 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6381 sys/utsname.h pwd.h
6383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 ac_res=`eval echo '${'$as_ac_Header'}'`
6391 { echo "$as_me:$LINENO: result: $ac_res" >&5
6392 echo "${ECHO_T}$ac_res" >&6; }
6393 else
6394 # Is the header compilable?
6395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6404 #include <$ac_header>
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6408 case "(($ac_try" in
6409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6411 esac
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.$ac_objext; then
6423 ac_header_compiler=yes
6424 else
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 ac_header_compiler=no
6431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6433 echo "${ECHO_T}$ac_header_compiler" >&6; }
6435 # Is the header present?
6436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <$ac_header>
6445 _ACEOF
6446 if { (ac_try="$ac_cpp conftest.$ac_ext"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } >/dev/null && {
6459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 }; then
6462 ac_header_preproc=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_header_preproc=no
6470 rm -f conftest.err conftest.$ac_ext
6471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6472 echo "${ECHO_T}$ac_header_preproc" >&6; }
6474 # So? What about this header?
6475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6476 yes:no: )
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6481 ac_header_preproc=yes
6483 no:yes:* )
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6498 esac
6499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 eval "$as_ac_Header=\$ac_header_preproc"
6506 ac_res=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6512 cat >>confdefs.h <<_ACEOF
6513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6514 _ACEOF
6518 done
6521 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6522 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 #include <sys/personality.h>
6531 main ()
6533 personality (PER_LINUX32)
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6540 case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6555 emacs_cv_personality_linux32=yes
6556 else
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6560 emacs_cv_personality_linux32=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6565 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6567 if test $emacs_cv_personality_linux32 = yes; then
6569 cat >>confdefs.h <<\_ACEOF
6570 #define HAVE_PERSONALITY_LINUX32 1
6571 _ACEOF
6576 for ac_header in term.h
6578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } >/dev/null && {
6605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 }; then
6608 eval "$as_ac_Header=yes"
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 eval "$as_ac_Header=no"
6616 rm -f conftest.err conftest.$ac_ext
6618 ac_res=`eval echo '${'$as_ac_Header'}'`
6619 { echo "$as_me:$LINENO: result: $ac_res" >&5
6620 echo "${ECHO_T}$ac_res" >&6; }
6621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6622 cat >>confdefs.h <<_ACEOF
6623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624 _ACEOF
6628 done
6630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6632 if test "${ac_cv_header_stdc+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <stdlib.h>
6642 #include <stdarg.h>
6643 #include <string.h>
6644 #include <float.h>
6647 main ()
6651 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_header_stdc=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_header_stdc=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 if test $ac_cv_header_stdc = yes; then
6682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 #include <string.h>
6691 _ACEOF
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "memchr" >/dev/null 2>&1; then
6695 else
6696 ac_cv_header_stdc=no
6698 rm -f conftest*
6702 if test $ac_cv_header_stdc = yes; then
6703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <stdlib.h>
6712 _ACEOF
6713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6714 $EGREP "free" >/dev/null 2>&1; then
6716 else
6717 ac_cv_header_stdc=no
6719 rm -f conftest*
6723 if test $ac_cv_header_stdc = yes; then
6724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6725 if test "$cross_compiling" = yes; then
6727 else
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h. */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h. */
6734 #include <ctype.h>
6735 #include <stdlib.h>
6736 #if ((' ' & 0x0FF) == 0x020)
6737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6739 #else
6740 # define ISLOWER(c) \
6741 (('a' <= (c) && (c) <= 'i') \
6742 || ('j' <= (c) && (c) <= 'r') \
6743 || ('s' <= (c) && (c) <= 'z'))
6744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6745 #endif
6747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6749 main ()
6751 int i;
6752 for (i = 0; i < 256; i++)
6753 if (XOR (islower (i), ISLOWER (i))
6754 || toupper (i) != TOUPPER (i))
6755 return 2;
6756 return 0;
6758 _ACEOF
6759 rm -f conftest$ac_exeext
6760 if { (ac_try="$ac_link"
6761 case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_link") 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6770 { (case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775 (eval "$ac_try") 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6780 else
6781 echo "$as_me: program exited with status $ac_status" >&5
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ( exit $ac_status )
6786 ac_cv_header_stdc=no
6788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6796 if test $ac_cv_header_stdc = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define STDC_HEADERS 1
6800 _ACEOF
6804 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6805 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6806 if test "${ac_cv_header_time+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 #include <sys/types.h>
6816 #include <sys/time.h>
6817 #include <time.h>
6820 main ()
6822 if ((struct tm *) 0)
6823 return 0;
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6845 ac_cv_header_time=yes
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ac_cv_header_time=no
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6856 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6857 if test $ac_cv_header_time = yes; then
6859 cat >>confdefs.h <<\_ACEOF
6860 #define TIME_WITH_SYS_TIME 1
6861 _ACEOF
6865 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6866 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6867 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 $ac_includes_default
6878 main ()
6880 #ifndef sys_siglist
6881 (void) sys_siglist;
6882 #endif
6885 return 0;
6887 _ACEOF
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6896 ac_status=$?
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_cv_have_decl_sys_siglist=yes
6906 else
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6910 ac_cv_have_decl_sys_siglist=no
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6916 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6917 if test $ac_cv_have_decl_sys_siglist = yes; then
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_DECL_SYS_SIGLIST 1
6921 _ACEOF
6924 else
6925 cat >>confdefs.h <<_ACEOF
6926 #define HAVE_DECL_SYS_SIGLIST 0
6927 _ACEOF
6933 if test $ac_cv_have_decl_sys_siglist != yes; then
6934 # For Tru64, at least:
6935 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6936 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6937 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 $ac_includes_default
6948 main ()
6950 #ifndef __sys_siglist
6951 (void) __sys_siglist;
6952 #endif
6955 return 0;
6957 _ACEOF
6958 rm -f conftest.$ac_objext
6959 if { (ac_try="$ac_compile"
6960 case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963 esac
6964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965 (eval "$ac_compile") 2>conftest.er1
6966 ac_status=$?
6967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && {
6972 test -z "$ac_c_werror_flag" ||
6973 test ! -s conftest.err
6974 } && test -s conftest.$ac_objext; then
6975 ac_cv_have_decl___sys_siglist=yes
6976 else
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6980 ac_cv_have_decl___sys_siglist=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6986 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6987 if test $ac_cv_have_decl___sys_siglist = yes; then
6989 cat >>confdefs.h <<_ACEOF
6990 #define HAVE_DECL___SYS_SIGLIST 1
6991 _ACEOF
6994 else
6995 cat >>confdefs.h <<_ACEOF
6996 #define HAVE_DECL___SYS_SIGLIST 0
6997 _ACEOF
7003 if test $ac_cv_have_decl___sys_siglist = yes; then
7005 cat >>confdefs.h <<\_ACEOF
7006 #define sys_siglist __sys_siglist
7007 _ACEOF
7011 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7012 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7013 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 #include <sys/types.h>
7023 #include <sys/wait.h>
7024 #ifndef WEXITSTATUS
7025 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7026 #endif
7027 #ifndef WIFEXITED
7028 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7029 #endif
7032 main ()
7034 int s;
7035 wait (&s);
7036 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7038 return 0;
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_header_sys_wait_h=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_cv_header_sys_wait_h=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7069 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7070 if test $ac_cv_header_sys_wait_h = yes; then
7072 cat >>confdefs.h <<\_ACEOF
7073 #define HAVE_SYS_WAIT_H 1
7074 _ACEOF
7079 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7080 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7081 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084 cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h. */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 #ifdef TIME_WITH_SYS_TIME
7091 #include <sys/time.h>
7092 #include <time.h>
7093 #else
7094 #ifdef HAVE_SYS_TIME_H
7095 #include <sys/time.h>
7096 #else
7097 #include <time.h>
7098 #endif
7099 #endif
7100 #ifdef HAVE_UTIME_H
7101 #include <utime.h>
7102 #endif
7104 main ()
7106 static struct utimbuf x; x.actime = x.modtime;
7108 return 0;
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 emacs_cv_struct_utimbuf=yes
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 emacs_cv_struct_utimbuf=no
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7139 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7140 if test $emacs_cv_struct_utimbuf = yes; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_STRUCT_UTIMBUF 1
7144 _ACEOF
7148 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7149 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7150 if test "${ac_cv_type_signal+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <sys/types.h>
7160 #include <signal.h>
7163 main ()
7165 return *(signal (0, 0)) (0) == 1;
7167 return 0;
7169 _ACEOF
7170 rm -f conftest.$ac_objext
7171 if { (ac_try="$ac_compile"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_compile") 2>conftest.er1
7178 ac_status=$?
7179 grep -v '^ *+' conftest.er1 >conftest.err
7180 rm -f conftest.er1
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_c_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest.$ac_objext; then
7187 ac_cv_type_signal=int
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7192 ac_cv_type_signal=void
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7198 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7200 cat >>confdefs.h <<_ACEOF
7201 #define RETSIGTYPE $ac_cv_type_signal
7202 _ACEOF
7206 { echo "$as_me:$LINENO: checking for speed_t" >&5
7207 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7208 if test "${emacs_cv_speed_t+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <termios.h>
7219 main ()
7221 speed_t x = 1;
7223 return 0;
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (ac_try="$ac_compile"
7228 case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231 esac
7232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 emacs_cv_speed_t=yes
7244 else
7245 echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 emacs_cv_speed_t=no
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7254 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7255 if test $emacs_cv_speed_t = yes; then
7257 cat >>confdefs.h <<\_ACEOF
7258 #define HAVE_SPEED_T 1
7259 _ACEOF
7263 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7264 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7265 if test "${emacs_cv_struct_timeval+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #ifdef TIME_WITH_SYS_TIME
7275 #include <sys/time.h>
7276 #include <time.h>
7277 #else
7278 #ifdef HAVE_SYS_TIME_H
7279 #include <sys/time.h>
7280 #else
7281 #include <time.h>
7282 #endif
7283 #endif
7285 main ()
7287 static struct timeval x; x.tv_sec = x.tv_usec;
7289 return 0;
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7294 case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297 esac
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_c_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 emacs_cv_struct_timeval=yes
7310 else
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7314 emacs_cv_struct_timeval=no
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7320 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7321 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7322 if test $emacs_cv_struct_timeval = yes; then
7324 cat >>confdefs.h <<\_ACEOF
7325 #define HAVE_TIMEVAL 1
7326 _ACEOF
7330 { echo "$as_me:$LINENO: checking for struct exception" >&5
7331 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7332 if test "${emacs_cv_struct_exception+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h. */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7341 #include <math.h>
7343 main ()
7345 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 emacs_cv_struct_exception=yes
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 emacs_cv_struct_exception=no
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7378 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7379 HAVE_EXCEPTION=$emacs_cv_struct_exception
7380 if test $emacs_cv_struct_exception != yes; then
7382 cat >>confdefs.h <<\_ACEOF
7383 #define NO_MATHERR 1
7384 _ACEOF
7389 for ac_header in sys/socket.h
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7398 ac_res=`eval echo '${'$as_ac_Header'}'`
7399 { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7401 else
7402 # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 #include <$ac_header>
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (ac_try="$ac_compile"
7416 case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_compile") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest.$ac_objext; then
7431 ac_header_compiler=yes
7432 else
7433 echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_header_compiler=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h. */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #include <$ac_header>
7453 _ACEOF
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 case "(($ac_try" in
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev/null && {
7467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7469 }; then
7470 ac_header_preproc=yes
7471 else
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_header_preproc=no
7478 rm -f conftest.err conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7482 # So? What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7484 yes:no: )
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489 ac_header_preproc=yes
7491 no:yes:* )
7492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7506 esac
7507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 else
7512 eval "$as_ac_Header=\$ac_header_preproc"
7514 ac_res=`eval echo '${'$as_ac_Header'}'`
7515 { echo "$as_me:$LINENO: result: $ac_res" >&5
7516 echo "${ECHO_T}$ac_res" >&6; }
7519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7522 _ACEOF
7526 done
7529 for ac_header in net/if.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 $ac_includes_default
7544 #if HAVE_SYS_SOCKET_H
7545 #include <sys/socket.h>
7546 #endif
7548 #include <$ac_header>
7549 _ACEOF
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7552 case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555 esac
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 eval "$as_ac_Header=yes"
7568 else
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7572 eval "$as_ac_Header=no"
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 ac_res=`eval echo '${'$as_ac_Header'}'`
7578 { echo "$as_me:$LINENO: result: $ac_res" >&5
7579 echo "${ECHO_T}$ac_res" >&6; }
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7587 done
7590 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7591 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7592 if test "${ac_cv_struct_tm+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 else
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <time.h>
7605 main ()
7607 struct tm tm;
7608 int *p = &tm.tm_sec;
7609 return !p;
7611 return 0;
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_cv_struct_tm=time.h
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_struct_tm=sys/time.h
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7642 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7643 if test $ac_cv_struct_tm = sys/time.h; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define TM_IN_SYS_TIME 1
7647 _ACEOF
7651 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <sys/types.h>
7663 #include <$ac_cv_struct_tm>
7667 main ()
7669 static struct tm ac_aggr;
7670 if (ac_aggr.tm_zone)
7671 return 0;
7673 return 0;
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (ac_try="$ac_compile"
7678 case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_compile") 2>conftest.er1
7684 ac_status=$?
7685 grep -v '^ *+' conftest.er1 >conftest.err
7686 rm -f conftest.er1
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest.$ac_objext; then
7693 ac_cv_member_struct_tm_tm_zone=yes
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h. */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 #include <sys/types.h>
7705 #include <$ac_cv_struct_tm>
7709 main ()
7711 static struct tm ac_aggr;
7712 if (sizeof ac_aggr.tm_zone)
7713 return 0;
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext
7719 if { (ac_try="$ac_compile"
7720 case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
7735 ac_cv_member_struct_tm_tm_zone=yes
7736 else
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_cv_member_struct_tm_tm_zone=no
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7749 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7750 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_STRUCT_TM_TM_ZONE 1
7754 _ACEOF
7759 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_TM_ZONE 1
7763 _ACEOF
7765 else
7766 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7767 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7768 if test "${ac_cv_have_decl_tzname+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <time.h>
7780 main ()
7782 #ifndef tzname
7783 (void) tzname;
7784 #endif
7787 return 0;
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_have_decl_tzname=yes
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_have_decl_tzname=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7818 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7819 if test $ac_cv_have_decl_tzname = yes; then
7821 cat >>confdefs.h <<_ACEOF
7822 #define HAVE_DECL_TZNAME 1
7823 _ACEOF
7826 else
7827 cat >>confdefs.h <<_ACEOF
7828 #define HAVE_DECL_TZNAME 0
7829 _ACEOF
7835 { echo "$as_me:$LINENO: checking for tzname" >&5
7836 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7837 if test "${ac_cv_var_tzname+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 else
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h. */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h. */
7846 #include <time.h>
7847 #if !HAVE_DECL_TZNAME
7848 extern char *tzname[];
7849 #endif
7852 main ()
7854 return tzname[0][0];
7856 return 0;
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7861 case "(($ac_try" in
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7864 esac
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest$ac_exeext &&
7876 $as_test_x conftest$ac_exeext; then
7877 ac_cv_var_tzname=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 ac_cv_var_tzname=no
7885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7886 conftest$ac_exeext conftest.$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7889 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7890 if test $ac_cv_var_tzname = yes; then
7892 cat >>confdefs.h <<\_ACEOF
7893 #define HAVE_TZNAME 1
7894 _ACEOF
7899 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7900 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #include <time.h>
7913 main ()
7915 static struct tm ac_aggr;
7916 if (ac_aggr.tm_gmtoff)
7917 return 0;
7919 return 0;
7921 _ACEOF
7922 rm -f conftest.$ac_objext
7923 if { (ac_try="$ac_compile"
7924 case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927 esac
7928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 ac_cv_member_struct_tm_tm_gmtoff=yes
7940 else
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h. */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 #include <time.h>
7953 main ()
7955 static struct tm ac_aggr;
7956 if (sizeof ac_aggr.tm_gmtoff)
7957 return 0;
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_cv_member_struct_tm_tm_gmtoff=yes
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7984 ac_cv_member_struct_tm_tm_gmtoff=no
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7993 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7994 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7996 cat >>confdefs.h <<\_ACEOF
7997 #define HAVE_TM_GMTOFF 1
7998 _ACEOF
8002 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8003 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8004 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8016 #endif
8017 #if HAVE_NET_IF_H
8018 #include <net/if.h>
8019 #endif
8022 main ()
8024 static struct ifreq ac_aggr;
8025 if (ac_aggr.ifr_flags)
8026 return 0;
8028 return 0;
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_ifreq_ifr_flags=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 #if HAVE_SYS_SOCKET_H
8061 #include <sys/socket.h>
8062 #endif
8063 #if HAVE_NET_IF_H
8064 #include <net/if.h>
8065 #endif
8068 main ()
8070 static struct ifreq ac_aggr;
8071 if (sizeof ac_aggr.ifr_flags)
8072 return 0;
8074 return 0;
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_ifreq_ifr_flags=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8099 ac_cv_member_struct_ifreq_ifr_flags=no
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8108 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8109 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8111 cat >>confdefs.h <<_ACEOF
8112 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8113 _ACEOF
8117 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8118 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8119 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #if HAVE_SYS_SOCKET_H
8130 #include <sys/socket.h>
8131 #endif
8132 #if HAVE_NET_IF_H
8133 #include <net/if.h>
8134 #endif
8137 main ()
8139 static struct ifreq ac_aggr;
8140 if (ac_aggr.ifr_hwaddr)
8141 return 0;
8143 return 0;
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8177 #endif
8178 #if HAVE_NET_IF_H
8179 #include <net/if.h>
8180 #endif
8183 main ()
8185 static struct ifreq ac_aggr;
8186 if (sizeof ac_aggr.ifr_hwaddr)
8187 return 0;
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8223 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8224 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8226 cat >>confdefs.h <<_ACEOF
8227 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8228 _ACEOF
8232 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8233 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8234 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8246 #endif
8247 #if HAVE_NET_IF_H
8248 #include <net/if.h>
8249 #endif
8252 main ()
8254 static struct ifreq ac_aggr;
8255 if (ac_aggr.ifr_netmask)
8256 return 0;
8258 return 0;
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_netmask=yes
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #if HAVE_SYS_SOCKET_H
8291 #include <sys/socket.h>
8292 #endif
8293 #if HAVE_NET_IF_H
8294 #include <net/if.h>
8295 #endif
8298 main ()
8300 static struct ifreq ac_aggr;
8301 if (sizeof ac_aggr.ifr_netmask)
8302 return 0;
8304 return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8309 case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_netmask=yes
8325 else
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_cv_member_struct_ifreq_ifr_netmask=no
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8338 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8339 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8343 _ACEOF
8347 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8348 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8349 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8361 #endif
8362 #if HAVE_NET_IF_H
8363 #include <net/if.h>
8364 #endif
8367 main ()
8369 static struct ifreq ac_aggr;
8370 if (ac_aggr.ifr_broadaddr)
8371 return 0;
8373 return 0;
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 #if HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8407 #endif
8408 #if HAVE_NET_IF_H
8409 #include <net/if.h>
8410 #endif
8413 main ()
8415 static struct ifreq ac_aggr;
8416 if (sizeof ac_aggr.ifr_broadaddr)
8417 return 0;
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8424 case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8454 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8458 _ACEOF
8462 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8463 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8464 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467 cat >conftest.$ac_ext <<_ACEOF
8468 /* confdefs.h. */
8469 _ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #if HAVE_SYS_SOCKET_H
8475 #include <sys/socket.h>
8476 #endif
8477 #if HAVE_NET_IF_H
8478 #include <net/if.h>
8479 #endif
8482 main ()
8484 static struct ifreq ac_aggr;
8485 if (ac_aggr.ifr_addr)
8486 return 0;
8488 return 0;
8490 _ACEOF
8491 rm -f conftest.$ac_objext
8492 if { (ac_try="$ac_compile"
8493 case "(($ac_try" in
8494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495 *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498 (eval "$ac_compile") 2>conftest.er1
8499 ac_status=$?
8500 grep -v '^ *+' conftest.er1 >conftest.err
8501 rm -f conftest.er1
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && {
8505 test -z "$ac_c_werror_flag" ||
8506 test ! -s conftest.err
8507 } && test -s conftest.$ac_objext; then
8508 ac_cv_member_struct_ifreq_ifr_addr=yes
8509 else
8510 echo "$as_me: failed program was:" >&5
8511 sed 's/^/| /' conftest.$ac_ext >&5
8513 cat >conftest.$ac_ext <<_ACEOF
8514 /* confdefs.h. */
8515 _ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8519 $ac_includes_default
8520 #if HAVE_SYS_SOCKET_H
8521 #include <sys/socket.h>
8522 #endif
8523 #if HAVE_NET_IF_H
8524 #include <net/if.h>
8525 #endif
8528 main ()
8530 static struct ifreq ac_aggr;
8531 if (sizeof ac_aggr.ifr_addr)
8532 return 0;
8534 return 0;
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (ac_try="$ac_compile"
8539 case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } && {
8551 test -z "$ac_c_werror_flag" ||
8552 test ! -s conftest.err
8553 } && test -s conftest.$ac_objext; then
8554 ac_cv_member_struct_ifreq_ifr_addr=yes
8555 else
8556 echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8559 ac_cv_member_struct_ifreq_ifr_addr=no
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8568 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8569 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8571 cat >>confdefs.h <<_ACEOF
8572 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8573 _ACEOF
8580 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8581 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8582 if test "$ac_cv_prog_cc_c89" != no; then
8583 { echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6; }
8586 cat >>confdefs.h <<\_ACEOF
8587 #define PROTOTYPES 1
8588 _ACEOF
8591 cat >>confdefs.h <<\_ACEOF
8592 #define __PROTOTYPES 1
8593 _ACEOF
8595 else
8596 { echo "$as_me:$LINENO: result: no" >&5
8597 echo "${ECHO_T}no" >&6; }
8600 { echo "$as_me:$LINENO: checking for working volatile" >&5
8601 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8602 if test "${ac_cv_c_volatile+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 cat >conftest.$ac_ext <<_ACEOF
8606 /* confdefs.h. */
8607 _ACEOF
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8613 main ()
8616 volatile int x;
8617 int * volatile y = (int *) 0;
8618 return !x && !y;
8620 return 0;
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_compile") 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.$ac_objext; then
8640 ac_cv_c_volatile=yes
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8645 ac_cv_c_volatile=no
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8651 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8652 if test $ac_cv_c_volatile = no; then
8654 cat >>confdefs.h <<\_ACEOF
8655 #define volatile
8656 _ACEOF
8660 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8661 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8662 if test "${ac_cv_c_const+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h. */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8673 main ()
8675 /* FIXME: Include the comments suggested by Paul. */
8676 #ifndef __cplusplus
8677 /* Ultrix mips cc rejects this. */
8678 typedef int charset[2];
8679 const charset cs;
8680 /* SunOS 4.1.1 cc rejects this. */
8681 char const *const *pcpcc;
8682 char **ppc;
8683 /* NEC SVR4.0.2 mips cc rejects this. */
8684 struct point {int x, y;};
8685 static struct point const zero = {0,0};
8686 /* AIX XL C 1.02.0.0 rejects this.
8687 It does not let you subtract one const X* pointer from another in
8688 an arm of an if-expression whose if-part is not a constant
8689 expression */
8690 const char *g = "string";
8691 pcpcc = &g + (g ? g-g : 0);
8692 /* HPUX 7.0 cc rejects these. */
8693 ++pcpcc;
8694 ppc = (char**) pcpcc;
8695 pcpcc = (char const *const *) ppc;
8696 { /* SCO 3.2v4 cc rejects this. */
8697 char *t;
8698 char const *s = 0 ? (char *) 0 : (char const *) 0;
8700 *t++ = 0;
8701 if (s) return 0;
8703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8704 int x[] = {25, 17};
8705 const int *foo = &x[0];
8706 ++foo;
8708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8709 typedef const int *iptr;
8710 iptr p = 0;
8711 ++p;
8713 { /* AIX XL C 1.02.0.0 rejects this saying
8714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8715 struct s { int j; const int *ap[3]; };
8716 struct s *b; b->j = 5;
8718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8719 const int foo = 10;
8720 if (!foo) return 0;
8722 return !cs[0] && !zero.x;
8723 #endif
8726 return 0;
8728 _ACEOF
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8731 case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734 esac
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8737 ac_status=$?
8738 grep -v '^ *+' conftest.er1 >conftest.err
8739 rm -f conftest.er1
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_cv_c_const=yes
8747 else
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8751 ac_cv_c_const=no
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8757 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8758 if test $ac_cv_c_const = no; then
8760 cat >>confdefs.h <<\_ACEOF
8761 #define const
8762 _ACEOF
8766 { echo "$as_me:$LINENO: checking for void * support" >&5
8767 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8768 if test "${emacs_cv_void_star+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8779 main ()
8781 void * foo;
8783 return 0;
8785 _ACEOF
8786 rm -f conftest.$ac_objext
8787 if { (ac_try="$ac_compile"
8788 case "(($ac_try" in
8789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790 *) ac_try_echo=$ac_try;;
8791 esac
8792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8793 (eval "$ac_compile") 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } && {
8800 test -z "$ac_c_werror_flag" ||
8801 test ! -s conftest.err
8802 } && test -s conftest.$ac_objext; then
8803 emacs_cv_void_star=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 emacs_cv_void_star=no
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8814 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8815 if test $emacs_cv_void_star = yes; then
8816 cat >>confdefs.h <<\_ACEOF
8817 #define POINTER_TYPE void
8818 _ACEOF
8820 else
8821 cat >>confdefs.h <<\_ACEOF
8822 #define POINTER_TYPE char
8823 _ACEOF
8831 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8832 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8833 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8835 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 else
8837 cat >conftest.make <<\_ACEOF
8838 SHELL = /bin/sh
8839 all:
8840 @echo '@@@%%%=$(MAKE)=@@@%%%'
8841 _ACEOF
8842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8844 *@@@%%%=?*=@@@%%%*)
8845 eval ac_cv_prog_make_${ac_make}_set=yes;;
8847 eval ac_cv_prog_make_${ac_make}_set=no;;
8848 esac
8849 rm -f conftest.make
8851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8852 { echo "$as_me:$LINENO: result: yes" >&5
8853 echo "${ECHO_T}yes" >&6; }
8854 SET_MAKE=
8855 else
8856 { echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6; }
8858 SET_MAKE="MAKE=${MAKE-make}"
8862 { echo "$as_me:$LINENO: checking for long file names" >&5
8863 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8864 if test "${ac_cv_sys_long_file_names+set}" = set; then
8865 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867 ac_cv_sys_long_file_names=yes
8868 # Test for long file names in all the places we know might matter:
8869 # . the current directory, where building will happen
8870 # $prefix/lib where we will be installing things
8871 # $exec_prefix/lib likewise
8872 # $TMPDIR if set, where it might want to write temporary files
8873 # /tmp where it might want to write temporary files
8874 # /var/tmp likewise
8875 # /usr/tmp likewise
8876 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8877 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8878 # in the usual case where exec_prefix is '${prefix}'.
8879 case $ac_dir in #(
8880 . | /* | ?:[\\/]*) ;; #(
8881 *) continue;;
8882 esac
8883 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8884 ac_xdir=$ac_dir/cf$$
8885 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8886 ac_tf1=$ac_xdir/conftest9012345
8887 ac_tf2=$ac_xdir/conftest9012346
8888 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8889 ac_cv_sys_long_file_names=no
8890 rm -f -r "$ac_xdir" 2>/dev/null
8891 test $ac_cv_sys_long_file_names = no && break
8892 done
8894 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8895 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8896 if test $ac_cv_sys_long_file_names = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define HAVE_LONG_FILE_NAMES 1
8900 _ACEOF
8905 #### Choose a window system.
8907 { echo "$as_me:$LINENO: checking for X" >&5
8908 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8911 # Check whether --with-x was given.
8912 if test "${with_x+set}" = set; then
8913 withval=$with_x;
8916 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8917 if test "x$with_x" = xno; then
8918 # The user explicitly disabled X.
8919 have_x=disabled
8920 else
8921 case $x_includes,$x_libraries in #(
8922 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8923 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8924 { (exit 1); exit 1; }; };; #(
8925 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927 else
8928 # One or both of the vars are not set, and there is no cached value.
8929 ac_x_includes=no ac_x_libraries=no
8930 rm -f -r conftest.dir
8931 if mkdir conftest.dir; then
8932 cd conftest.dir
8933 cat >Imakefile <<'_ACEOF'
8934 incroot:
8935 @echo incroot='${INCROOT}'
8936 usrlibdir:
8937 @echo usrlibdir='${USRLIBDIR}'
8938 libdir:
8939 @echo libdir='${LIBDIR}'
8940 _ACEOF
8941 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8942 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8943 for ac_var in incroot usrlibdir libdir; do
8944 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8945 done
8946 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8947 for ac_extension in a so sl; do
8948 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8949 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8950 ac_im_usrlibdir=$ac_im_libdir; break
8952 done
8953 # Screen out bogus values from the imake configuration. They are
8954 # bogus both because they are the default anyway, and because
8955 # using them would break gcc on systems where it needs fixed includes.
8956 case $ac_im_incroot in
8957 /usr/include) ac_x_includes= ;;
8958 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8959 esac
8960 case $ac_im_usrlibdir in
8961 /usr/lib | /lib) ;;
8962 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8963 esac
8965 cd ..
8966 rm -f -r conftest.dir
8969 # Standard set of common directories for X headers.
8970 # Check X11 before X11Rn because it is often a symlink to the current release.
8971 ac_x_header_dirs='
8972 /usr/X11/include
8973 /usr/X11R6/include
8974 /usr/X11R5/include
8975 /usr/X11R4/include
8977 /usr/include/X11
8978 /usr/include/X11R6
8979 /usr/include/X11R5
8980 /usr/include/X11R4
8982 /usr/local/X11/include
8983 /usr/local/X11R6/include
8984 /usr/local/X11R5/include
8985 /usr/local/X11R4/include
8987 /usr/local/include/X11
8988 /usr/local/include/X11R6
8989 /usr/local/include/X11R5
8990 /usr/local/include/X11R4
8992 /usr/X386/include
8993 /usr/x386/include
8994 /usr/XFree86/include/X11
8996 /usr/include
8997 /usr/local/include
8998 /usr/unsupported/include
8999 /usr/athena/include
9000 /usr/local/x11r5/include
9001 /usr/lpp/Xamples/include
9003 /usr/openwin/include
9004 /usr/openwin/share/include'
9006 if test "$ac_x_includes" = no; then
9007 # Guess where to find include files, by looking for Xlib.h.
9008 # First, try using that file with no special directory specified.
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <X11/Xlib.h>
9016 _ACEOF
9017 if { (ac_try="$ac_cpp conftest.$ac_ext"
9018 case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } >/dev/null && {
9030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 }; then
9033 # We can compile using X headers with no special include directory.
9034 ac_x_includes=
9035 else
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 for ac_dir in $ac_x_header_dirs; do
9040 if test -r "$ac_dir/X11/Xlib.h"; then
9041 ac_x_includes=$ac_dir
9042 break
9044 done
9047 rm -f conftest.err conftest.$ac_ext
9048 fi # $ac_x_includes = no
9050 if test "$ac_x_libraries" = no; then
9051 # Check for the libraries.
9052 # See if we find them without any special options.
9053 # Don't add to $LIBS permanently.
9054 ac_save_LIBS=$LIBS
9055 LIBS="-lX11 $LIBS"
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 #include <X11/Xlib.h>
9064 main ()
9066 XrmInitialize ()
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_link") 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } && {
9085 test -z "$ac_c_werror_flag" ||
9086 test ! -s conftest.err
9087 } && test -s conftest$ac_exeext &&
9088 $as_test_x conftest$ac_exeext; then
9089 LIBS=$ac_save_LIBS
9090 # We can link X programs with no special library path.
9091 ac_x_libraries=
9092 else
9093 echo "$as_me: failed program was:" >&5
9094 sed 's/^/| /' conftest.$ac_ext >&5
9096 LIBS=$ac_save_LIBS
9097 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9099 # Don't even attempt the hair of trying to link an X program!
9100 for ac_extension in a so sl; do
9101 if test -r "$ac_dir/libX11.$ac_extension"; then
9102 ac_x_libraries=$ac_dir
9103 break 2
9105 done
9106 done
9109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9110 conftest$ac_exeext conftest.$ac_ext
9111 fi # $ac_x_libraries = no
9113 case $ac_x_includes,$ac_x_libraries in #(
9114 no,* | *,no | *\'*)
9115 # Didn't find X, or a directory has "'" in its name.
9116 ac_cv_have_x="have_x=no";; #(
9118 # Record where we found X for the cache.
9119 ac_cv_have_x="have_x=yes\
9120 ac_x_includes='$ac_x_includes'\
9121 ac_x_libraries='$ac_x_libraries'"
9122 esac
9124 ;; #(
9125 *) have_x=yes;;
9126 esac
9127 eval "$ac_cv_have_x"
9128 fi # $with_x != no
9130 if test "$have_x" != yes; then
9131 { echo "$as_me:$LINENO: result: $have_x" >&5
9132 echo "${ECHO_T}$have_x" >&6; }
9133 no_x=yes
9134 else
9135 # If each of the values was on the command line, it overrides each guess.
9136 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9137 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9138 # Update the cache value to reflect the command line values.
9139 ac_cv_have_x="have_x=yes\
9140 ac_x_includes='$x_includes'\
9141 ac_x_libraries='$x_libraries'"
9142 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9143 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9146 if test "$no_x" = yes; then
9147 window_system=none
9148 else
9149 window_system=x11
9152 ## Workaround for bug in autoconf <= 2.62.
9153 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9154 ## No need to do anything special for these standard directories.
9155 ## This is an experiment, take it out if it causes problems.
9156 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9158 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9162 if test "${x_libraries}" != NONE; then
9163 if test -n "${x_libraries}"; then
9164 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9165 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9167 x_default_search_path=""
9168 x_search_path=${x_libraries}
9169 if test -z "${x_search_path}"; then
9170 x_search_path=/usr/lib
9172 for x_library in `echo ${x_search_path}: | \
9173 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9174 x_search_path="\
9175 ${x_library}/X11/%L/%T/%N%C%S:\
9176 ${x_library}/X11/%l/%T/%N%C%S:\
9177 ${x_library}/X11/%T/%N%C%S:\
9178 ${x_library}/X11/%L/%T/%N%S:\
9179 ${x_library}/X11/%l/%T/%N%S:\
9180 ${x_library}/X11/%T/%N%S"
9181 if test x"${x_default_search_path}" = x; then
9182 x_default_search_path=${x_search_path}
9183 else
9184 x_default_search_path="${x_search_path}:${x_default_search_path}"
9186 done
9188 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9189 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9192 if test x"${x_includes}" = x; then
9193 bitmapdir=/usr/include/X11/bitmaps
9194 else
9195 # accumulate include directories that have X11 bitmap subdirectories
9196 bmd_acc="dummyval"
9197 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9198 if test -d "${bmd}/X11/bitmaps"; then
9199 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9201 if test -d "${bmd}/bitmaps"; then
9202 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9204 done
9205 if test ${bmd_acc} != "dummyval"; then
9206 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9210 HAVE_NS=no
9211 NS_IMPL_COCOA=no
9212 NS_IMPL_GNUSTEP=no
9213 tmp_CPPFLAGS="$CPPFLAGS"
9214 tmp_CFLAGS="$CFLAGS"
9215 CPPFLAGS="$CPPFLAGS -x objective-c"
9216 CFLAGS="$CFLAGS -x objective-c"
9217 if test "${with_ns}" != no; then
9218 if test "${opsys}" = darwin; then
9219 NS_IMPL_COCOA=yes
9220 ns_appdir=`pwd`/nextstep/Emacs.app
9221 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9222 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9223 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9224 elif test -f $GNUSTEP_CONFIG_FILE; then
9225 NS_IMPL_GNUSTEP=yes
9226 ns_appdir=`pwd`/nextstep/Emacs.app
9227 ns_appbindir=`pwd`/nextstep/Emacs.app
9228 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9229 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9230 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9231 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9232 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9233 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9234 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9235 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9236 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9238 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9239 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9240 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9241 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9245 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9246 else
9247 # Is the header compilable?
9248 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9249 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 #include <AppKit/AppKit.h>
9258 _ACEOF
9259 rm -f conftest.$ac_objext
9260 if { (ac_try="$ac_compile"
9261 case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_compile") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest.$ac_objext; then
9276 ac_header_compiler=yes
9277 else
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 ac_header_compiler=no
9284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9286 echo "${ECHO_T}$ac_header_compiler" >&6; }
9288 # Is the header present?
9289 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9290 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 #include <AppKit/AppKit.h>
9298 _ACEOF
9299 if { (ac_try="$ac_cpp conftest.$ac_ext"
9300 case "(($ac_try" in
9301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9302 *) ac_try_echo=$ac_try;;
9303 esac
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9306 ac_status=$?
9307 grep -v '^ *+' conftest.er1 >conftest.err
9308 rm -f conftest.er1
9309 cat conftest.err >&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } >/dev/null && {
9312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 }; then
9315 ac_header_preproc=yes
9316 else
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_header_preproc=no
9323 rm -f conftest.err conftest.$ac_ext
9324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9325 echo "${ECHO_T}$ac_header_preproc" >&6; }
9327 # So? What about this header?
9328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9329 yes:no: )
9330 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9331 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9333 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9334 ac_header_preproc=yes
9336 no:yes:* )
9337 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9338 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9340 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9342 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9344 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9345 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9346 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9347 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9348 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9351 esac
9352 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9353 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9354 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9359 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9360 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9363 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9364 HAVE_NS=yes
9365 else
9366 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9367 files are missing or cannot be compiled." >&5
9368 echo "$as_me: error: \`--with-ns' was specified, but the include
9369 files are missing or cannot be compiled." >&2;}
9370 { (exit 1); exit 1; }; }
9374 NS_HAVE_NSINTEGER=yes
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <Foundation/NSObjCRuntime.h>
9383 main ()
9385 NSInteger i;
9387 return 0;
9389 _ACEOF
9390 rm -f conftest.$ac_objext
9391 if { (ac_try="$ac_compile"
9392 case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_compile") 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && {
9404 test -z "$ac_c_werror_flag" ||
9405 test ! -s conftest.err
9406 } && test -s conftest.$ac_objext; then
9407 ns_have_nsinteger=yes
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9412 ns_have_nsinteger=no
9415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416 if test $ns_have_nsinteger = no; then
9417 NS_HAVE_NSINTEGER=no
9420 if test "${HAVE_NS}" = yes; then
9421 window_system=nextstep
9422 with_xft=no
9423 with_freetype=no
9424 # set up packaging dirs
9425 exec_prefix=${ns_appbindir}
9426 libexecdir=${ns_appbindir}/libexec
9427 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9428 prefix=${ns_appresdir}
9431 CFLAGS="$tmp_CFLAGS"
9432 CPPFLAGS="$tmp_CPPFLAGS"
9434 case "${window_system}" in
9435 x11 )
9436 HAVE_X_WINDOWS=yes
9437 HAVE_X11=yes
9438 case "${with_x_toolkit}" in
9439 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9440 motif ) USE_X_TOOLKIT=MOTIF ;;
9441 gtk ) with_gtk=yes
9442 USE_X_TOOLKIT=none ;;
9443 no ) USE_X_TOOLKIT=none ;;
9444 * ) USE_X_TOOLKIT=maybe ;;
9445 esac
9447 nextstep | none )
9448 HAVE_X_WINDOWS=no
9449 HAVE_X11=no
9450 USE_X_TOOLKIT=none
9452 esac
9454 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9455 # Extract the first word of "X", so it can be a program name with args.
9456 set dummy X; ac_word=$2
9457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9459 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 if test -n "$HAVE_XSERVER"; then
9463 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9464 else
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9466 for as_dir in $PATH
9468 IFS=$as_save_IFS
9469 test -z "$as_dir" && as_dir=.
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_prog_HAVE_XSERVER="true"
9473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9474 break 2
9476 done
9477 done
9478 IFS=$as_save_IFS
9480 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9483 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9484 if test -n "$HAVE_XSERVER"; then
9485 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9486 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9487 else
9488 { echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6; }
9493 if test "$HAVE_XSERVER" = true ||
9494 test -n "$DISPLAY" ||
9495 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9496 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9497 were found. You should install the relevant development files for X
9498 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9499 sure you have development files for image handling, i.e.
9500 tiff, gif, jpeg, png and xpm.
9501 If you are sure you want Emacs compiled without X window support, pass
9502 --without-x
9503 to configure." >&5
9504 echo "$as_me: error: You seem to be running X, but no X development libraries
9505 were found. You should install the relevant development files for X
9506 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9507 sure you have development files for image handling, i.e.
9508 tiff, gif, jpeg, png and xpm.
9509 If you are sure you want Emacs compiled without X window support, pass
9510 --without-x
9511 to configure." >&2;}
9512 { (exit 1); exit 1; }; }
9516 ### If we're using X11, we should use the X menu package.
9517 HAVE_MENUS=no
9518 case ${HAVE_X11} in
9519 yes ) HAVE_MENUS=yes ;;
9520 esac
9522 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9523 # Assume not, until told otherwise.
9524 GNU_MALLOC=yes
9525 doug_lea_malloc=yes
9526 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9527 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9528 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h. */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9539 #define malloc_get_state innocuous_malloc_get_state
9541 /* System header to define __stub macros and hopefully few prototypes,
9542 which can conflict with char malloc_get_state (); below.
9543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 <limits.h> exists even on freestanding compilers. */
9546 #ifdef __STDC__
9547 # include <limits.h>
9548 #else
9549 # include <assert.h>
9550 #endif
9552 #undef malloc_get_state
9554 /* Override any GCC internal prototype to avoid an error.
9555 Use char because int might match the return type of a GCC
9556 builtin and then its argument prototype would still apply. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char malloc_get_state ();
9561 /* The GNU C library defines this for functions which it implements
9562 to always fail with ENOSYS. Some functions are actually named
9563 something starting with __ and the normal name is an alias. */
9564 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9565 choke me
9566 #endif
9569 main ()
9571 return malloc_get_state ();
9573 return 0;
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (ac_try="$ac_link"
9578 case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_link") 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest$ac_exeext &&
9593 $as_test_x conftest$ac_exeext; then
9594 ac_cv_func_malloc_get_state=yes
9595 else
9596 echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9599 ac_cv_func_malloc_get_state=no
9602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9603 conftest$ac_exeext conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9606 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9607 if test $ac_cv_func_malloc_get_state = yes; then
9609 else
9610 doug_lea_malloc=no
9613 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9614 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9615 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9626 #define malloc_set_state innocuous_malloc_set_state
9628 /* System header to define __stub macros and hopefully few prototypes,
9629 which can conflict with char malloc_set_state (); below.
9630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 <limits.h> exists even on freestanding compilers. */
9633 #ifdef __STDC__
9634 # include <limits.h>
9635 #else
9636 # include <assert.h>
9637 #endif
9639 #undef malloc_set_state
9641 /* Override any GCC internal prototype to avoid an error.
9642 Use char because int might match the return type of a GCC
9643 builtin and then its argument prototype would still apply. */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char malloc_set_state ();
9648 /* The GNU C library defines this for functions which it implements
9649 to always fail with ENOSYS. Some functions are actually named
9650 something starting with __ and the normal name is an alias. */
9651 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9652 choke me
9653 #endif
9656 main ()
9658 return malloc_set_state ();
9660 return 0;
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_func_malloc_set_state=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9686 ac_cv_func_malloc_set_state=no
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9692 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9693 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9694 if test $ac_cv_func_malloc_set_state = yes; then
9696 else
9697 doug_lea_malloc=no
9700 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9701 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9702 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 cat >conftest.$ac_ext <<_ACEOF
9706 /* confdefs.h. */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 extern void (* __after_morecore_hook)();
9713 main ()
9715 __after_morecore_hook = 0
9717 return 0;
9719 _ACEOF
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9722 case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725 esac
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
9738 emacs_cv_var___after_morecore_hook=yes
9739 else
9740 echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 emacs_cv_var___after_morecore_hook=no
9746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9747 conftest$ac_exeext conftest.$ac_ext
9749 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9750 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9751 if test $emacs_cv_var___after_morecore_hook = no; then
9752 doug_lea_malloc=no
9754 if test "${system_malloc}" = "yes"; then
9755 GNU_MALLOC=no
9756 GNU_MALLOC_reason="
9757 (The GNU allocators don't work with this system configuration.)"
9759 if test "$doug_lea_malloc" = "yes" ; then
9760 if test "$GNU_MALLOC" = yes ; then
9761 GNU_MALLOC_reason="
9762 (Using Doug Lea's new malloc from the GNU C Library.)"
9765 cat >>confdefs.h <<\_ACEOF
9766 #define DOUG_LEA_MALLOC 1
9767 _ACEOF
9771 if test x"${REL_ALLOC}" = x; then
9772 REL_ALLOC=${GNU_MALLOC}
9778 for ac_header in stdlib.h unistd.h
9780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_res=`eval echo '${'$as_ac_Header'}'`
9788 { echo "$as_me:$LINENO: result: $ac_res" >&5
9789 echo "${ECHO_T}$ac_res" >&6; }
9790 else
9791 # Is the header compilable?
9792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 $ac_includes_default
9801 #include <$ac_header>
9802 _ACEOF
9803 rm -f conftest.$ac_objext
9804 if { (ac_try="$ac_compile"
9805 case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_compile") 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } && {
9817 test -z "$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9819 } && test -s conftest.$ac_objext; then
9820 ac_header_compiler=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_compiler=no
9828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9830 echo "${ECHO_T}$ac_header_compiler" >&6; }
9832 # Is the header present?
9833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9835 cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h. */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <$ac_header>
9842 _ACEOF
9843 if { (ac_try="$ac_cpp conftest.$ac_ext"
9844 case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9850 ac_status=$?
9851 grep -v '^ *+' conftest.er1 >conftest.err
9852 rm -f conftest.er1
9853 cat conftest.err >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } >/dev/null && {
9856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9857 test ! -s conftest.err
9858 }; then
9859 ac_header_preproc=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_header_preproc=no
9867 rm -f conftest.err conftest.$ac_ext
9868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9869 echo "${ECHO_T}$ac_header_preproc" >&6; }
9871 # So? What about this header?
9872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9873 yes:no: )
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9878 ac_header_preproc=yes
9880 no:yes:* )
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9895 esac
9896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 else
9901 eval "$as_ac_Header=\$ac_header_preproc"
9903 ac_res=`eval echo '${'$as_ac_Header'}'`
9904 { echo "$as_me:$LINENO: result: $ac_res" >&5
9905 echo "${ECHO_T}$ac_res" >&6; }
9908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9911 _ACEOF
9915 done
9918 for ac_func in getpagesize
9920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h. */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9934 #define $ac_func innocuous_$ac_func
9936 /* System header to define __stub macros and hopefully few prototypes,
9937 which can conflict with char $ac_func (); below.
9938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9939 <limits.h> exists even on freestanding compilers. */
9941 #ifdef __STDC__
9942 # include <limits.h>
9943 #else
9944 # include <assert.h>
9945 #endif
9947 #undef $ac_func
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char $ac_func ();
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined __stub_$ac_func || defined __stub___$ac_func
9960 choke me
9961 #endif
9964 main ()
9966 return $ac_func ();
9968 return 0;
9970 _ACEOF
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9973 case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976 esac
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_link") 2>conftest.er1
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest$ac_exeext &&
9988 $as_test_x conftest$ac_exeext; then
9989 eval "$as_ac_var=yes"
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 eval "$as_ac_var=no"
9997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9998 conftest$ac_exeext conftest.$ac_ext
10000 ac_res=`eval echo '${'$as_ac_var'}'`
10001 { echo "$as_me:$LINENO: result: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10003 if test `eval echo '${'$as_ac_var'}'` = yes; then
10004 cat >>confdefs.h <<_ACEOF
10005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10006 _ACEOF
10009 done
10011 { echo "$as_me:$LINENO: checking for working mmap" >&5
10012 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10013 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 if test "$cross_compiling" = yes; then
10017 ac_cv_func_mmap_fixed_mapped=no
10018 else
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 /* malloc might have been renamed as rpl_malloc. */
10027 #undef malloc
10029 /* Thanks to Mike Haertel and Jim Avera for this test.
10030 Here is a matrix of mmap possibilities:
10031 mmap private not fixed
10032 mmap private fixed at somewhere currently unmapped
10033 mmap private fixed at somewhere already mapped
10034 mmap shared not fixed
10035 mmap shared fixed at somewhere currently unmapped
10036 mmap shared fixed at somewhere already mapped
10037 For private mappings, we should verify that changes cannot be read()
10038 back from the file, nor mmap's back from the file at a different
10039 address. (There have been systems where private was not correctly
10040 implemented like the infamous i386 svr4.0, and systems where the
10041 VM page cache was not coherent with the file system buffer cache
10042 like early versions of FreeBSD and possibly contemporary NetBSD.)
10043 For shared mappings, we should conversely verify that changes get
10044 propagated back to all the places they're supposed to be.
10046 Grep wants private fixed already mapped.
10047 The main things grep needs to know about mmap are:
10048 * does it exist and is it safe to write into the mmap'd area
10049 * how to use it (BSD variants) */
10051 #include <fcntl.h>
10052 #include <sys/mman.h>
10054 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10055 char *malloc ();
10056 #endif
10058 /* This mess was copied from the GNU getpagesize.h. */
10059 #ifndef HAVE_GETPAGESIZE
10060 /* Assume that all systems that can run configure have sys/param.h. */
10061 # ifndef HAVE_SYS_PARAM_H
10062 # define HAVE_SYS_PARAM_H 1
10063 # endif
10065 # ifdef _SC_PAGESIZE
10066 # define getpagesize() sysconf(_SC_PAGESIZE)
10067 # else /* no _SC_PAGESIZE */
10068 # ifdef HAVE_SYS_PARAM_H
10069 # include <sys/param.h>
10070 # ifdef EXEC_PAGESIZE
10071 # define getpagesize() EXEC_PAGESIZE
10072 # else /* no EXEC_PAGESIZE */
10073 # ifdef NBPG
10074 # define getpagesize() NBPG * CLSIZE
10075 # ifndef CLSIZE
10076 # define CLSIZE 1
10077 # endif /* no CLSIZE */
10078 # else /* no NBPG */
10079 # ifdef NBPC
10080 # define getpagesize() NBPC
10081 # else /* no NBPC */
10082 # ifdef PAGESIZE
10083 # define getpagesize() PAGESIZE
10084 # endif /* PAGESIZE */
10085 # endif /* no NBPC */
10086 # endif /* no NBPG */
10087 # endif /* no EXEC_PAGESIZE */
10088 # else /* no HAVE_SYS_PARAM_H */
10089 # define getpagesize() 8192 /* punt totally */
10090 # endif /* no HAVE_SYS_PARAM_H */
10091 # endif /* no _SC_PAGESIZE */
10093 #endif /* no HAVE_GETPAGESIZE */
10096 main ()
10098 char *data, *data2, *data3;
10099 int i, pagesize;
10100 int fd;
10102 pagesize = getpagesize ();
10104 /* First, make a file with some known garbage in it. */
10105 data = (char *) malloc (pagesize);
10106 if (!data)
10107 return 1;
10108 for (i = 0; i < pagesize; ++i)
10109 *(data + i) = rand ();
10110 umask (0);
10111 fd = creat ("conftest.mmap", 0600);
10112 if (fd < 0)
10113 return 1;
10114 if (write (fd, data, pagesize) != pagesize)
10115 return 1;
10116 close (fd);
10118 /* Next, try to mmap the file at a fixed address which already has
10119 something else allocated at it. If we can, also make sure that
10120 we see the same garbage. */
10121 fd = open ("conftest.mmap", O_RDWR);
10122 if (fd < 0)
10123 return 1;
10124 data2 = (char *) malloc (2 * pagesize);
10125 if (!data2)
10126 return 1;
10127 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10130 return 1;
10131 for (i = 0; i < pagesize; ++i)
10132 if (*(data + i) != *(data2 + i))
10133 return 1;
10135 /* Finally, make sure that changes to the mapped area do not
10136 percolate back to the file as seen by read(). (This is a bug on
10137 some variants of i386 svr4.0.) */
10138 for (i = 0; i < pagesize; ++i)
10139 *(data2 + i) = *(data2 + i) + 1;
10140 data3 = (char *) malloc (pagesize);
10141 if (!data3)
10142 return 1;
10143 if (read (fd, data3, pagesize) != pagesize)
10144 return 1;
10145 for (i = 0; i < pagesize; ++i)
10146 if (*(data + i) != *(data3 + i))
10147 return 1;
10148 close (fd);
10149 return 0;
10151 _ACEOF
10152 rm -f conftest$ac_exeext
10153 if { (ac_try="$ac_link"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_link") 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_cv_func_mmap_fixed_mapped=yes
10173 else
10174 echo "$as_me: program exited with status $ac_status" >&5
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 ( exit $ac_status )
10179 ac_cv_func_mmap_fixed_mapped=no
10181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10186 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10187 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10188 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_MMAP 1
10192 _ACEOF
10195 rm -f conftest.mmap
10197 if test $use_mmap_for_buffers = yes; then
10198 REL_ALLOC=no
10201 LIBS="$libsrc_libs $LIBS"
10204 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10205 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10206 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 ac_check_lib_save_LIBS=$LIBS
10210 LIBS="-ldnet $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h. */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char dnet_ntoa ();
10226 main ()
10228 return dnet_ntoa ();
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238 esac
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext &&
10250 $as_test_x conftest$ac_exeext; then
10251 ac_cv_lib_dnet_dnet_ntoa=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_lib_dnet_dnet_ntoa=no
10259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_lib_save_LIBS
10263 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10264 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10265 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_LIBDNET 1
10268 _ACEOF
10270 LIBS="-ldnet $LIBS"
10275 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10276 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10277 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-lXbsd $LIBS"
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10291 main ()
10293 return main ();
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (ac_try="$ac_link"
10300 case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303 esac
10304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_link") 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } && {
10312 test -z "$ac_c_werror_flag" ||
10313 test ! -s conftest.err
10314 } && test -s conftest$ac_exeext &&
10315 $as_test_x conftest$ac_exeext; then
10316 ac_cv_lib_Xbsd_main=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_cv_lib_Xbsd_main=no
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10328 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10329 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10330 if test $ac_cv_lib_Xbsd_main = yes; then
10331 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10336 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10337 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10338 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lpthreads $LIBS"
10343 cat >conftest.$ac_ext <<_ACEOF
10344 /* confdefs.h. */
10345 _ACEOF
10346 cat confdefs.h >>conftest.$ac_ext
10347 cat >>conftest.$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10353 #ifdef __cplusplus
10354 extern "C"
10355 #endif
10356 char cma_open ();
10358 main ()
10360 return cma_open ();
10362 return 0;
10364 _ACEOF
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370 esac
10371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10372 (eval "$ac_link") 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } && {
10379 test -z "$ac_c_werror_flag" ||
10380 test ! -s conftest.err
10381 } && test -s conftest$ac_exeext &&
10382 $as_test_x conftest$ac_exeext; then
10383 ac_cv_lib_pthreads_cma_open=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_lib_pthreads_cma_open=no
10391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10392 conftest$ac_exeext conftest.$ac_ext
10393 LIBS=$ac_check_lib_save_LIBS
10395 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10396 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10397 if test $ac_cv_lib_pthreads_cma_open = yes; then
10398 cat >>confdefs.h <<_ACEOF
10399 #define HAVE_LIBPTHREADS 1
10400 _ACEOF
10402 LIBS="-lpthreads $LIBS"
10408 case ${host_os} in
10409 aix*)
10410 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10411 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10412 if test "${gdb_cv_bigtoc+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10416 case $GCC in
10417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10418 *) gdb_cv_bigtoc=-bbigtoc ;;
10419 esac
10421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10430 main ()
10432 int i;
10434 return 0;
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 gdb_cv_bigtoc=
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10467 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10468 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10470 esac
10472 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10473 # used for the tests that follow. We set them back to REAL_CFLAGS and
10474 # REAL_CPPFLAGS later on.
10476 REAL_CPPFLAGS="$CPPFLAGS"
10478 if test "${HAVE_X11}" = "yes"; then
10479 DEFS="$C_SWITCH_X_SITE $DEFS"
10480 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10481 LIBS="$LIBX $LIBS"
10482 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10483 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10485 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10486 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10487 # but it's more convenient here to set LD_RUN_PATH
10488 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10489 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10490 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10491 export LD_RUN_PATH
10494 if test "${opsys}" = "gnu-linux"; then
10495 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10496 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10505 main ()
10507 XOpenDisplay ("foo");
10509 return 0;
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest$ac_exeext &&
10529 $as_test_x conftest$ac_exeext; then
10530 xlinux_first_failure=no
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10535 xlinux_first_failure=yes
10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539 conftest$ac_exeext conftest.$ac_ext
10540 if test "${xlinux_first_failure}" = "yes"; then
10541 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10542 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10543 OLD_CPPFLAGS="$CPPFLAGS"
10544 OLD_LIBS="$LIBS"
10545 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10546 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10547 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10548 LIBS="$LIBS -b i486-linuxaout"
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10557 main ()
10559 XOpenDisplay ("foo");
10561 return 0;
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 xlinux_second_failure=no
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 xlinux_second_failure=yes
10590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592 if test "${xlinux_second_failure}" = "yes"; then
10593 # If we get the same failure with -b, there is no use adding -b.
10594 # So take it out. This plays safe.
10595 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10596 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10597 CPPFLAGS="$OLD_CPPFLAGS"
10598 LIBS="$OLD_LIBS"
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10601 else
10602 { echo "$as_me:$LINENO: result: yes" >&5
10603 echo "${ECHO_T}yes" >&6; }
10605 else
10606 { echo "$as_me:$LINENO: result: no" >&5
10607 echo "${ECHO_T}no" >&6; }
10611 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10612 # header files included from there.
10613 { echo "$as_me:$LINENO: checking for Xkb" >&5
10614 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <X11/Xlib.h>
10622 #include <X11/XKBlib.h>
10624 main ()
10626 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10628 return 0;
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10649 emacs_xkb=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 emacs_xkb=no
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10659 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10660 echo "${ECHO_T}$emacs_xkb" >&6; }
10661 if test $emacs_xkb = yes; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_XKBGETKEYBOARD 1
10665 _ACEOF
10673 for ac_func in XrmSetDatabase XScreenResourceString \
10674 XScreenNumberOfScreen XSetWMProtocols
10676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define $ac_func innocuous_$ac_func
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char $ac_func (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10697 #ifdef __STDC__
10698 # include <limits.h>
10699 #else
10700 # include <assert.h>
10701 #endif
10703 #undef $ac_func
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 char $ac_func ();
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined __stub_$ac_func || defined __stub___$ac_func
10716 choke me
10717 #endif
10720 main ()
10722 return $ac_func ();
10724 return 0;
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 eval "$as_ac_var=yes"
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 eval "$as_ac_var=no"
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10756 ac_res=`eval echo '${'$as_ac_var'}'`
10757 { echo "$as_me:$LINENO: result: $ac_res" >&5
10758 echo "${ECHO_T}$ac_res" >&6; }
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10762 _ACEOF
10765 done
10769 if test "${window_system}" = "x11"; then
10770 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10771 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10772 if test "${emacs_cv_x11_version_6+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <X11/Xlib.h>
10783 main ()
10785 #if XlibSpecificationRelease < 6
10786 fail;
10787 #endif
10790 return 0;
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 emacs_cv_x11_version_6=yes
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 emacs_cv_x11_version_6=no
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10823 if test $emacs_cv_x11_version_6 = yes; then
10824 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10825 echo "${ECHO_T}6 or newer" >&6; }
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_X11R6 1
10829 _ACEOF
10831 else
10832 { echo "$as_me:$LINENO: result: before 6" >&5
10833 echo "${ECHO_T}before 6" >&6; }
10838 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10839 HAVE_RSVG=no
10840 if test "${HAVE_X11}" = "yes"; then
10841 if test "${with_rsvg}" != "no"; then
10842 RSVG_REQUIRED=2.0.0
10843 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10846 succeeded=no
10848 # Extract the first word of "pkg-config", so it can be a program name with args.
10849 set dummy pkg-config; ac_word=$2
10850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 case $PKG_CONFIG in
10856 [\\/]* | ?:[\\/]*)
10857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10863 IFS=$as_save_IFS
10864 test -z "$as_dir" && as_dir=.
10865 for ac_exec_ext in '' $ac_executable_extensions; do
10866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 break 2
10871 done
10872 done
10873 IFS=$as_save_IFS
10875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10877 esac
10879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10880 if test -n "$PKG_CONFIG"; then
10881 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10883 else
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10890 if test "$PKG_CONFIG" = "no" ; then
10892 else
10893 PKG_CONFIG_MIN_VERSION=0.9.0
10894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10895 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10896 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10898 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10899 { echo "$as_me:$LINENO: result: yes" >&5
10900 echo "${ECHO_T}yes" >&6; }
10901 succeeded=yes
10903 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10904 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10905 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10906 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10907 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10909 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10910 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10911 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10912 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10913 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10914 else
10915 { echo "$as_me:$LINENO: result: no" >&5
10916 echo "${ECHO_T}no" >&6; }
10917 RSVG_CFLAGS=""
10918 RSVG_LIBS=""
10919 ## If we have a custom action on failure, don't print errors, but
10920 ## do set a variable so people can do so.
10921 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10927 else
10928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 if test $succeeded = yes; then
10935 else
10942 if test ".${RSVG_CFLAGS}" != "."; then
10943 HAVE_RSVG=yes
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_RSVG 1
10947 _ACEOF
10949 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10950 LIBS="$RSVG_LIBS $LIBS"
10956 HAVE_GTK=no
10957 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10958 GLIB_REQUIRED=2.6
10959 GTK_REQUIRED=2.6
10960 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10963 succeeded=no
10965 # Extract the first word of "pkg-config", so it can be a program name with args.
10966 set dummy pkg-config; ac_word=$2
10967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10969 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 else
10972 case $PKG_CONFIG in
10973 [\\/]* | ?:[\\/]*)
10974 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978 for as_dir in $PATH
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10992 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10994 esac
10996 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10997 if test -n "$PKG_CONFIG"; then
10998 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10999 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11000 else
11001 { echo "$as_me:$LINENO: result: no" >&5
11002 echo "${ECHO_T}no" >&6; }
11007 if test "$PKG_CONFIG" = "no" ; then
11008 pkg_check_gtk=no
11009 else
11010 PKG_CONFIG_MIN_VERSION=0.9.0
11011 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11012 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11013 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11015 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11016 { echo "$as_me:$LINENO: result: yes" >&5
11017 echo "${ECHO_T}yes" >&6; }
11018 succeeded=yes
11020 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11021 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11022 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11023 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11024 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11026 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11027 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11028 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11029 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11030 echo "${ECHO_T}$GTK_LIBS" >&6; }
11031 else
11032 { echo "$as_me:$LINENO: result: no" >&5
11033 echo "${ECHO_T}no" >&6; }
11034 GTK_CFLAGS=""
11035 GTK_LIBS=""
11036 ## If we have a custom action on failure, don't print errors, but
11037 ## do set a variable so people can do so.
11038 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11044 else
11045 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11046 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11050 if test $succeeded = yes; then
11051 pkg_check_gtk=yes
11052 else
11053 pkg_check_gtk=no
11056 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11057 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11058 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11059 { (exit 1); exit 1; }; }
11064 if test x"$pkg_check_gtk" = xyes; then
11068 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11069 CFLAGS="$CFLAGS $GTK_CFLAGS"
11070 LIBS="$GTK_LIBS $LIBS"
11071 GTK_COMPILES=no
11073 for ac_func in gtk_main
11075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11089 #define $ac_func innocuous_$ac_func
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char $ac_func (); below.
11093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11094 <limits.h> exists even on freestanding compilers. */
11096 #ifdef __STDC__
11097 # include <limits.h>
11098 #else
11099 # include <assert.h>
11100 #endif
11102 #undef $ac_func
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char $ac_func ();
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined __stub_$ac_func || defined __stub___$ac_func
11115 choke me
11116 #endif
11119 main ()
11121 return $ac_func ();
11123 return 0;
11125 _ACEOF
11126 rm -f conftest.$ac_objext conftest$ac_exeext
11127 if { (ac_try="$ac_link"
11128 case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_link") 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest$ac_exeext &&
11143 $as_test_x conftest$ac_exeext; then
11144 eval "$as_ac_var=yes"
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 eval "$as_ac_var=no"
11152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11153 conftest$ac_exeext conftest.$ac_ext
11155 ac_res=`eval echo '${'$as_ac_var'}'`
11156 { echo "$as_me:$LINENO: result: $ac_res" >&5
11157 echo "${ECHO_T}$ac_res" >&6; }
11158 if test `eval echo '${'$as_ac_var'}'` = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11161 _ACEOF
11162 GTK_COMPILES=yes
11164 done
11166 if test "${GTK_COMPILES}" != "yes"; then
11167 if test "$USE_X_TOOLKIT" != "maybe"; then
11168 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11169 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11170 { (exit 1); exit 1; }; };
11172 else
11173 HAVE_GTK=yes
11175 cat >>confdefs.h <<\_ACEOF
11176 #define USE_GTK 1
11177 _ACEOF
11179 USE_X_TOOLKIT=none
11180 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11182 else
11183 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11184 closing open displays. This is no problem if you just use
11185 one display, but if you use more than one and close one of them
11186 Emacs may crash." >&5
11187 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11188 closing open displays. This is no problem if you just use
11189 one display, but if you use more than one and close one of them
11190 Emacs may crash." >&2;}
11191 sleep 3
11198 if test "${HAVE_GTK}" = "yes"; then
11200 if test "$with_toolkit_scroll_bars" != no; then
11201 with_toolkit_scroll_bars=yes
11204 HAVE_GTK_MULTIDISPLAY=no
11206 for ac_func in gdk_display_open
11208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11222 #define $ac_func innocuous_$ac_func
11224 /* System header to define __stub macros and hopefully few prototypes,
11225 which can conflict with char $ac_func (); below.
11226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11227 <limits.h> exists even on freestanding compilers. */
11229 #ifdef __STDC__
11230 # include <limits.h>
11231 #else
11232 # include <assert.h>
11233 #endif
11235 #undef $ac_func
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char $ac_func ();
11244 /* The GNU C library defines this for functions which it implements
11245 to always fail with ENOSYS. Some functions are actually named
11246 something starting with __ and the normal name is an alias. */
11247 #if defined __stub_$ac_func || defined __stub___$ac_func
11248 choke me
11249 #endif
11252 main ()
11254 return $ac_func ();
11256 return 0;
11258 _ACEOF
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (ac_try="$ac_link"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_link") 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest$ac_exeext &&
11276 $as_test_x conftest$ac_exeext; then
11277 eval "$as_ac_var=yes"
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 eval "$as_ac_var=no"
11285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286 conftest$ac_exeext conftest.$ac_ext
11288 ac_res=`eval echo '${'$as_ac_var'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_var'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11294 _ACEOF
11295 HAVE_GTK_MULTIDISPLAY=yes
11297 done
11299 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_GTK_MULTIDISPLAY 1
11303 _ACEOF
11307 HAVE_GTK_FILE_SELECTION=no
11309 for ac_func in gtk_file_selection_new
11311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 else
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11332 #ifdef __STDC__
11333 # include <limits.h>
11334 #else
11335 # include <assert.h>
11336 #endif
11338 #undef $ac_func
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 char $ac_func ();
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 choke me
11352 #endif
11355 main ()
11357 return $ac_func ();
11359 return 0;
11361 _ACEOF
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 _ACEOF
11398 HAVE_GTK_FILE_SELECTION=yes
11400 done
11403 HAVE_GTK_FILE_CHOOSER=no
11405 for ac_func in gtk_file_chooser_dialog_new
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11428 #ifdef __STDC__
11429 # include <limits.h>
11430 #else
11431 # include <assert.h>
11432 #endif
11434 #undef $ac_func
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char $ac_func ();
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 choke me
11448 #endif
11451 main ()
11453 return $ac_func ();
11455 return 0;
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 eval "$as_ac_var=no"
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11493 _ACEOF
11494 HAVE_GTK_FILE_CHOOSER=yes
11496 done
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11504 _ACEOF
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11511 for ac_header in pthread.h
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11523 else
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.$ac_objext; then
11553 ac_header_compiler=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_header_compiler=no
11561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11575 _ACEOF
11576 if { (ac_try="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 }; then
11592 ac_header_preproc=yes
11593 else
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_preproc=no
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11606 yes:no: )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11613 no:yes:* )
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11628 esac
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634 eval "$as_ac_Header=\$ac_header_preproc"
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 _ACEOF
11648 done
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11652 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11659 /* confdefs.h. */
11660 _ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 char pthread_self ();
11673 main ()
11675 return pthread_self ();
11677 return 0;
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest$ac_exeext &&
11697 $as_test_x conftest$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self=yes
11699 else
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_lib_pthread_pthread_self=no
11706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD=yes
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 case "${canonical}" in
11719 *-hpux*) ;;
11720 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11721 esac
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_GTK_AND_PTHREAD 1
11725 _ACEOF
11731 HAVE_DBUS=no
11732 if test "${with_dbus}" = "yes"; then
11734 succeeded=no
11736 # Extract the first word of "pkg-config", so it can be a program name with args.
11737 set dummy pkg-config; ac_word=$2
11738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 else
11743 case $PKG_CONFIG in
11744 [\\/]* | ?:[\\/]*)
11745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11757 break 2
11759 done
11760 done
11761 IFS=$as_save_IFS
11763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11765 esac
11767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11768 if test -n "$PKG_CONFIG"; then
11769 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11770 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11771 else
11772 { echo "$as_me:$LINENO: result: no" >&5
11773 echo "${ECHO_T}no" >&6; }
11778 if test "$PKG_CONFIG" = "no" ; then
11779 HAVE_DBUS=no
11780 else
11781 PKG_CONFIG_MIN_VERSION=0.9.0
11782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11783 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11784 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11786 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11787 { echo "$as_me:$LINENO: result: yes" >&5
11788 echo "${ECHO_T}yes" >&6; }
11789 succeeded=yes
11791 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11792 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11793 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11794 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11795 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11797 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11798 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11799 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11800 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11801 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11802 else
11803 { echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6; }
11805 DBUS_CFLAGS=""
11806 DBUS_LIBS=""
11807 ## If we have a custom action on failure, don't print errors, but
11808 ## do set a variable so people can do so.
11809 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11815 else
11816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11821 if test $succeeded = yes; then
11822 HAVE_DBUS=yes
11823 else
11824 HAVE_DBUS=no
11827 if test "$HAVE_DBUS" = yes; then
11829 cat >>confdefs.h <<\_ACEOF
11830 #define HAVE_DBUS 1
11831 _ACEOF
11836 HAVE_XAW3D=no
11837 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11838 if test "$with_xaw3d" != no; then
11839 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11840 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11841 if test "${emacs_cv_xaw3d+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h. */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11851 #include <X11/Intrinsic.h>
11852 #include <X11/Xaw3d/Simple.h>
11854 main ()
11858 return 0;
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (ac_try="$ac_link"
11863 case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_link") 2>conftest.er1
11869 ac_status=$?
11870 grep -v '^ *+' conftest.er1 >conftest.err
11871 rm -f conftest.er1
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest$ac_exeext &&
11878 $as_test_x conftest$ac_exeext; then
11879 emacs_cv_xaw3d=yes
11880 else
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11884 emacs_cv_xaw3d=no
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 conftest$ac_exeext conftest.$ac_ext
11891 else
11892 emacs_cv_xaw3d=no
11894 if test $emacs_cv_xaw3d = yes; then
11895 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11896 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11897 USE_X_TOOLKIT=LUCID
11898 HAVE_XAW3D=yes
11900 cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_XAW3D 1
11902 _ACEOF
11904 else
11905 { echo "$as_me:$LINENO: result: no" >&5
11906 echo "${ECHO_T}no" >&6; }
11907 { echo "$as_me:$LINENO: checking for libXaw" >&5
11908 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11909 if test "${emacs_cv_xaw+set}" = set; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 else
11912 cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h. */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 #include <X11/Intrinsic.h>
11920 #include <X11/Xaw/Simple.h>
11922 main ()
11926 return 0;
11928 _ACEOF
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (ac_try="$ac_link"
11931 case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11934 esac
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_link") 2>conftest.er1
11937 ac_status=$?
11938 grep -v '^ *+' conftest.er1 >conftest.err
11939 rm -f conftest.er1
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } && {
11943 test -z "$ac_c_werror_flag" ||
11944 test ! -s conftest.err
11945 } && test -s conftest$ac_exeext &&
11946 $as_test_x conftest$ac_exeext; then
11947 emacs_cv_xaw=yes
11948 else
11949 echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 emacs_cv_xaw=no
11955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11956 conftest$ac_exeext conftest.$ac_ext
11959 if test $emacs_cv_xaw = yes; then
11960 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11961 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11962 USE_X_TOOLKIT=LUCID
11963 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11964 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11965 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11966 { (exit 1); exit 1; }; }
11967 else
11968 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11969 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11970 USE_X_TOOLKIT=none
11975 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11977 if test "${USE_X_TOOLKIT}" != "none"; then
11978 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11979 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11980 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h. */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <X11/Intrinsic.h>
11991 main ()
11993 #if XtSpecificationRelease < 6
11994 fail;
11995 #endif
11998 return 0;
12000 _ACEOF
12001 rm -f conftest.$ac_objext conftest$ac_exeext
12002 if { (ac_try="$ac_link"
12003 case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_link") 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext &&
12018 $as_test_x conftest$ac_exeext; then
12019 emacs_cv_x11_toolkit_version_6=yes
12020 else
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 emacs_cv_x11_toolkit_version_6=no
12027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12028 conftest$ac_exeext conftest.$ac_ext
12031 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12032 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12033 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12034 echo "${ECHO_T}6 or newer" >&6; }
12036 cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_X11XTR6 1
12038 _ACEOF
12040 else
12041 { echo "$as_me:$LINENO: result: before 6" >&5
12042 echo "${ECHO_T}before 6" >&6; }
12045 OLDLIBS="$LIBS"
12046 if test x$HAVE_X11XTR6 = xyes; then
12047 LIBS="-lXt -lSM -lICE $LIBS"
12048 else
12049 LIBS="-lXt $LIBS"
12052 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12053 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12054 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057 ac_check_lib_save_LIBS=$LIBS
12058 LIBS="-lXmu $LIBS"
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char XmuConvertStandardSelection ();
12074 main ()
12076 return XmuConvertStandardSelection ();
12078 return 0;
12080 _ACEOF
12081 rm -f conftest.$ac_objext conftest$ac_exeext
12082 if { (ac_try="$ac_link"
12083 case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086 esac
12087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_link") 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest$ac_exeext &&
12098 $as_test_x conftest$ac_exeext; then
12099 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12111 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12112 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12113 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define HAVE_LIBXMU 1
12116 _ACEOF
12118 LIBS="-lXmu $LIBS"
12122 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12125 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12126 if test "${HAVE_X11}" = "yes"; then
12127 if test "${USE_X_TOOLKIT}" != "none"; then
12129 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12130 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12131 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 else
12134 ac_check_lib_save_LIBS=$LIBS
12135 LIBS="-lXext $LIBS"
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char XShapeQueryExtension ();
12151 main ()
12153 return XShapeQueryExtension ();
12155 return 0;
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 ac_cv_lib_Xext_XShapeQueryExtension=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_lib_Xext_XShapeQueryExtension=no
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12188 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12189 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12190 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define HAVE_LIBXEXT 1
12193 _ACEOF
12195 LIBS="-lXext $LIBS"
12202 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12203 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12204 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12205 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12214 #include <Xm/Xm.h>
12216 main ()
12218 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12219 int x = 5;
12220 #else
12221 Motif version prior to 2.1.
12222 #endif
12224 return 0;
12226 _ACEOF
12227 rm -f conftest.$ac_objext
12228 if { (ac_try="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232 esac
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 emacs_cv_motif_version_2_1=yes
12245 else
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 emacs_cv_motif_version_2_1=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12255 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12256 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12257 if test $emacs_cv_motif_version_2_1 = yes; then
12258 HAVE_LIBXP=no
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_MOTIF_2_1 1
12262 _ACEOF
12264 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12265 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12266 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 ac_check_lib_save_LIBS=$LIBS
12270 LIBS="-lXp $LIBS"
12271 cat >conftest.$ac_ext <<_ACEOF
12272 /* confdefs.h. */
12273 _ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12278 /* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12281 #ifdef __cplusplus
12282 extern "C"
12283 #endif
12284 char XpCreateContext ();
12286 main ()
12288 return XpCreateContext ();
12290 return 0;
12292 _ACEOF
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298 esac
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest$ac_exeext &&
12310 $as_test_x conftest$ac_exeext; then
12311 ac_cv_lib_Xp_XpCreateContext=yes
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_lib_Xp_XpCreateContext=no
12319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12320 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12323 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12324 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12325 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12326 HAVE_LIBXP=yes
12329 if test ${HAVE_LIBXP} = yes; then
12331 cat >>confdefs.h <<\_ACEOF
12332 #define HAVE_LIBXP 1
12333 _ACEOF
12336 else
12337 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12338 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12339 if test "${emacs_cv_lesstif+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342 # We put this in CFLAGS temporarily to precede other -I options
12343 # that might be in CFLAGS temporarily.
12344 # We put this in CPPFLAGS where it precedes the other -I options.
12345 OLD_CPPFLAGS=$CPPFLAGS
12346 OLD_CFLAGS=$CFLAGS
12347 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12348 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12349 cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h. */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h. */
12355 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12357 main ()
12359 int x = 5;
12361 return 0;
12363 _ACEOF
12364 rm -f conftest.$ac_objext
12365 if { (ac_try="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12372 ac_status=$?
12373 grep -v '^ *+' conftest.er1 >conftest.err
12374 rm -f conftest.er1
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest.$ac_objext; then
12381 emacs_cv_lesstif=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 emacs_cv_lesstif=no
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12392 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12393 if test $emacs_cv_lesstif = yes; then
12394 # Make sure this -I option remains in CPPFLAGS after it is set
12395 # back to REAL_CPPFLAGS.
12396 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12397 # have those other -I options anyway. Ultimately, having this
12398 # directory ultimately in CPPFLAGS will be enough.
12399 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12400 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12401 else
12402 CFLAGS=$OLD_CFLAGS
12403 CPPFLAGS=$OLD_CPPFLAGS
12410 USE_TOOLKIT_SCROLL_BARS=no
12411 if test "${with_toolkit_scroll_bars}" != "no"; then
12412 if test "${USE_X_TOOLKIT}" != "none"; then
12413 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12414 cat >>confdefs.h <<\_ACEOF
12415 #define USE_TOOLKIT_SCROLL_BARS 1
12416 _ACEOF
12418 HAVE_XAW3D=no
12419 USE_TOOLKIT_SCROLL_BARS=yes
12420 elif test "${HAVE_XAW3D}" = "yes"; then
12421 cat >>confdefs.h <<\_ACEOF
12422 #define USE_TOOLKIT_SCROLL_BARS 1
12423 _ACEOF
12425 USE_TOOLKIT_SCROLL_BARS=yes
12427 elif test "${HAVE_GTK}" = "yes"; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define USE_TOOLKIT_SCROLL_BARS 1
12430 _ACEOF
12432 USE_TOOLKIT_SCROLL_BARS=yes
12433 elif test "${HAVE_NS}" = "yes"; then
12434 cat >>confdefs.h <<\_ACEOF
12435 #define USE_TOOLKIT_SCROLL_BARS 1
12436 _ACEOF
12438 USE_TOOLKIT_SCROLL_BARS=yes
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h. */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12449 #include <X11/Xlib.h>
12450 #include <X11/Xresource.h>
12452 main ()
12454 XIMProc callback;
12456 return 0;
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
12476 HAVE_XIM=yes
12478 cat >>confdefs.h <<\_ACEOF
12479 #define HAVE_XIM 1
12480 _ACEOF
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 HAVE_XIM=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 if test "${with_xim}" != "no"; then
12494 cat >>confdefs.h <<\_ACEOF
12495 #define USE_XIM 1
12496 _ACEOF
12501 if test "${HAVE_XIM}" != "no"; then
12502 late_CFLAGS=$CFLAGS
12503 if test "$GCC" = yes; then
12504 CFLAGS="$CFLAGS --pedantic-errors"
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 #include <X11/Xlib.h>
12514 #include <X11/Xresource.h>
12516 main ()
12518 Display *display;
12519 XrmDatabase db;
12520 char *res_name;
12521 char *res_class;
12522 XIMProc callback;
12523 XPointer *client_data;
12524 #ifndef __GNUC__
12525 /* If we're not using GCC, it's probably not XFree86, and this is
12526 probably right, but we can't use something like --pedantic-errors. */
12527 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12528 char*, XIMProc, XPointer*);
12529 #endif
12530 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12531 client_data);
12533 return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext
12537 if { (ac_try="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 emacs_cv_arg6_star=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 if test "$emacs_cv_arg6_star" = yes; then
12564 cat >>confdefs.h <<\_ACEOF
12565 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12566 _ACEOF
12568 else
12569 cat >>confdefs.h <<\_ACEOF
12570 #define XRegisterIMInstantiateCallback_arg6 XPointer
12571 _ACEOF
12574 CFLAGS=$late_CFLAGS
12577 ### Start of font-backend section.
12579 succeeded=no
12581 # Extract the first word of "pkg-config", so it can be a program name with args.
12582 set dummy pkg-config; ac_word=$2
12583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12585 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 case $PKG_CONFIG in
12589 [\\/]* | ?:[\\/]*)
12590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12604 done
12605 done
12606 IFS=$as_save_IFS
12608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12610 esac
12612 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12613 if test -n "$PKG_CONFIG"; then
12614 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12615 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12616 else
12617 { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12623 if test "$PKG_CONFIG" = "no" ; then
12624 HAVE_FC=no
12625 else
12626 PKG_CONFIG_MIN_VERSION=0.9.0
12627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12628 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12629 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12631 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12632 { echo "$as_me:$LINENO: result: yes" >&5
12633 echo "${ECHO_T}yes" >&6; }
12634 succeeded=yes
12636 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12637 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12638 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12639 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12640 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12642 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12643 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12644 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12645 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12646 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12647 else
12648 { echo "$as_me:$LINENO: result: no" >&5
12649 echo "${ECHO_T}no" >&6; }
12650 FONTCONFIG_CFLAGS=""
12651 FONTCONFIG_LIBS=""
12652 ## If we have a custom action on failure, don't print errors, but
12653 ## do set a variable so people can do so.
12654 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12660 else
12661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12666 if test $succeeded = yes; then
12667 HAVE_FC=yes
12668 else
12669 HAVE_FC=no
12672 test "${HAVE_FC}" = "no" && with_freetype=no
12674 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12675 HAVE_XFT=maybe
12676 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12677 with_xft="no";
12679 if test "x${with_xft}" != "xno"; then
12682 succeeded=no
12684 # Extract the first word of "pkg-config", so it can be a program name with args.
12685 set dummy pkg-config; ac_word=$2
12686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12688 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691 case $PKG_CONFIG in
12692 [\\/]* | ?:[\\/]*)
12693 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12703 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12705 break 2
12707 done
12708 done
12709 IFS=$as_save_IFS
12711 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12713 esac
12715 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12716 if test -n "$PKG_CONFIG"; then
12717 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12718 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12719 else
12720 { echo "$as_me:$LINENO: result: no" >&5
12721 echo "${ECHO_T}no" >&6; }
12726 if test "$PKG_CONFIG" = "no" ; then
12727 HAVE_XFT=no
12728 else
12729 PKG_CONFIG_MIN_VERSION=0.9.0
12730 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12731 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12732 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12734 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12735 { echo "$as_me:$LINENO: result: yes" >&5
12736 echo "${ECHO_T}yes" >&6; }
12737 succeeded=yes
12739 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12740 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12741 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12742 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12743 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12745 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12746 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12747 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12748 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12749 echo "${ECHO_T}$XFT_LIBS" >&6; }
12750 else
12751 { echo "$as_me:$LINENO: result: no" >&5
12752 echo "${ECHO_T}no" >&6; }
12753 XFT_CFLAGS=""
12754 XFT_LIBS=""
12755 ## If we have a custom action on failure, don't print errors, but
12756 ## do set a variable so people can do so.
12757 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12763 else
12764 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12765 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12769 if test $succeeded = yes; then
12771 else
12772 HAVE_XFT=no
12775 if test "$HAVE_XFT" != no; then
12776 OLD_CPPFLAGS="$CPPFLAGS"
12777 OLD_CFLAGS="$CFLAGS"
12778 OLD_LIBS="$LIBS"
12779 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12780 CFLAGS="$CFLAGS $XFT_CFLAGS"
12781 LIBS="$XFT_LIBS $LIBS"
12782 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12783 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12784 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12785 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12789 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12790 else
12791 # Is the header compilable?
12792 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12793 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 #include <X11/Xft/Xft.h>
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (ac_try="$ac_compile"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.$ac_objext; then
12820 ac_header_compiler=yes
12821 else
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_header_compiler=no
12828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12830 echo "${ECHO_T}$ac_header_compiler" >&6; }
12832 # Is the header present?
12833 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12834 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12835 cat >conftest.$ac_ext <<_ACEOF
12836 /* confdefs.h. */
12837 _ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 #include <X11/Xft/Xft.h>
12842 _ACEOF
12843 if { (ac_try="$ac_cpp conftest.$ac_ext"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847 esac
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } >/dev/null && {
12856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 }; then
12859 ac_header_preproc=yes
12860 else
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_preproc=no
12867 rm -f conftest.err conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12869 echo "${ECHO_T}$ac_header_preproc" >&6; }
12871 # So? What about this header?
12872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12873 yes:no: )
12874 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12875 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12877 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12878 ac_header_preproc=yes
12880 no:yes:* )
12881 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12882 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12883 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12884 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12885 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12886 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12888 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12890 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12892 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12895 esac
12896 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12897 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12898 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12903 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12904 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12907 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12908 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12909 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12910 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 ac_check_lib_save_LIBS=$LIBS
12914 LIBS="-lXft $XFT_LIBS $LIBS"
12915 cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h. */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12922 /* Override any GCC internal prototype to avoid an error.
12923 Use char because int might match the return type of a GCC
12924 builtin and then its argument prototype would still apply. */
12925 #ifdef __cplusplus
12926 extern "C"
12927 #endif
12928 char XftFontOpen ();
12930 main ()
12932 return XftFontOpen ();
12934 return 0;
12936 _ACEOF
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (ac_try="$ac_link"
12939 case "(($ac_try" in
12940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941 *) ac_try_echo=$ac_try;;
12942 esac
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944 (eval "$ac_link") 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } && {
12951 test -z "$ac_c_werror_flag" ||
12952 test ! -s conftest.err
12953 } && test -s conftest$ac_exeext &&
12954 $as_test_x conftest$ac_exeext; then
12955 ac_cv_lib_Xft_XftFontOpen=yes
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 ac_cv_lib_Xft_XftFontOpen=no
12963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12964 conftest$ac_exeext conftest.$ac_ext
12965 LIBS=$ac_check_lib_save_LIBS
12967 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12968 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12969 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12970 HAVE_XFT=yes
12977 if test "${HAVE_XFT}" = "yes"; then
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_XFT 1
12981 _ACEOF
12984 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12985 else
12986 CPPFLAGS="$OLD_CPPFLAGS"
12987 CFLAGS="$OLD_CFLAGS"
12988 LIBS="$OLD_LIBS"
12989 fi # "${HAVE_XFT}" = "yes"
12990 fi # "$HAVE_XFT" != no
12991 fi # "x${with_xft}" != "xno"
12993 if test "$HAVE_XFT" != "yes"; then
12994 HAVE_XFT=no
12998 HAVE_FREETYPE=no
12999 ### Use -lfreetype if available, unless `--with-freetype=no'.
13000 if test "${HAVE_XFT}" = "yes"; then
13001 HAVE_FREETYPE=yes
13002 FONTCONFIG_CFLAGS=
13003 FONTCONFIG_LIBS=
13004 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
13007 succeeded=no
13009 # Extract the first word of "pkg-config", so it can be a program name with args.
13010 set dummy pkg-config; ac_word=$2
13011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13013 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016 case $PKG_CONFIG in
13017 [\\/]* | ?:[\\/]*)
13018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022 for as_dir in $PATH
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13032 done
13033 done
13034 IFS=$as_save_IFS
13036 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13038 esac
13040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13041 if test -n "$PKG_CONFIG"; then
13042 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13043 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13044 else
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13051 if test "$PKG_CONFIG" = "no" ; then
13052 HAVE_FREETYPE=no
13053 else
13054 PKG_CONFIG_MIN_VERSION=0.9.0
13055 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13056 { echo "$as_me:$LINENO: checking for freetype2" >&5
13057 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13059 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13060 { echo "$as_me:$LINENO: result: yes" >&5
13061 echo "${ECHO_T}yes" >&6; }
13062 succeeded=yes
13064 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13065 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13066 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13067 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13068 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13070 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13071 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13072 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13073 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13074 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13075 else
13076 { echo "$as_me:$LINENO: result: no" >&5
13077 echo "${ECHO_T}no" >&6; }
13078 FREETYPE_CFLAGS=""
13079 FREETYPE_LIBS=""
13080 ## If we have a custom action on failure, don't print errors, but
13081 ## do set a variable so people can do so.
13082 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13088 else
13089 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13090 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13094 if test $succeeded = yes; then
13095 HAVE_FREETYPE=yes
13096 else
13097 HAVE_FREETYPE=no
13102 HAVE_LIBOTF=no
13103 if test "${HAVE_FREETYPE}" = "yes"; then
13105 cat >>confdefs.h <<\_ACEOF
13106 #define HAVE_FREETYPE 1
13107 _ACEOF
13109 if test "${with_libotf}" != "no"; then
13111 succeeded=no
13113 # Extract the first word of "pkg-config", so it can be a program name with args.
13114 set dummy pkg-config; ac_word=$2
13115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 case $PKG_CONFIG in
13121 [\\/]* | ?:[\\/]*)
13122 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 for as_dir in $PATH
13128 IFS=$as_save_IFS
13129 test -z "$as_dir" && as_dir=.
13130 for ac_exec_ext in '' $ac_executable_extensions; do
13131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13132 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 break 2
13136 done
13137 done
13138 IFS=$as_save_IFS
13140 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13142 esac
13144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13145 if test -n "$PKG_CONFIG"; then
13146 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13147 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13148 else
13149 { echo "$as_me:$LINENO: result: no" >&5
13150 echo "${ECHO_T}no" >&6; }
13155 if test "$PKG_CONFIG" = "no" ; then
13156 HAVE_LIBOTF=no
13157 else
13158 PKG_CONFIG_MIN_VERSION=0.9.0
13159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13160 { echo "$as_me:$LINENO: checking for libotf" >&5
13161 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13163 if $PKG_CONFIG --exists "libotf" 2>&5; then
13164 { echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6; }
13166 succeeded=yes
13168 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13169 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13170 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13171 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13172 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13174 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13175 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13176 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13177 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13178 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13179 else
13180 { echo "$as_me:$LINENO: result: no" >&5
13181 echo "${ECHO_T}no" >&6; }
13182 LIBOTF_CFLAGS=""
13183 LIBOTF_LIBS=""
13184 ## If we have a custom action on failure, don't print errors, but
13185 ## do set a variable so people can do so.
13186 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13192 else
13193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13198 if test $succeeded = yes; then
13199 HAVE_LIBOTF=yes
13200 else
13201 HAVE_LIBOTF=no
13204 if test "$HAVE_LIBOTF" = "yes"; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_LIBOTF 1
13208 _ACEOF
13214 HAVE_M17N_FLT=no
13215 if test "${HAVE_LIBOTF}" = yes; then
13216 if test "${with_m17n_flt}" != "no"; then
13218 succeeded=no
13220 # Extract the first word of "pkg-config", so it can be a program name with args.
13221 set dummy pkg-config; ac_word=$2
13222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13224 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227 case $PKG_CONFIG in
13228 [\\/]* | ?:[\\/]*)
13229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13247 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13249 esac
13251 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13252 if test -n "$PKG_CONFIG"; then
13253 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13254 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13255 else
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13262 if test "$PKG_CONFIG" = "no" ; then
13263 HAVE_M17N_FLT=no
13264 else
13265 PKG_CONFIG_MIN_VERSION=0.9.0
13266 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13267 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13268 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13270 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13271 { echo "$as_me:$LINENO: result: yes" >&5
13272 echo "${ECHO_T}yes" >&6; }
13273 succeeded=yes
13275 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13276 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13277 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13278 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13279 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13281 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13282 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13283 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13284 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13285 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13286 else
13287 { echo "$as_me:$LINENO: result: no" >&5
13288 echo "${ECHO_T}no" >&6; }
13289 M17N_FLT_CFLAGS=""
13290 M17N_FLT_LIBS=""
13291 ## If we have a custom action on failure, don't print errors, but
13292 ## do set a variable so people can do so.
13293 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13299 else
13300 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13301 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13305 if test $succeeded = yes; then
13306 HAVE_M17N_FLT=yes
13307 else
13308 HAVE_M17N_FLT=no
13311 if test "$HAVE_M17N_FLT" = "yes"; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_M17N_FLT 1
13315 _ACEOF
13330 ### End of font-backend section.
13332 ### Use -lXpm if available, unless `--with-xpm=no'.
13333 HAVE_XPM=no
13334 if test "${HAVE_X11}" = "yes"; then
13335 if test "${with_xpm}" != "no"; then
13336 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13337 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13338 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13343 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13344 else
13345 # Is the header compilable?
13346 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13347 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13348 cat >conftest.$ac_ext <<_ACEOF
13349 /* confdefs.h. */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13355 #include <X11/xpm.h>
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (ac_try="$ac_compile"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest.$ac_objext; then
13374 ac_header_compiler=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ac_header_compiler=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13384 echo "${ECHO_T}$ac_header_compiler" >&6; }
13386 # Is the header present?
13387 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13388 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h. */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13395 #include <X11/xpm.h>
13396 _ACEOF
13397 if { (ac_try="$ac_cpp conftest.$ac_ext"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401 esac
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } >/dev/null && {
13410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13411 test ! -s conftest.err
13412 }; then
13413 ac_header_preproc=yes
13414 else
13415 echo "$as_me: failed program was:" >&5
13416 sed 's/^/| /' conftest.$ac_ext >&5
13418 ac_header_preproc=no
13421 rm -f conftest.err conftest.$ac_ext
13422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13423 echo "${ECHO_T}$ac_header_preproc" >&6; }
13425 # So? What about this header?
13426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13427 yes:no: )
13428 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13429 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13430 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13431 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13432 ac_header_preproc=yes
13434 no:yes:* )
13435 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13436 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13437 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13438 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13439 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13440 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13442 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13444 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13445 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13446 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13449 esac
13450 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13451 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13452 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454 else
13455 ac_cv_header_X11_xpm_h=$ac_header_preproc
13457 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13458 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13461 if test $ac_cv_header_X11_xpm_h = yes; then
13462 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13463 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13464 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-lXpm -lX11 $LIBS"
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h. */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13476 /* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13479 #ifdef __cplusplus
13480 extern "C"
13481 #endif
13482 char XpmReadFileToPixmap ();
13484 main ()
13486 return XpmReadFileToPixmap ();
13488 return 0;
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498 (eval "$ac_link") 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest$ac_exeext &&
13508 $as_test_x conftest$ac_exeext; then
13509 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13510 else
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13521 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13522 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13523 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13524 HAVE_XPM=yes
13530 if test "${HAVE_XPM}" = "yes"; then
13531 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13532 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h. */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 #include "X11/xpm.h"
13540 #ifndef XpmReturnAllocPixels
13541 no_return_alloc_pixels
13542 #endif
13544 _ACEOF
13545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13546 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13547 HAVE_XPM=no
13548 else
13549 HAVE_XPM=yes
13551 rm -f conftest*
13554 if test "${HAVE_XPM}" = "yes"; then
13555 { echo "$as_me:$LINENO: result: yes" >&5
13556 echo "${ECHO_T}yes" >&6; }
13557 else
13558 { echo "$as_me:$LINENO: result: no" >&5
13559 echo "${ECHO_T}no" >&6; }
13564 if test "${HAVE_XPM}" = "yes"; then
13566 cat >>confdefs.h <<\_ACEOF
13567 #define HAVE_XPM 1
13568 _ACEOF
13573 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13574 HAVE_JPEG=no
13575 if test "${HAVE_X11}" = "yes"; then
13576 if test "${with_jpeg}" != "no"; then
13577 if test "${ac_cv_header_jerror_h+set}" = set; then
13578 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13579 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13580 if test "${ac_cv_header_jerror_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13584 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13585 else
13586 # Is the header compilable?
13587 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13588 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13589 cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h. */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13596 #include <jerror.h>
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (ac_try="$ac_compile"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_compile") 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } && {
13612 test -z "$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 } && test -s conftest.$ac_objext; then
13615 ac_header_compiler=yes
13616 else
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13620 ac_header_compiler=no
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13625 echo "${ECHO_T}$ac_header_compiler" >&6; }
13627 # Is the header present?
13628 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13629 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <jerror.h>
13637 _ACEOF
13638 if { (ac_try="$ac_cpp conftest.$ac_ext"
13639 case "(($ac_try" in
13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641 *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13645 ac_status=$?
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } >/dev/null && {
13651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 }; then
13654 ac_header_preproc=yes
13655 else
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_header_preproc=no
13662 rm -f conftest.err conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13664 echo "${ECHO_T}$ac_header_preproc" >&6; }
13666 # So? What about this header?
13667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13668 yes:no: )
13669 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13670 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13671 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13672 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13673 ac_header_preproc=yes
13675 no:yes:* )
13676 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13677 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13679 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13681 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13682 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13683 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13685 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13687 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13690 esac
13691 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13692 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13693 if test "${ac_cv_header_jerror_h+set}" = set; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 else
13696 ac_cv_header_jerror_h=$ac_header_preproc
13698 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13699 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13702 if test $ac_cv_header_jerror_h = yes; then
13703 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13704 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13705 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708 ac_check_lib_save_LIBS=$LIBS
13709 LIBS="-ljpeg $LIBS"
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 /* Override any GCC internal prototype to avoid an error.
13718 Use char because int might match the return type of a GCC
13719 builtin and then its argument prototype would still apply. */
13720 #ifdef __cplusplus
13721 extern "C"
13722 #endif
13723 char jpeg_destroy_compress ();
13725 main ()
13727 return jpeg_destroy_compress ();
13729 return 0;
13731 _ACEOF
13732 rm -f conftest.$ac_objext conftest$ac_exeext
13733 if { (ac_try="$ac_link"
13734 case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13737 esac
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_link") 2>conftest.er1
13740 ac_status=$?
13741 grep -v '^ *+' conftest.er1 >conftest.err
13742 rm -f conftest.er1
13743 cat conftest.err >&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest$ac_exeext &&
13749 $as_test_x conftest$ac_exeext; then
13750 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13751 else
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13763 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13764 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13765 HAVE_JPEG=yes
13774 if test "${HAVE_JPEG}" = "yes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define HAVE_JPEG 1
13777 _ACEOF
13779 cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785 #include <jpeglib.h>
13786 version=JPEG_LIB_VERSION
13788 _ACEOF
13789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_JPEG 1
13793 _ACEOF
13795 else
13796 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13797 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13798 HAVE_JPEG=no
13800 rm -f conftest*
13805 ### Use -lpng if available, unless `--with-png=no'.
13806 HAVE_PNG=no
13807 if test "${HAVE_X11}" = "yes"; then
13808 if test "${with_png}" != "no"; then
13809 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13810 # in /usr/include/libpng.
13813 for ac_header in png.h libpng/png.h
13815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 ac_res=`eval echo '${'$as_ac_Header'}'`
13823 { echo "$as_me:$LINENO: result: $ac_res" >&5
13824 echo "${ECHO_T}$ac_res" >&6; }
13825 else
13826 # Is the header compilable?
13827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h. */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 $ac_includes_default
13836 #include <$ac_header>
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (ac_try="$ac_compile"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_compile") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest.$ac_objext; then
13855 ac_header_compiler=yes
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 ac_header_compiler=no
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13865 echo "${ECHO_T}$ac_header_compiler" >&6; }
13867 # Is the header present?
13868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <$ac_header>
13877 _ACEOF
13878 if { (ac_try="$ac_cpp conftest.$ac_ext"
13879 case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } >/dev/null && {
13891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 }; then
13894 ac_header_preproc=yes
13895 else
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_header_preproc=no
13902 rm -f conftest.err conftest.$ac_ext
13903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13904 echo "${ECHO_T}$ac_header_preproc" >&6; }
13906 # So? What about this header?
13907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13908 yes:no: )
13909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13913 ac_header_preproc=yes
13915 no:yes:* )
13916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13930 esac
13931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936 eval "$as_ac_Header=\$ac_header_preproc"
13938 ac_res=`eval echo '${'$as_ac_Header'}'`
13939 { echo "$as_me:$LINENO: result: $ac_res" >&5
13940 echo "${ECHO_T}$ac_res" >&6; }
13943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13944 cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13946 _ACEOF
13950 done
13952 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13953 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13954 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13955 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958 ac_check_lib_save_LIBS=$LIBS
13959 LIBS="-lpng -lz -lm $LIBS"
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13967 /* Override any GCC internal prototype to avoid an error.
13968 Use char because int might match the return type of a GCC
13969 builtin and then its argument prototype would still apply. */
13970 #ifdef __cplusplus
13971 extern "C"
13972 #endif
13973 char png_get_channels ();
13975 main ()
13977 return png_get_channels ();
13979 return 0;
13981 _ACEOF
13982 rm -f conftest.$ac_objext conftest$ac_exeext
13983 if { (ac_try="$ac_link"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13987 esac
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_link") 2>conftest.er1
13990 ac_status=$?
13991 grep -v '^ *+' conftest.er1 >conftest.err
13992 rm -f conftest.er1
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } && {
13996 test -z "$ac_c_werror_flag" ||
13997 test ! -s conftest.err
13998 } && test -s conftest$ac_exeext &&
13999 $as_test_x conftest$ac_exeext; then
14000 ac_cv_lib_png_png_get_channels=yes
14001 else
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_lib_png_png_get_channels=no
14008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14013 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14014 if test $ac_cv_lib_png_png_get_channels = yes; then
14015 HAVE_PNG=yes
14021 if test "${HAVE_PNG}" = "yes"; then
14023 cat >>confdefs.h <<\_ACEOF
14024 #define HAVE_PNG 1
14025 _ACEOF
14030 ### Use -ltiff if available, unless `--with-tiff=no'.
14031 HAVE_TIFF=no
14032 if test "${HAVE_X11}" = "yes"; then
14033 if test "${with_tiff}" != "no"; then
14034 if test "${ac_cv_header_tiffio_h+set}" = set; then
14035 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14036 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_tiffio_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14041 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14042 else
14043 # Is the header compilable?
14044 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14045 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14047 /* confdefs.h. */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 $ac_includes_default
14053 #include <tiffio.h>
14054 _ACEOF
14055 rm -f conftest.$ac_objext
14056 if { (ac_try="$ac_compile"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_compile") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } && {
14069 test -z "$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 } && test -s conftest.$ac_objext; then
14072 ac_header_compiler=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_header_compiler=no
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14082 echo "${ECHO_T}$ac_header_compiler" >&6; }
14084 # Is the header present?
14085 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14086 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14093 #include <tiffio.h>
14094 _ACEOF
14095 if { (ac_try="$ac_cpp conftest.$ac_ext"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } >/dev/null && {
14108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 }; then
14111 ac_header_preproc=yes
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_header_preproc=no
14119 rm -f conftest.err conftest.$ac_ext
14120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14121 echo "${ECHO_T}$ac_header_preproc" >&6; }
14123 # So? What about this header?
14124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14125 yes:no: )
14126 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14127 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14129 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14130 ac_header_preproc=yes
14132 no:yes:* )
14133 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14134 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14136 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14138 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14140 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14142 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14144 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14147 esac
14148 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14149 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_tiffio_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153 ac_cv_header_tiffio_h=$ac_header_preproc
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14159 if test $ac_cv_header_tiffio_h = yes; then
14160 tifflibs="-lz -lm"
14161 # At least one tiff package requires the jpeg library.
14162 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14163 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14164 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14165 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168 ac_check_lib_save_LIBS=$LIBS
14169 LIBS="-ltiff $tifflibs $LIBS"
14170 cat >conftest.$ac_ext <<_ACEOF
14171 /* confdefs.h. */
14172 _ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char TIFFGetVersion ();
14185 main ()
14187 return TIFFGetVersion ();
14189 return 0;
14191 _ACEOF
14192 rm -f conftest.$ac_objext conftest$ac_exeext
14193 if { (ac_try="$ac_link"
14194 case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197 esac
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_link") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest$ac_exeext &&
14209 $as_test_x conftest$ac_exeext; then
14210 ac_cv_lib_tiff_TIFFGetVersion=yes
14211 else
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_lib_tiff_TIFFGetVersion=no
14218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14219 conftest$ac_exeext conftest.$ac_ext
14220 LIBS=$ac_check_lib_save_LIBS
14222 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14223 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14224 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14225 HAVE_TIFF=yes
14233 if test "${HAVE_TIFF}" = "yes"; then
14235 cat >>confdefs.h <<\_ACEOF
14236 #define HAVE_TIFF 1
14237 _ACEOF
14242 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14243 HAVE_GIF=no
14244 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14245 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14246 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14247 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14248 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14252 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14253 else
14254 # Is the header compilable?
14255 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14256 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14257 cat >conftest.$ac_ext <<_ACEOF
14258 /* confdefs.h. */
14259 _ACEOF
14260 cat confdefs.h >>conftest.$ac_ext
14261 cat >>conftest.$ac_ext <<_ACEOF
14262 /* end confdefs.h. */
14263 $ac_includes_default
14264 #include <gif_lib.h>
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (ac_try="$ac_compile"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_compile") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } && {
14280 test -z "$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 } && test -s conftest.$ac_objext; then
14283 ac_header_compiler=yes
14284 else
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ac_header_compiler=no
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14293 echo "${ECHO_T}$ac_header_compiler" >&6; }
14295 # Is the header present?
14296 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14297 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14298 cat >conftest.$ac_ext <<_ACEOF
14299 /* confdefs.h. */
14300 _ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14304 #include <gif_lib.h>
14305 _ACEOF
14306 if { (ac_try="$ac_cpp conftest.$ac_ext"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310 esac
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } >/dev/null && {
14319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 }; then
14322 ac_header_preproc=yes
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_header_preproc=no
14330 rm -f conftest.err conftest.$ac_ext
14331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14332 echo "${ECHO_T}$ac_header_preproc" >&6; }
14334 # So? What about this header?
14335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14336 yes:no: )
14337 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14338 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14339 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14340 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14341 ac_header_preproc=yes
14343 no:yes:* )
14344 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14345 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14347 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14349 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14351 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14353 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14355 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14358 esac
14359 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14360 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14361 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 ac_cv_header_gif_lib_h=$ac_header_preproc
14366 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14367 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14370 if test $ac_cv_header_gif_lib_h = yes; then
14371 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14372 # Earlier versions can crash Emacs.
14373 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14374 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14375 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14376 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 else
14378 ac_check_lib_save_LIBS=$LIBS
14379 LIBS="-lgif $LIBS"
14380 cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h. */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 char EGifPutExtensionLast ();
14395 main ()
14397 return EGifPutExtensionLast ();
14399 return 0;
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406 *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409 (eval "$ac_link") 2>conftest.er1
14410 ac_status=$?
14411 grep -v '^ *+' conftest.er1 >conftest.err
14412 rm -f conftest.er1
14413 cat conftest.err >&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } && {
14416 test -z "$ac_c_werror_flag" ||
14417 test ! -s conftest.err
14418 } && test -s conftest$ac_exeext &&
14419 $as_test_x conftest$ac_exeext; then
14420 ac_cv_lib_gif_EGifPutExtensionLast=yes
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 ac_cv_lib_gif_EGifPutExtensionLast=no
14428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14429 conftest$ac_exeext conftest.$ac_ext
14430 LIBS=$ac_check_lib_save_LIBS
14432 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14433 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14434 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14435 HAVE_GIF=yes
14436 else
14437 try_libungif=yes
14444 if test "$HAVE_GIF" = yes; then
14445 ac_gif_lib_name="-lgif"
14448 # If gif_lib.h but no libgif, try libungif.
14449 if test x"$try_libungif" = xyes; then
14450 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14451 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lungif $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_ungif_EGifPutExtensionLast=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_cv_lib_ungif_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_ungif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14512 HAVE_GIF=yes
14516 if test "$HAVE_GIF" = yes; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define LIBGIF -lungif
14520 _ACEOF
14522 ac_gif_lib_name="-lungif"
14526 if test "${HAVE_GIF}" = "yes"; then
14528 cat >>confdefs.h <<\_ACEOF
14529 #define HAVE_GIF 1
14530 _ACEOF
14535 if test "${HAVE_X11}" = "yes"; then
14536 MISSING=""
14537 WITH_NO=""
14538 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14539 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14540 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14541 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14542 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14543 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14544 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14545 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14546 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14547 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14549 if test "X${MISSING}" != X; then
14550 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14551 $MISSING
14552 Maybe some development libraries/packages are missing?
14553 If you don't want to link with them give
14554 $WITH_NO
14555 as options to configure" >&5
14556 echo "$as_me: error: The following required libraries were not found:
14557 $MISSING
14558 Maybe some development libraries/packages are missing?
14559 If you don't want to link with them give
14560 $WITH_NO
14561 as options to configure" >&2;}
14562 { (exit 1); exit 1; }; }
14566 ### Use -lgpm if available, unless `--with-gpm=no'.
14567 HAVE_GPM=no
14568 if test "${with_gpm}" != "no"; then
14569 if test "${ac_cv_header_gpm_h+set}" = set; then
14570 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14571 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14572 if test "${ac_cv_header_gpm_h+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14576 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14577 else
14578 # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14580 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <gpm.h>
14589 _ACEOF
14590 rm -f conftest.$ac_objext
14591 if { (ac_try="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_header_compiler=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_header_compiler=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14617 echo "${ECHO_T}$ac_header_compiler" >&6; }
14619 # Is the header present?
14620 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14621 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <gpm.h>
14629 _ACEOF
14630 if { (ac_try="$ac_cpp conftest.$ac_ext"
14631 case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } >/dev/null && {
14643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 }; then
14646 ac_header_preproc=yes
14647 else
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14651 ac_header_preproc=no
14654 rm -f conftest.err conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658 # So? What about this header?
14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14660 yes:no: )
14661 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14662 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14664 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14665 ac_header_preproc=yes
14667 no:yes:* )
14668 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14669 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14671 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14673 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14675 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14677 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14679 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14682 esac
14683 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14684 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14685 if test "${ac_cv_header_gpm_h+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 else
14688 ac_cv_header_gpm_h=$ac_header_preproc
14690 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14691 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14694 if test $ac_cv_header_gpm_h = yes; then
14695 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14696 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14697 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 else
14700 ac_check_lib_save_LIBS=$LIBS
14701 LIBS="-lgpm $LIBS"
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14709 /* Override any GCC internal prototype to avoid an error.
14710 Use char because int might match the return type of a GCC
14711 builtin and then its argument prototype would still apply. */
14712 #ifdef __cplusplus
14713 extern "C"
14714 #endif
14715 char Gpm_Open ();
14717 main ()
14719 return Gpm_Open ();
14721 return 0;
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (ac_try="$ac_link"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_link") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest$ac_exeext &&
14741 $as_test_x conftest$ac_exeext; then
14742 ac_cv_lib_gpm_Gpm_Open=yes
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_cv_lib_gpm_Gpm_Open=no
14750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14751 conftest$ac_exeext conftest.$ac_ext
14752 LIBS=$ac_check_lib_save_LIBS
14754 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14755 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14756 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14757 HAVE_GPM=yes
14765 if test "${HAVE_GPM}" = "yes"; then
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_GPM 1
14769 _ACEOF
14773 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14774 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14775 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14776 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14780 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14781 else
14782 # Is the header compilable?
14783 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14784 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14791 $ac_includes_default
14792 #include <malloc/malloc.h>
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_compile") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 } && test -s conftest.$ac_objext; then
14811 ac_header_compiler=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14825 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <malloc/malloc.h>
14833 _ACEOF
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } >/dev/null && {
14847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 }; then
14850 ac_header_preproc=yes
14851 else
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_header_preproc=no
14858 rm -f conftest.err conftest.$ac_ext
14859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14860 echo "${ECHO_T}$ac_header_preproc" >&6; }
14862 # So? What about this header?
14863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14864 yes:no: )
14865 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14866 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14868 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14869 ac_header_preproc=yes
14871 no:yes:* )
14872 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14873 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14875 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14876 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14877 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14879 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14881 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14883 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14886 esac
14887 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14888 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14889 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14894 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14895 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14898 if test $ac_cv_header_malloc_malloc_h = yes; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_MALLOC_MALLOC_H 1
14902 _ACEOF
14908 ### Use NeXTstep API to implement GUI.
14909 if test "${HAVE_NS}" = "yes"; then
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_NS 1
14913 _ACEOF
14915 if test "${NS_IMPL_COCOA}" = "yes"; then
14917 cat >>confdefs.h <<\_ACEOF
14918 #define NS_IMPL_COCOA 1
14919 _ACEOF
14921 GNU_OBJC_CFLAGS=
14922 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14924 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14926 cat >>confdefs.h <<\_ACEOF
14927 #define COCOA_EXPERIMENTAL_CTRL_G 1
14928 _ACEOF
14931 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define NS_IMPL_GNUSTEP 1
14935 _ACEOF
14937 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14939 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define NS_HAVE_NSINTEGER 1
14943 _ACEOF
14946 # We also have mouse menus.
14947 HAVE_MENUS=yes
14951 ### Use session management (-lSM -lICE) if available
14952 HAVE_X_SM=no
14953 if test "${HAVE_X11}" = "yes"; then
14954 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14955 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14956 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14957 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
14960 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14961 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14962 else
14963 # Is the header compilable?
14964 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14965 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14966 cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h. */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h. */
14972 $ac_includes_default
14973 #include <X11/SM/SMlib.h>
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14983 ac_status=$?
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 ac_header_compiler=yes
14993 else
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_header_compiler=no
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15002 echo "${ECHO_T}$ac_header_compiler" >&6; }
15004 # Is the header present?
15005 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15006 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h. */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <X11/SM/SMlib.h>
15014 _ACEOF
15015 if { (ac_try="$ac_cpp conftest.$ac_ext"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15019 esac
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } >/dev/null && {
15028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 }; then
15031 ac_header_preproc=yes
15032 else
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15045 yes:no: )
15046 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15052 no:yes:* )
15053 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15067 esac
15068 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15069 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15070 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15075 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15076 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15079 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15080 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15081 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15082 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 else
15085 ac_check_lib_save_LIBS=$LIBS
15086 LIBS="-lSM -lICE $LIBS"
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h. */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15094 /* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
15097 #ifdef __cplusplus
15098 extern "C"
15099 #endif
15100 char SmcOpenConnection ();
15102 main ()
15104 return SmcOpenConnection ();
15106 return 0;
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (ac_try="$ac_link"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116 (eval "$ac_link") 2>conftest.er1
15117 ac_status=$?
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } && {
15123 test -z "$ac_c_werror_flag" ||
15124 test ! -s conftest.err
15125 } && test -s conftest$ac_exeext &&
15126 $as_test_x conftest$ac_exeext; then
15127 ac_cv_lib_SM_SmcOpenConnection=yes
15128 else
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_SM_SmcOpenConnection=no
15135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15136 conftest$ac_exeext conftest.$ac_ext
15137 LIBS=$ac_check_lib_save_LIBS
15139 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15140 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15141 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15142 HAVE_X_SM=yes
15149 if test "${HAVE_X_SM}" = "yes"; then
15151 cat >>confdefs.h <<\_ACEOF
15152 #define HAVE_X_SM 1
15153 _ACEOF
15155 case "$LIBS" in
15156 *-lSM*) ;;
15157 *) LIBS="-lSM -lICE $LIBS" ;;
15158 esac
15162 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15163 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15164 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15165 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 else
15168 cat >conftest.$ac_ext <<_ACEOF
15169 /* confdefs.h. */
15170 _ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 #include <netdb.h>
15176 main ()
15178 return h_errno;
15180 return 0;
15182 _ACEOF
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15190 (eval "$ac_link") 2>conftest.er1
15191 ac_status=$?
15192 grep -v '^ *+' conftest.er1 >conftest.err
15193 rm -f conftest.er1
15194 cat conftest.err >&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest$ac_exeext &&
15200 $as_test_x conftest$ac_exeext; then
15201 emacs_cv_netdb_declares_h_errno=yes
15202 else
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 emacs_cv_netdb_declares_h_errno=no
15209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15210 conftest$ac_exeext conftest.$ac_ext
15212 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15213 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15214 if test $emacs_cv_netdb_declares_h_errno = yes; then
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_H_ERRNO 1
15218 _ACEOF
15222 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15223 # for constant arguments. Useless!
15224 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15225 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15226 if test "${ac_cv_working_alloca_h+set}" = set; then
15227 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 else
15229 cat >conftest.$ac_ext <<_ACEOF
15230 /* confdefs.h. */
15231 _ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15235 #include <alloca.h>
15237 main ()
15239 char *p = (char *) alloca (2 * sizeof (int));
15240 if (p) return 0;
15242 return 0;
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_link") 2>conftest.er1
15253 ac_status=$?
15254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } && {
15259 test -z "$ac_c_werror_flag" ||
15260 test ! -s conftest.err
15261 } && test -s conftest$ac_exeext &&
15262 $as_test_x conftest$ac_exeext; then
15263 ac_cv_working_alloca_h=yes
15264 else
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_working_alloca_h=no
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272 conftest$ac_exeext conftest.$ac_ext
15274 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15275 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15276 if test $ac_cv_working_alloca_h = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_ALLOCA_H 1
15280 _ACEOF
15284 { echo "$as_me:$LINENO: checking for alloca" >&5
15285 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15286 if test "${ac_cv_func_alloca_works+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 else
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #ifdef __GNUC__
15296 # define alloca __builtin_alloca
15297 #else
15298 # ifdef _MSC_VER
15299 # include <malloc.h>
15300 # define alloca _alloca
15301 # else
15302 # ifdef HAVE_ALLOCA_H
15303 # include <alloca.h>
15304 # else
15305 # ifdef _AIX
15306 #pragma alloca
15307 # else
15308 # ifndef alloca /* predefined by HP cc +Olibcalls */
15309 char *alloca ();
15310 # endif
15311 # endif
15312 # endif
15313 # endif
15314 #endif
15317 main ()
15319 char *p = (char *) alloca (1);
15320 if (p) return 0;
15322 return 0;
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 ac_cv_func_alloca_works=yes
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 ac_cv_func_alloca_works=no
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15354 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15355 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15357 if test $ac_cv_func_alloca_works = yes; then
15359 cat >>confdefs.h <<\_ACEOF
15360 #define HAVE_ALLOCA 1
15361 _ACEOF
15363 else
15364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15365 # that cause trouble. Some versions do not even contain alloca or
15366 # contain a buggy version. If you still want to use their alloca,
15367 # use ar to extract alloca.o from them instead of compiling alloca.c.
15369 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15371 cat >>confdefs.h <<\_ACEOF
15372 #define C_ALLOCA 1
15373 _ACEOF
15376 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15377 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15378 if test "${ac_cv_os_cray+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h. */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #if defined CRAY && ! defined CRAY2
15388 webecray
15389 #else
15390 wenotbecray
15391 #endif
15393 _ACEOF
15394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15395 $EGREP "webecray" >/dev/null 2>&1; then
15396 ac_cv_os_cray=yes
15397 else
15398 ac_cv_os_cray=no
15400 rm -f conftest*
15403 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15404 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15405 if test $ac_cv_os_cray = yes; then
15406 for ac_func in _getb67 GETB67 getb67; do
15407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413 cat >conftest.$ac_ext <<_ACEOF
15414 /* confdefs.h. */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15421 #define $ac_func innocuous_$ac_func
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func (); below.
15425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426 <limits.h> exists even on freestanding compilers. */
15428 #ifdef __STDC__
15429 # include <limits.h>
15430 #else
15431 # include <assert.h>
15432 #endif
15434 #undef $ac_func
15436 /* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15439 #ifdef __cplusplus
15440 extern "C"
15441 #endif
15442 char $ac_func ();
15443 /* The GNU C library defines this for functions which it implements
15444 to always fail with ENOSYS. Some functions are actually named
15445 something starting with __ and the normal name is an alias. */
15446 #if defined __stub_$ac_func || defined __stub___$ac_func
15447 choke me
15448 #endif
15451 main ()
15453 return $ac_func ();
15455 return 0;
15457 _ACEOF
15458 rm -f conftest.$ac_objext conftest$ac_exeext
15459 if { (ac_try="$ac_link"
15460 case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15463 esac
15464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15465 (eval "$ac_link") 2>conftest.er1
15466 ac_status=$?
15467 grep -v '^ *+' conftest.er1 >conftest.err
15468 rm -f conftest.er1
15469 cat conftest.err >&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } && {
15472 test -z "$ac_c_werror_flag" ||
15473 test ! -s conftest.err
15474 } && test -s conftest$ac_exeext &&
15475 $as_test_x conftest$ac_exeext; then
15476 eval "$as_ac_var=yes"
15477 else
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 eval "$as_ac_var=no"
15484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15485 conftest$ac_exeext conftest.$ac_ext
15487 ac_res=`eval echo '${'$as_ac_var'}'`
15488 { echo "$as_me:$LINENO: result: $ac_res" >&5
15489 echo "${ECHO_T}$ac_res" >&6; }
15490 if test `eval echo '${'$as_ac_var'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define CRAY_STACKSEG_END $ac_func
15494 _ACEOF
15496 break
15499 done
15502 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15503 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15504 if test "${ac_cv_c_stack_direction+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 if test "$cross_compiling" = yes; then
15508 ac_cv_c_stack_direction=0
15509 else
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 $ac_includes_default
15518 find_stack_direction ()
15520 static char *addr = 0;
15521 auto char dummy;
15522 if (addr == 0)
15524 addr = &dummy;
15525 return find_stack_direction ();
15527 else
15528 return (&dummy > addr) ? 1 : -1;
15532 main ()
15534 return find_stack_direction () < 0;
15536 _ACEOF
15537 rm -f conftest$ac_exeext
15538 if { (ac_try="$ac_link"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15542 esac
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_link") 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551 esac
15552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_cv_c_stack_direction=1
15558 else
15559 echo "$as_me: program exited with status $ac_status" >&5
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ( exit $ac_status )
15564 ac_cv_c_stack_direction=-1
15566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15572 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15574 cat >>confdefs.h <<_ACEOF
15575 #define STACK_DIRECTION $ac_cv_c_stack_direction
15576 _ACEOF
15582 if test x"$ac_cv_func_alloca_works" != xyes; then
15583 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15584 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15585 { (exit 1); exit 1; }; }
15588 # fmod, logb, and frexp are found in -lm on most systems.
15589 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15591 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15592 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15593 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 ac_check_lib_save_LIBS=$LIBS
15597 LIBS="-lm $LIBS"
15598 cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h. */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15605 /* Override any GCC internal prototype to avoid an error.
15606 Use char because int might match the return type of a GCC
15607 builtin and then its argument prototype would still apply. */
15608 #ifdef __cplusplus
15609 extern "C"
15610 #endif
15611 char sqrt ();
15613 main ()
15615 return sqrt ();
15617 return 0;
15619 _ACEOF
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (ac_try="$ac_link"
15622 case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625 esac
15626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_link") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext &&
15637 $as_test_x conftest$ac_exeext; then
15638 ac_cv_lib_m_sqrt=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15643 ac_cv_lib_m_sqrt=no
15646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15647 conftest$ac_exeext conftest.$ac_ext
15648 LIBS=$ac_check_lib_save_LIBS
15650 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15651 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15652 if test $ac_cv_lib_m_sqrt = yes; then
15653 cat >>confdefs.h <<_ACEOF
15654 #define HAVE_LIBM 1
15655 _ACEOF
15657 LIBS="-lm $LIBS"
15662 # Check for mail-locking functions in a "mail" library. Probably this should
15663 # have the same check as for liblockfile below.
15665 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15666 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15667 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15668 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 else
15670 ac_check_lib_save_LIBS=$LIBS
15671 LIBS="-lmail $LIBS"
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15679 /* Override any GCC internal prototype to avoid an error.
15680 Use char because int might match the return type of a GCC
15681 builtin and then its argument prototype would still apply. */
15682 #ifdef __cplusplus
15683 extern "C"
15684 #endif
15685 char maillock ();
15687 main ()
15689 return maillock ();
15691 return 0;
15693 _ACEOF
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (ac_try="$ac_link"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699 esac
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_link") 2>conftest.er1
15702 ac_status=$?
15703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } && {
15708 test -z "$ac_c_werror_flag" ||
15709 test ! -s conftest.err
15710 } && test -s conftest$ac_exeext &&
15711 $as_test_x conftest$ac_exeext; then
15712 ac_cv_lib_mail_maillock=yes
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 ac_cv_lib_mail_maillock=no
15720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15721 conftest$ac_exeext conftest.$ac_ext
15722 LIBS=$ac_check_lib_save_LIBS
15724 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15725 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15726 if test $ac_cv_lib_mail_maillock = yes; then
15727 cat >>confdefs.h <<_ACEOF
15728 #define HAVE_LIBMAIL 1
15729 _ACEOF
15731 LIBS="-lmail $LIBS"
15736 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15737 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-llockfile $LIBS"
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h. */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15750 /* Override any GCC internal prototype to avoid an error.
15751 Use char because int might match the return type of a GCC
15752 builtin and then its argument prototype would still apply. */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char maillock ();
15758 main ()
15760 return maillock ();
15762 return 0;
15764 _ACEOF
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_link") 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && {
15779 test -z "$ac_c_werror_flag" ||
15780 test ! -s conftest.err
15781 } && test -s conftest$ac_exeext &&
15782 $as_test_x conftest$ac_exeext; then
15783 ac_cv_lib_lockfile_maillock=yes
15784 else
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15788 ac_cv_lib_lockfile_maillock=no
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792 conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15795 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15796 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15797 if test $ac_cv_lib_lockfile_maillock = yes; then
15798 cat >>confdefs.h <<_ACEOF
15799 #define HAVE_LIBLOCKFILE 1
15800 _ACEOF
15802 LIBS="-llockfile $LIBS"
15806 # If we have the shared liblockfile, assume we must use it for mail
15807 # locking (e.g. Debian). If we couldn't link against liblockfile
15808 # (no liblockfile.a installed), ensure that we don't need to.
15809 if test "$ac_cv_lib_lockfile_maillock" = no; then
15810 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15811 set dummy liblockfile.so; ac_word=$2
15812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15814 if test "${ac_cv_prog_liblockfile+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817 if test -n "$liblockfile"; then
15818 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15819 else
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15822 for as_dir in $as_dummy
15824 IFS=$as_save_IFS
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15828 ac_cv_prog_liblockfile="yes"
15829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15830 break 2
15832 done
15833 done
15834 IFS=$as_save_IFS
15836 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15839 liblockfile=$ac_cv_prog_liblockfile
15840 if test -n "$liblockfile"; then
15841 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15842 echo "${ECHO_T}$liblockfile" >&6; }
15843 else
15844 { echo "$as_me:$LINENO: result: no" >&5
15845 echo "${ECHO_T}no" >&6; }
15849 if test $ac_cv_prog_liblockfile = yes; then
15850 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15851 This probably means that movemail could lose mail.
15852 There may be a \`development' package to install containing liblockfile." >&5
15853 echo "$as_me: error: Shared liblockfile found but can't link against it.
15854 This probably means that movemail could lose mail.
15855 There may be a \`development' package to install containing liblockfile." >&2;}
15856 { (exit 1); exit 1; }; }
15857 else :
15861 for ac_func in touchlock
15863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869 cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h. */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15877 #define $ac_func innocuous_$ac_func
15879 /* System header to define __stub macros and hopefully few prototypes,
15880 which can conflict with char $ac_func (); below.
15881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 <limits.h> exists even on freestanding compilers. */
15884 #ifdef __STDC__
15885 # include <limits.h>
15886 #else
15887 # include <assert.h>
15888 #endif
15890 #undef $ac_func
15892 /* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15895 #ifdef __cplusplus
15896 extern "C"
15897 #endif
15898 char $ac_func ();
15899 /* The GNU C library defines this for functions which it implements
15900 to always fail with ENOSYS. Some functions are actually named
15901 something starting with __ and the normal name is an alias. */
15902 #if defined __stub_$ac_func || defined __stub___$ac_func
15903 choke me
15904 #endif
15907 main ()
15909 return $ac_func ();
15911 return 0;
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
15922 ac_status=$?
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } && {
15928 test -z "$ac_c_werror_flag" ||
15929 test ! -s conftest.err
15930 } && test -s conftest$ac_exeext &&
15931 $as_test_x conftest$ac_exeext; then
15932 eval "$as_ac_var=yes"
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 eval "$as_ac_var=no"
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 ac_res=`eval echo '${'$as_ac_var'}'`
15944 { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15946 if test `eval echo '${'$as_ac_var'}'` = yes; then
15947 cat >>confdefs.h <<_ACEOF
15948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15949 _ACEOF
15952 done
15955 for ac_header in maillock.h
15957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15964 ac_res=`eval echo '${'$as_ac_Header'}'`
15965 { echo "$as_me:$LINENO: result: $ac_res" >&5
15966 echo "${ECHO_T}$ac_res" >&6; }
15967 else
15968 # Is the header compilable?
15969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h. */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h. */
15977 $ac_includes_default
15978 #include <$ac_header>
15979 _ACEOF
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_compile") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest.$ac_objext; then
15997 ac_header_compiler=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_compiler=no
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
16009 # Is the header present?
16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <$ac_header>
16019 _ACEOF
16020 if { (ac_try="$ac_cpp conftest.$ac_ext"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024 esac
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null && {
16033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 }; then
16036 ac_header_preproc=yes
16037 else
16038 echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16041 ac_header_preproc=no
16044 rm -f conftest.err conftest.$ac_ext
16045 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16046 echo "${ECHO_T}$ac_header_preproc" >&6; }
16048 # So? What about this header?
16049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16050 yes:no: )
16051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16055 ac_header_preproc=yes
16057 no:yes:* )
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16061 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16065 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16072 esac
16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 eval "$as_ac_Header=\$ac_header_preproc"
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16086 cat >>confdefs.h <<_ACEOF
16087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16088 _ACEOF
16092 done
16166 for ac_func in gethostname getdomainname dup2 \
16167 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16168 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16169 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16170 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16171 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16172 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16173 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16174 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16175 cfmakeraw cfsetspeed
16177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182 else
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h. */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191 #define $ac_func innocuous_$ac_func
16193 /* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16198 #ifdef __STDC__
16199 # include <limits.h>
16200 #else
16201 # include <assert.h>
16202 #endif
16204 #undef $ac_func
16206 /* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
16209 #ifdef __cplusplus
16210 extern "C"
16211 #endif
16212 char $ac_func ();
16213 /* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
16216 #if defined __stub_$ac_func || defined __stub___$ac_func
16217 choke me
16218 #endif
16221 main ()
16223 return $ac_func ();
16225 return 0;
16227 _ACEOF
16228 rm -f conftest.$ac_objext conftest$ac_exeext
16229 if { (ac_try="$ac_link"
16230 case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } && {
16242 test -z "$ac_c_werror_flag" ||
16243 test ! -s conftest.err
16244 } && test -s conftest$ac_exeext &&
16245 $as_test_x conftest$ac_exeext; then
16246 eval "$as_ac_var=yes"
16247 else
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 eval "$as_ac_var=no"
16254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16255 conftest$ac_exeext conftest.$ac_ext
16257 ac_res=`eval echo '${'$as_ac_var'}'`
16258 { echo "$as_me:$LINENO: result: $ac_res" >&5
16259 echo "${ECHO_T}$ac_res" >&6; }
16260 if test `eval echo '${'$as_ac_var'}'` = yes; then
16261 cat >>confdefs.h <<_ACEOF
16262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16263 _ACEOF
16266 done
16270 for ac_header in sys/un.h
16272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 ac_res=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281 echo "${ECHO_T}$ac_res" >&6; }
16282 else
16283 # Is the header compilable?
16284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286 cat >conftest.$ac_ext <<_ACEOF
16287 /* confdefs.h. */
16288 _ACEOF
16289 cat confdefs.h >>conftest.$ac_ext
16290 cat >>conftest.$ac_ext <<_ACEOF
16291 /* end confdefs.h. */
16292 $ac_includes_default
16293 #include <$ac_header>
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (ac_try="$ac_compile"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest.$ac_objext; then
16312 ac_header_compiler=yes
16313 else
16314 echo "$as_me: failed program was:" >&5
16315 sed 's/^/| /' conftest.$ac_ext >&5
16317 ac_header_compiler=no
16320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16322 echo "${ECHO_T}$ac_header_compiler" >&6; }
16324 # Is the header present?
16325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16328 /* confdefs.h. */
16329 _ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 #include <$ac_header>
16334 _ACEOF
16335 if { (ac_try="$ac_cpp conftest.$ac_ext"
16336 case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16342 ac_status=$?
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } >/dev/null && {
16348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16349 test ! -s conftest.err
16350 }; then
16351 ac_header_preproc=yes
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_header_preproc=no
16359 rm -f conftest.err conftest.$ac_ext
16360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16361 echo "${ECHO_T}$ac_header_preproc" >&6; }
16363 # So? What about this header?
16364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16365 yes:no: )
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16370 ac_header_preproc=yes
16372 no:yes:* )
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16387 esac
16388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393 eval "$as_ac_Header=\$ac_header_preproc"
16395 ac_res=`eval echo '${'$as_ac_Header'}'`
16396 { echo "$as_me:$LINENO: result: $ac_res" >&5
16397 echo "${ECHO_T}$ac_res" >&6; }
16400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16401 cat >>confdefs.h <<_ACEOF
16402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16403 _ACEOF
16407 done
16414 for ac_header in $ac_header_list
16416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16423 ac_res=`eval echo '${'$as_ac_Header'}'`
16424 { echo "$as_me:$LINENO: result: $ac_res" >&5
16425 echo "${ECHO_T}$ac_res" >&6; }
16426 else
16427 # Is the header compilable?
16428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h. */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16436 $ac_includes_default
16437 #include <$ac_header>
16438 _ACEOF
16439 rm -f conftest.$ac_objext
16440 if { (ac_try="$ac_compile"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_compile") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest.$ac_objext; then
16456 ac_header_compiler=yes
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 ac_header_compiler=no
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16466 echo "${ECHO_T}$ac_header_compiler" >&6; }
16468 # Is the header present?
16469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16472 /* confdefs.h. */
16473 _ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 #include <$ac_header>
16478 _ACEOF
16479 if { (ac_try="$ac_cpp conftest.$ac_ext"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16483 esac
16484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16486 ac_status=$?
16487 grep -v '^ *+' conftest.er1 >conftest.err
16488 rm -f conftest.er1
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } >/dev/null && {
16492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 }; then
16495 ac_header_preproc=yes
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 ac_header_preproc=no
16503 rm -f conftest.err conftest.$ac_ext
16504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16505 echo "${ECHO_T}$ac_header_preproc" >&6; }
16507 # So? What about this header?
16508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16509 yes:no: )
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16514 ac_header_preproc=yes
16516 no:yes:* )
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16531 esac
16532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 else
16537 eval "$as_ac_Header=\$ac_header_preproc"
16539 ac_res=`eval echo '${'$as_ac_Header'}'`
16540 { echo "$as_me:$LINENO: result: $ac_res" >&5
16541 echo "${ECHO_T}$ac_res" >&6; }
16544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16547 _ACEOF
16551 done
16561 for ac_func in $ac_func_list
16563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16577 #define $ac_func innocuous_$ac_func
16579 /* System header to define __stub macros and hopefully few prototypes,
16580 which can conflict with char $ac_func (); below.
16581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16582 <limits.h> exists even on freestanding compilers. */
16584 #ifdef __STDC__
16585 # include <limits.h>
16586 #else
16587 # include <assert.h>
16588 #endif
16590 #undef $ac_func
16592 /* Override any GCC internal prototype to avoid an error.
16593 Use char because int might match the return type of a GCC
16594 builtin and then its argument prototype would still apply. */
16595 #ifdef __cplusplus
16596 extern "C"
16597 #endif
16598 char $ac_func ();
16599 /* The GNU C library defines this for functions which it implements
16600 to always fail with ENOSYS. Some functions are actually named
16601 something starting with __ and the normal name is an alias. */
16602 #if defined __stub_$ac_func || defined __stub___$ac_func
16603 choke me
16604 #endif
16607 main ()
16609 return $ac_func ();
16611 return 0;
16613 _ACEOF
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_link") 2>conftest.er1
16622 ac_status=$?
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest$ac_exeext &&
16631 $as_test_x conftest$ac_exeext; then
16632 eval "$as_ac_var=yes"
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 eval "$as_ac_var=no"
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641 conftest$ac_exeext conftest.$ac_ext
16643 ac_res=`eval echo '${'$as_ac_var'}'`
16644 { echo "$as_me:$LINENO: result: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16646 if test `eval echo '${'$as_ac_var'}'` = yes; then
16647 cat >>confdefs.h <<_ACEOF
16648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16649 _ACEOF
16652 done
16670 { echo "$as_me:$LINENO: checking for working mktime" >&5
16671 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16672 if test "${ac_cv_func_working_mktime+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16674 else
16675 if test "$cross_compiling" = yes; then
16676 ac_cv_func_working_mktime=no
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 /* Test program from Paul Eggert and Tony Leneis. */
16685 #ifdef TIME_WITH_SYS_TIME
16686 # include <sys/time.h>
16687 # include <time.h>
16688 #else
16689 # ifdef HAVE_SYS_TIME_H
16690 # include <sys/time.h>
16691 # else
16692 # include <time.h>
16693 # endif
16694 #endif
16696 #include <limits.h>
16697 #include <stdlib.h>
16699 #ifdef HAVE_UNISTD_H
16700 # include <unistd.h>
16701 #endif
16703 #ifndef HAVE_ALARM
16704 # define alarm(X) /* empty */
16705 #endif
16707 /* Work around redefinition to rpl_putenv by other config tests. */
16708 #undef putenv
16710 static time_t time_t_max;
16711 static time_t time_t_min;
16713 /* Values we'll use to set the TZ environment variable. */
16714 static char *tz_strings[] = {
16715 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16716 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16718 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16720 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16721 Based on a problem report from Andreas Jaeger. */
16722 static int
16723 spring_forward_gap ()
16725 /* glibc (up to about 1998-10-07) failed this test. */
16726 struct tm tm;
16728 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16729 instead of "TZ=America/Vancouver" in order to detect the bug even
16730 on systems that don't support the Olson extension, or don't have the
16731 full zoneinfo tables installed. */
16732 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16734 tm.tm_year = 98;
16735 tm.tm_mon = 3;
16736 tm.tm_mday = 5;
16737 tm.tm_hour = 2;
16738 tm.tm_min = 0;
16739 tm.tm_sec = 0;
16740 tm.tm_isdst = -1;
16741 return mktime (&tm) != (time_t) -1;
16744 static int
16745 mktime_test1 (now)
16746 time_t now;
16748 struct tm *lt;
16749 return ! (lt = localtime (&now)) || mktime (lt) == now;
16752 static int
16753 mktime_test (now)
16754 time_t now;
16756 return (mktime_test1 (now)
16757 && mktime_test1 ((time_t) (time_t_max - now))
16758 && mktime_test1 ((time_t) (time_t_min + now)));
16761 static int
16762 irix_6_4_bug ()
16764 /* Based on code from Ariel Faigon. */
16765 struct tm tm;
16766 tm.tm_year = 96;
16767 tm.tm_mon = 3;
16768 tm.tm_mday = 0;
16769 tm.tm_hour = 0;
16770 tm.tm_min = 0;
16771 tm.tm_sec = 0;
16772 tm.tm_isdst = -1;
16773 mktime (&tm);
16774 return tm.tm_mon == 2 && tm.tm_mday == 31;
16777 static int
16778 bigtime_test (j)
16779 int j;
16781 struct tm tm;
16782 time_t now;
16783 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16784 now = mktime (&tm);
16785 if (now != (time_t) -1)
16787 struct tm *lt = localtime (&now);
16788 if (! (lt
16789 && lt->tm_year == tm.tm_year
16790 && lt->tm_mon == tm.tm_mon
16791 && lt->tm_mday == tm.tm_mday
16792 && lt->tm_hour == tm.tm_hour
16793 && lt->tm_min == tm.tm_min
16794 && lt->tm_sec == tm.tm_sec
16795 && lt->tm_yday == tm.tm_yday
16796 && lt->tm_wday == tm.tm_wday
16797 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16798 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16799 return 0;
16801 return 1;
16804 static int
16805 year_2050_test ()
16807 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16808 ignoring leap seconds. */
16809 unsigned long int answer = 2527315200UL;
16811 struct tm tm;
16812 time_t t;
16813 tm.tm_year = 2050 - 1900;
16814 tm.tm_mon = 2 - 1;
16815 tm.tm_mday = 1;
16816 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16817 tm.tm_isdst = -1;
16819 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16820 instead of "TZ=America/Vancouver" in order to detect the bug even
16821 on systems that don't support the Olson extension, or don't have the
16822 full zoneinfo tables installed. */
16823 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16825 t = mktime (&tm);
16827 /* Check that the result is either a failure, or close enough
16828 to the correct answer that we can assume the discrepancy is
16829 due to leap seconds. */
16830 return (t == (time_t) -1
16831 || (0 < t && answer - 120 <= t && t <= answer + 120));
16835 main ()
16837 time_t t, delta;
16838 int i, j;
16840 /* This test makes some buggy mktime implementations loop.
16841 Give up after 60 seconds; a mktime slower than that
16842 isn't worth using anyway. */
16843 alarm (60);
16845 for (;;)
16847 t = (time_t_max << 1) + 1;
16848 if (t <= time_t_max)
16849 break;
16850 time_t_max = t;
16852 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16854 delta = time_t_max / 997; /* a suitable prime number */
16855 for (i = 0; i < N_STRINGS; i++)
16857 if (tz_strings[i])
16858 putenv (tz_strings[i]);
16860 for (t = 0; t <= time_t_max - delta; t += delta)
16861 if (! mktime_test (t))
16862 return 1;
16863 if (! (mktime_test ((time_t) 1)
16864 && mktime_test ((time_t) (60 * 60))
16865 && mktime_test ((time_t) (60 * 60 * 24))))
16866 return 1;
16868 for (j = 1; ; j <<= 1)
16869 if (! bigtime_test (j))
16870 return 1;
16871 else if (INT_MAX / 2 < j)
16872 break;
16873 if (! bigtime_test (INT_MAX))
16874 return 1;
16876 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16878 _ACEOF
16879 rm -f conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16890 { (case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_cv_func_working_mktime=yes
16900 else
16901 echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ( exit $ac_status )
16906 ac_cv_func_working_mktime=no
16908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16914 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16915 if test $ac_cv_func_working_mktime = no; then
16916 case " $LIBOBJS " in
16917 *" mktime.$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16920 esac
16924 if test "$ac_cv_func_working_mktime" = no; then
16926 cat >>confdefs.h <<\_ACEOF
16927 #define BROKEN_MKTIME 1
16928 _ACEOF
16932 ac_have_func=no # yes means we've found a way to get the load average.
16934 # Make sure getloadavg.c is where it belongs, at configure-time.
16935 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16936 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16937 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16938 { (exit 1); exit 1; }; }
16940 ac_save_LIBS=$LIBS
16942 # Check for getloadavg, but be sure not to touch the cache variable.
16943 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16944 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16945 if test "${ac_cv_func_getloadavg+set}" = set; then
16946 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948 cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h. */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h. */
16954 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16956 #define getloadavg innocuous_getloadavg
16958 /* System header to define __stub macros and hopefully few prototypes,
16959 which can conflict with char getloadavg (); below.
16960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 <limits.h> exists even on freestanding compilers. */
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16969 #undef getloadavg
16971 /* Override any GCC internal prototype to avoid an error.
16972 Use char because int might match the return type of a GCC
16973 builtin and then its argument prototype would still apply. */
16974 #ifdef __cplusplus
16975 extern "C"
16976 #endif
16977 char getloadavg ();
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined __stub_getloadavg || defined __stub___getloadavg
16982 choke me
16983 #endif
16986 main ()
16988 return getloadavg ();
16990 return 0;
16992 _ACEOF
16993 rm -f conftest.$ac_objext conftest$ac_exeext
16994 if { (ac_try="$ac_link"
16995 case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998 esac
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest$ac_exeext &&
17010 $as_test_x conftest$ac_exeext; then
17011 ac_cv_func_getloadavg=yes
17012 else
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_cv_func_getloadavg=no
17019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17020 conftest$ac_exeext conftest.$ac_ext
17022 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17023 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17024 if test $ac_cv_func_getloadavg = yes; then
17025 exit 0
17026 else
17027 exit 1
17029 ) && ac_have_func=yes
17031 # On HPUX9, an unprivileged user can get load averages through this function.
17033 for ac_func in pstat_getdynamic
17035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041 cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17049 #define $ac_func innocuous_$ac_func
17051 /* System header to define __stub macros and hopefully few prototypes,
17052 which can conflict with char $ac_func (); below.
17053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054 <limits.h> exists even on freestanding compilers. */
17056 #ifdef __STDC__
17057 # include <limits.h>
17058 #else
17059 # include <assert.h>
17060 #endif
17062 #undef $ac_func
17064 /* Override any GCC internal prototype to avoid an error.
17065 Use char because int might match the return type of a GCC
17066 builtin and then its argument prototype would still apply. */
17067 #ifdef __cplusplus
17068 extern "C"
17069 #endif
17070 char $ac_func ();
17071 /* The GNU C library defines this for functions which it implements
17072 to always fail with ENOSYS. Some functions are actually named
17073 something starting with __ and the normal name is an alias. */
17074 #if defined __stub_$ac_func || defined __stub___$ac_func
17075 choke me
17076 #endif
17079 main ()
17081 return $ac_func ();
17083 return 0;
17085 _ACEOF
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091 esac
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } && {
17100 test -z "$ac_c_werror_flag" ||
17101 test ! -s conftest.err
17102 } && test -s conftest$ac_exeext &&
17103 $as_test_x conftest$ac_exeext; then
17104 eval "$as_ac_var=yes"
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17109 eval "$as_ac_var=no"
17112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17113 conftest$ac_exeext conftest.$ac_ext
17115 ac_res=`eval echo '${'$as_ac_var'}'`
17116 { echo "$as_me:$LINENO: result: $ac_res" >&5
17117 echo "${ECHO_T}$ac_res" >&6; }
17118 if test `eval echo '${'$as_ac_var'}'` = yes; then
17119 cat >>confdefs.h <<_ACEOF
17120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17121 _ACEOF
17124 done
17127 # Solaris has libkstat which does not require root.
17129 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17130 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17131 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lkstat $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17146 #ifdef __cplusplus
17147 extern "C"
17148 #endif
17149 char kstat_open ();
17151 main ()
17153 return kstat_open ();
17155 return 0;
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_kstat_kstat_open=yes
17177 else
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_kstat_kstat_open=no
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17189 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17190 if test $ac_cv_lib_kstat_kstat_open = yes; then
17191 cat >>confdefs.h <<_ACEOF
17192 #define HAVE_LIBKSTAT 1
17193 _ACEOF
17195 LIBS="-lkstat $LIBS"
17199 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17201 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17202 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17203 # to get the right answer into the cache.
17204 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17205 if test $ac_have_func = no; then
17206 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17207 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17208 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211 ac_check_lib_save_LIBS=$LIBS
17212 LIBS="-lelf $LIBS"
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17220 /* Override any GCC internal prototype to avoid an error.
17221 Use char because int might match the return type of a GCC
17222 builtin and then its argument prototype would still apply. */
17223 #ifdef __cplusplus
17224 extern "C"
17225 #endif
17226 char elf_begin ();
17228 main ()
17230 return elf_begin ();
17232 return 0;
17234 _ACEOF
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && {
17249 test -z "$ac_c_werror_flag" ||
17250 test ! -s conftest.err
17251 } && test -s conftest$ac_exeext &&
17252 $as_test_x conftest$ac_exeext; then
17253 ac_cv_lib_elf_elf_begin=yes
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_lib_elf_elf_begin=no
17261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17265 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17266 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17267 if test $ac_cv_lib_elf_elf_begin = yes; then
17268 LIBS="-lelf $LIBS"
17272 if test $ac_have_func = no; then
17273 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17274 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17275 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17276 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 else
17278 ac_check_lib_save_LIBS=$LIBS
17279 LIBS="-lkvm $LIBS"
17280 cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h. */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17287 /* Override any GCC internal prototype to avoid an error.
17288 Use char because int might match the return type of a GCC
17289 builtin and then its argument prototype would still apply. */
17290 #ifdef __cplusplus
17291 extern "C"
17292 #endif
17293 char kvm_open ();
17295 main ()
17297 return kvm_open ();
17299 return 0;
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (ac_try="$ac_link"
17304 case "(($ac_try" in
17305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306 *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309 (eval "$ac_link") 2>conftest.er1
17310 ac_status=$?
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } && {
17316 test -z "$ac_c_werror_flag" ||
17317 test ! -s conftest.err
17318 } && test -s conftest$ac_exeext &&
17319 $as_test_x conftest$ac_exeext; then
17320 ac_cv_lib_kvm_kvm_open=yes
17321 else
17322 echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17325 ac_cv_lib_kvm_kvm_open=no
17328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17329 conftest$ac_exeext conftest.$ac_ext
17330 LIBS=$ac_check_lib_save_LIBS
17332 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17333 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17334 if test $ac_cv_lib_kvm_kvm_open = yes; then
17335 LIBS="-lkvm $LIBS"
17338 # Check for the 4.4BSD definition of getloadavg.
17339 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17340 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17341 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 ac_check_lib_save_LIBS=$LIBS
17345 LIBS="-lutil $LIBS"
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h. */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 char getloadavg ();
17361 main ()
17363 return getloadavg ();
17365 return 0;
17367 _ACEOF
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17373 esac
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17376 ac_status=$?
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } && {
17382 test -z "$ac_c_werror_flag" ||
17383 test ! -s conftest.err
17384 } && test -s conftest$ac_exeext &&
17385 $as_test_x conftest$ac_exeext; then
17386 ac_cv_lib_util_getloadavg=yes
17387 else
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_cv_lib_util_getloadavg=no
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17396 LIBS=$ac_check_lib_save_LIBS
17398 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17399 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17400 if test $ac_cv_lib_util_getloadavg = yes; then
17401 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17406 if test $ac_have_func = no; then
17407 # There is a commonly available library for RS/6000 AIX.
17408 # Since it is not a standard part of AIX, it might be installed locally.
17409 ac_getloadavg_LIBS=$LIBS
17410 LIBS="-L/usr/local/lib $LIBS"
17411 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17412 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17413 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416 ac_check_lib_save_LIBS=$LIBS
17417 LIBS="-lgetloadavg $LIBS"
17418 cat >conftest.$ac_ext <<_ACEOF
17419 /* confdefs.h. */
17420 _ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17425 /* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
17428 #ifdef __cplusplus
17429 extern "C"
17430 #endif
17431 char getloadavg ();
17433 main ()
17435 return getloadavg ();
17437 return 0;
17439 _ACEOF
17440 rm -f conftest.$ac_objext conftest$ac_exeext
17441 if { (ac_try="$ac_link"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>conftest.er1
17448 ac_status=$?
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } && {
17454 test -z "$ac_c_werror_flag" ||
17455 test ! -s conftest.err
17456 } && test -s conftest$ac_exeext &&
17457 $as_test_x conftest$ac_exeext; then
17458 ac_cv_lib_getloadavg_getloadavg=yes
17459 else
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_cv_lib_getloadavg_getloadavg=no
17466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17471 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17472 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17473 LIBS="-lgetloadavg $LIBS"
17474 else
17475 LIBS=$ac_getloadavg_LIBS
17480 # Make sure it is really in the library, if we think we found it,
17481 # otherwise set up the replacement function.
17483 for ac_func in getloadavg
17485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17499 #define $ac_func innocuous_$ac_func
17501 /* System header to define __stub macros and hopefully few prototypes,
17502 which can conflict with char $ac_func (); below.
17503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17504 <limits.h> exists even on freestanding compilers. */
17506 #ifdef __STDC__
17507 # include <limits.h>
17508 #else
17509 # include <assert.h>
17510 #endif
17512 #undef $ac_func
17514 /* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
17517 #ifdef __cplusplus
17518 extern "C"
17519 #endif
17520 char $ac_func ();
17521 /* The GNU C library defines this for functions which it implements
17522 to always fail with ENOSYS. Some functions are actually named
17523 something starting with __ and the normal name is an alias. */
17524 #if defined __stub_$ac_func || defined __stub___$ac_func
17525 choke me
17526 #endif
17529 main ()
17531 return $ac_func ();
17533 return 0;
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext &&
17553 $as_test_x conftest$ac_exeext; then
17554 eval "$as_ac_var=yes"
17555 else
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 eval "$as_ac_var=no"
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563 conftest$ac_exeext conftest.$ac_ext
17565 ac_res=`eval echo '${'$as_ac_var'}'`
17566 { echo "$as_me:$LINENO: result: $ac_res" >&5
17567 echo "${ECHO_T}$ac_res" >&6; }
17568 if test `eval echo '${'$as_ac_var'}'` = yes; then
17569 cat >>confdefs.h <<_ACEOF
17570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17571 _ACEOF
17573 else
17574 case " $LIBOBJS " in
17575 *" getloadavg.$ac_objext "* ) ;;
17576 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17578 esac
17581 cat >>confdefs.h <<\_ACEOF
17582 #define C_GETLOADAVG 1
17583 _ACEOF
17585 # Figure out what our getloadavg.c needs.
17586 ac_have_func=no
17587 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17588 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17589 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17590 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17595 else
17596 # Is the header compilable?
17597 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17598 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h. */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 $ac_includes_default
17606 #include <sys/dg_sys_info.h>
17607 _ACEOF
17608 rm -f conftest.$ac_objext
17609 if { (ac_try="$ac_compile"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.$ac_objext; then
17625 ac_header_compiler=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_header_compiler=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 echo "${ECHO_T}$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17639 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17641 /* confdefs.h. */
17642 _ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <sys/dg_sys_info.h>
17647 _ACEOF
17648 if { (ac_try="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17652 esac
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17655 ac_status=$?
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } >/dev/null && {
17661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 }; then
17664 ac_header_preproc=yes
17665 else
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_header_preproc=no
17672 rm -f conftest.err conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17674 echo "${ECHO_T}$ac_header_preproc" >&6; }
17676 # So? What about this header?
17677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17678 yes:no: )
17679 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17680 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17681 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17682 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17683 ac_header_preproc=yes
17685 no:yes:* )
17686 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17687 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17688 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17689 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17691 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17692 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17693 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17694 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17695 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17696 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17697 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17700 esac
17701 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17702 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17703 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17708 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17709 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17712 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17713 ac_have_func=yes
17715 cat >>confdefs.h <<\_ACEOF
17716 #define DGUX 1
17717 _ACEOF
17720 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17721 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17722 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 ac_check_lib_save_LIBS=$LIBS
17726 LIBS="-ldgc $LIBS"
17727 cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h. */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 char dg_sys_info ();
17742 main ()
17744 return dg_sys_info ();
17746 return 0;
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && {
17763 test -z "$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 } && test -s conftest$ac_exeext &&
17766 $as_test_x conftest$ac_exeext; then
17767 ac_cv_lib_dgc_dg_sys_info=yes
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_cv_lib_dgc_dg_sys_info=no
17775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17776 conftest$ac_exeext conftest.$ac_ext
17777 LIBS=$ac_check_lib_save_LIBS
17779 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17780 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17781 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define HAVE_LIBDGC 1
17784 _ACEOF
17786 LIBS="-ldgc $LIBS"
17794 if test "${ac_cv_header_locale_h+set}" = set; then
17795 { echo "$as_me:$LINENO: checking for locale.h" >&5
17796 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17797 if test "${ac_cv_header_locale_h+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17801 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17802 else
17803 # Is the header compilable?
17804 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17805 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17807 /* confdefs.h. */
17808 _ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 $ac_includes_default
17813 #include <locale.h>
17814 _ACEOF
17815 rm -f conftest.$ac_objext
17816 if { (ac_try="$ac_compile"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_compile") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest.$ac_objext; then
17832 ac_header_compiler=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_header_compiler=no
17840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17842 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844 # Is the header present?
17845 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17846 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17848 /* confdefs.h. */
17849 _ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 #include <locale.h>
17854 _ACEOF
17855 if { (ac_try="$ac_cpp conftest.$ac_ext"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17862 ac_status=$?
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } >/dev/null && {
17868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 }; then
17871 ac_header_preproc=yes
17872 else
17873 echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_preproc=no
17879 rm -f conftest.err conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17881 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883 # So? What about this header?
17884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17885 yes:no: )
17886 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17887 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17888 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17889 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17890 ac_header_preproc=yes
17892 no:yes:* )
17893 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17894 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17896 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17898 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17899 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17900 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17901 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17902 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17903 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17904 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17907 esac
17908 { echo "$as_me:$LINENO: checking for locale.h" >&5
17909 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17910 if test "${ac_cv_header_locale_h+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 ac_cv_header_locale_h=$ac_header_preproc
17915 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17916 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17922 for ac_func in setlocale
17924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17938 #define $ac_func innocuous_$ac_func
17940 /* System header to define __stub macros and hopefully few prototypes,
17941 which can conflict with char $ac_func (); below.
17942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17943 <limits.h> exists even on freestanding compilers. */
17945 #ifdef __STDC__
17946 # include <limits.h>
17947 #else
17948 # include <assert.h>
17949 #endif
17951 #undef $ac_func
17953 /* Override any GCC internal prototype to avoid an error.
17954 Use char because int might match the return type of a GCC
17955 builtin and then its argument prototype would still apply. */
17956 #ifdef __cplusplus
17957 extern "C"
17958 #endif
17959 char $ac_func ();
17960 /* The GNU C library defines this for functions which it implements
17961 to always fail with ENOSYS. Some functions are actually named
17962 something starting with __ and the normal name is an alias. */
17963 #if defined __stub_$ac_func || defined __stub___$ac_func
17964 choke me
17965 #endif
17968 main ()
17970 return $ac_func ();
17972 return 0;
17974 _ACEOF
17975 rm -f conftest.$ac_objext conftest$ac_exeext
17976 if { (ac_try="$ac_link"
17977 case "(($ac_try" in
17978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979 *) ac_try_echo=$ac_try;;
17980 esac
17981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17982 (eval "$ac_link") 2>conftest.er1
17983 ac_status=$?
17984 grep -v '^ *+' conftest.er1 >conftest.err
17985 rm -f conftest.er1
17986 cat conftest.err >&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); } && {
17989 test -z "$ac_c_werror_flag" ||
17990 test ! -s conftest.err
17991 } && test -s conftest$ac_exeext &&
17992 $as_test_x conftest$ac_exeext; then
17993 eval "$as_ac_var=yes"
17994 else
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 eval "$as_ac_var=no"
18001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18002 conftest$ac_exeext conftest.$ac_ext
18004 ac_res=`eval echo '${'$as_ac_var'}'`
18005 { echo "$as_me:$LINENO: result: $ac_res" >&5
18006 echo "${ECHO_T}$ac_res" >&6; }
18007 if test `eval echo '${'$as_ac_var'}'` = yes; then
18008 cat >>confdefs.h <<_ACEOF
18009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18010 _ACEOF
18013 done
18016 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18017 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18018 # Irix 4.0.5F has the header but not the library.
18019 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18020 ac_have_func=yes
18022 cat >>confdefs.h <<\_ACEOF
18023 #define SVR4 1
18024 _ACEOF
18028 if test $ac_have_func = no; then
18029 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18030 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18031 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18032 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18035 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18037 else
18038 # Is the header compilable?
18039 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18040 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 #include <inq_stats/cpustats.h>
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_compile") 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } && {
18064 test -z "$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 } && test -s conftest.$ac_objext; then
18067 ac_header_compiler=yes
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 ac_header_compiler=no
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18077 echo "${ECHO_T}$ac_header_compiler" >&6; }
18079 # Is the header present?
18080 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18081 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 #include <inq_stats/cpustats.h>
18089 _ACEOF
18090 if { (ac_try="$ac_cpp conftest.$ac_ext"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } >/dev/null && {
18103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 }; then
18106 ac_header_preproc=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_header_preproc=no
18114 rm -f conftest.err conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18116 echo "${ECHO_T}$ac_header_preproc" >&6; }
18118 # So? What about this header?
18119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18120 yes:no: )
18121 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18122 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18124 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18125 ac_header_preproc=yes
18127 no:yes:* )
18128 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18129 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18131 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18133 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18135 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18137 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18139 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18142 esac
18143 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18150 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18155 ac_have_func=yes
18157 cat >>confdefs.h <<\_ACEOF
18158 #define UMAX 1
18159 _ACEOF
18162 cat >>confdefs.h <<\_ACEOF
18163 #define UMAX4_3 1
18164 _ACEOF
18171 if test $ac_have_func = no; then
18172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18173 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18178 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18180 else
18181 # Is the header compilable?
18182 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h. */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18191 #include <sys/cpustats.h>
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest.$ac_objext; then
18210 ac_header_compiler=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_header_compiler=no
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18220 echo "${ECHO_T}$ac_header_compiler" >&6; }
18222 # Is the header present?
18223 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18224 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 #include <sys/cpustats.h>
18232 _ACEOF
18233 if { (ac_try="$ac_cpp conftest.$ac_ext"
18234 case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18237 esac
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18240 ac_status=$?
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } >/dev/null && {
18246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18248 }; then
18249 ac_header_preproc=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_header_preproc=no
18257 rm -f conftest.err conftest.$ac_ext
18258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18259 echo "${ECHO_T}$ac_header_preproc" >&6; }
18261 # So? What about this header?
18262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18263 yes:no: )
18264 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18265 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18266 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18267 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18268 ac_header_preproc=yes
18270 no:yes:* )
18271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18272 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18274 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18276 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18278 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18280 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18281 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18282 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18285 esac
18286 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18287 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18288 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18289 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18293 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18294 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18297 if test $ac_cv_header_sys_cpustats_h = yes; then
18298 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18299 #define UMAX 1
18300 _ACEOF
18307 if test $ac_have_func = no; then
18309 for ac_header in mach/mach.h
18311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_res=`eval echo '${'$as_ac_Header'}'`
18319 { echo "$as_me:$LINENO: result: $ac_res" >&5
18320 echo "${ECHO_T}$ac_res" >&6; }
18321 else
18322 # Is the header compilable?
18323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 $ac_includes_default
18332 #include <$ac_header>
18333 _ACEOF
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_compile") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest.$ac_objext; then
18351 ac_header_compiler=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18356 ac_header_compiler=no
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 #include <$ac_header>
18373 _ACEOF
18374 if { (ac_try="$ac_cpp conftest.$ac_ext"
18375 case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18381 ac_status=$?
18382 grep -v '^ *+' conftest.er1 >conftest.err
18383 rm -f conftest.er1
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null && {
18387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18388 test ! -s conftest.err
18389 }; then
18390 ac_header_preproc=yes
18391 else
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_header_preproc=no
18398 rm -f conftest.err conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18400 echo "${ECHO_T}$ac_header_preproc" >&6; }
18402 # So? What about this header?
18403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18404 yes:no: )
18405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18409 ac_header_preproc=yes
18411 no:yes:* )
18412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18426 esac
18427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432 eval "$as_ac_Header=\$ac_header_preproc"
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18440 cat >>confdefs.h <<_ACEOF
18441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18442 _ACEOF
18446 done
18451 for ac_header in nlist.h
18453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 ac_res=`eval echo '${'$as_ac_Header'}'`
18461 { echo "$as_me:$LINENO: result: $ac_res" >&5
18462 echo "${ECHO_T}$ac_res" >&6; }
18463 else
18464 # Is the header compilable?
18465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18467 cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h. */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 $ac_includes_default
18474 #include <$ac_header>
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_compile") 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } && {
18490 test -z "$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 } && test -s conftest.$ac_objext; then
18493 ac_header_compiler=yes
18494 else
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ac_header_compiler=no
18501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18503 echo "${ECHO_T}$ac_header_compiler" >&6; }
18505 # Is the header present?
18506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 #include <$ac_header>
18515 _ACEOF
18516 if { (ac_try="$ac_cpp conftest.$ac_ext"
18517 case "(($ac_try" in
18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18519 *) ac_try_echo=$ac_try;;
18520 esac
18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18523 ac_status=$?
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } >/dev/null && {
18529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18530 test ! -s conftest.err
18531 }; then
18532 ac_header_preproc=yes
18533 else
18534 echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18537 ac_header_preproc=no
18540 rm -f conftest.err conftest.$ac_ext
18541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18542 echo "${ECHO_T}$ac_header_preproc" >&6; }
18544 # So? What about this header?
18545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18546 yes:no: )
18547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18551 ac_header_preproc=yes
18553 no:yes:* )
18554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18568 esac
18569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574 eval "$as_ac_Header=\$ac_header_preproc"
18576 ac_res=`eval echo '${'$as_ac_Header'}'`
18577 { echo "$as_me:$LINENO: result: $ac_res" >&5
18578 echo "${ECHO_T}$ac_res" >&6; }
18581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18584 _ACEOF
18585 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18586 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18587 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 #include <nlist.h>
18599 main ()
18601 static struct nlist ac_aggr;
18602 if (ac_aggr.n_un.n_name)
18603 return 0;
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_member_struct_nlist_n_un_n_name=yes
18626 else
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h. */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 #include <nlist.h>
18639 main ()
18641 static struct nlist ac_aggr;
18642 if (sizeof ac_aggr.n_un.n_name)
18643 return 0;
18645 return 0;
18647 _ACEOF
18648 rm -f conftest.$ac_objext
18649 if { (ac_try="$ac_compile"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18653 esac
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_compile") 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest.$ac_objext; then
18665 ac_cv_member_struct_nlist_n_un_n_name=yes
18666 else
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 ac_cv_member_struct_nlist_n_un_n_name=no
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18678 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18679 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18680 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18684 _ACEOF
18687 cat >>confdefs.h <<\_ACEOF
18688 #define NLIST_NAME_UNION 1
18689 _ACEOF
18696 done
18699 done
18702 # Some definitions of getloadavg require that the program be installed setgid.
18703 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18704 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18705 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708 cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h. */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */
18714 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18715 #ifdef LDAV_PRIVILEGED
18716 Yowza Am I SETGID yet
18717 #endif
18718 _ACEOF
18719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18720 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18721 ac_cv_func_getloadavg_setgid=yes
18722 else
18723 ac_cv_func_getloadavg_setgid=no
18725 rm -f conftest*
18728 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18729 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18730 if test $ac_cv_func_getloadavg_setgid = yes; then
18731 NEED_SETGID=true
18733 cat >>confdefs.h <<\_ACEOF
18734 #define GETLOADAVG_PRIVILEGED 1
18735 _ACEOF
18737 else
18738 NEED_SETGID=false
18741 if test $ac_cv_func_getloadavg_setgid = yes; then
18742 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18743 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18744 if test "${ac_cv_group_kmem+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18748 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18749 # If we got an error (system does not support symlinks), try without -L.
18750 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18751 ac_cv_group_kmem=`echo $ac_ls_output \
18752 | sed -ne 's/[ ][ ]*/ /g;
18753 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18754 / /s/.* //;p;'`
18757 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18758 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18759 KMEM_GROUP=$ac_cv_group_kmem
18761 if test "x$ac_save_LIBS" = x; then
18762 GETLOADAVG_LIBS=$LIBS
18763 else
18764 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18766 LIBS=$ac_save_LIBS
18770 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18771 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18772 if test "${ac_cv_sys_largefile_source+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 else
18775 while :; do
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 #include <sys/types.h> /* for off_t */
18783 #include <stdio.h>
18785 main ()
18787 int (*fp) (FILE *, off_t, int) = fseeko;
18788 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18790 return 0;
18792 _ACEOF
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (ac_try="$ac_link"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_link") 2>conftest.er1
18801 ac_status=$?
18802 grep -v '^ *+' conftest.er1 >conftest.err
18803 rm -f conftest.er1
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest$ac_exeext &&
18810 $as_test_x conftest$ac_exeext; then
18811 ac_cv_sys_largefile_source=no; break
18812 else
18813 echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18820 conftest$ac_exeext conftest.$ac_ext
18821 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h. */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18827 #define _LARGEFILE_SOURCE 1
18828 #include <sys/types.h> /* for off_t */
18829 #include <stdio.h>
18831 main ()
18833 int (*fp) (FILE *, off_t, int) = fseeko;
18834 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18836 return 0;
18838 _ACEOF
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844 esac
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18847 ac_status=$?
18848 grep -v '^ *+' conftest.er1 >conftest.err
18849 rm -f conftest.er1
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext &&
18856 $as_test_x conftest$ac_exeext; then
18857 ac_cv_sys_largefile_source=1; break
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866 conftest$ac_exeext conftest.$ac_ext
18867 ac_cv_sys_largefile_source=unknown
18868 break
18869 done
18871 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18872 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18873 case $ac_cv_sys_largefile_source in #(
18874 no | unknown) ;;
18876 cat >>confdefs.h <<_ACEOF
18877 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18878 _ACEOF
18880 esac
18881 rm -f conftest*
18883 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18884 # in glibc 2.1.3, but that breaks too many other things.
18885 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18886 if test $ac_cv_sys_largefile_source != unknown; then
18888 cat >>confdefs.h <<\_ACEOF
18889 #define HAVE_FSEEKO 1
18890 _ACEOF
18895 # Configure getopt.
18896 # getopt.m4 serial 10
18898 # The getopt module assume you want GNU getopt, with getopt_long etc,
18899 # rather than vanilla POSIX getopt. This means your your code should
18900 # always include <getopt.h> for the getopt prototypes.
18912 # Prerequisites of lib/getopt*.
18917 GETOPT_H=
18919 for ac_header in getopt.h
18921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_res=`eval echo '${'$as_ac_Header'}'`
18929 { echo "$as_me:$LINENO: result: $ac_res" >&5
18930 echo "${ECHO_T}$ac_res" >&6; }
18931 else
18932 # Is the header compilable?
18933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18935 cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h. */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <$ac_header>
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (ac_try="$ac_compile"
18946 case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949 esac
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_compile") 2>conftest.er1
18952 ac_status=$?
18953 grep -v '^ *+' conftest.er1 >conftest.err
18954 rm -f conftest.er1
18955 cat conftest.err >&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); } && {
18958 test -z "$ac_c_werror_flag" ||
18959 test ! -s conftest.err
18960 } && test -s conftest.$ac_objext; then
18961 ac_header_compiler=yes
18962 else
18963 echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 ac_header_compiler=no
18969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18971 echo "${ECHO_T}$ac_header_compiler" >&6; }
18973 # Is the header present?
18974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 #include <$ac_header>
18983 _ACEOF
18984 if { (ac_try="$ac_cpp conftest.$ac_ext"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18991 ac_status=$?
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } >/dev/null && {
18997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18998 test ! -s conftest.err
18999 }; then
19000 ac_header_preproc=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_header_preproc=no
19008 rm -f conftest.err conftest.$ac_ext
19009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19010 echo "${ECHO_T}$ac_header_preproc" >&6; }
19012 # So? What about this header?
19013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19014 yes:no: )
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19019 ac_header_preproc=yes
19021 no:yes:* )
19022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19036 esac
19037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042 eval "$as_ac_Header=\$ac_header_preproc"
19044 ac_res=`eval echo '${'$as_ac_Header'}'`
19045 { echo "$as_me:$LINENO: result: $ac_res" >&5
19046 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19052 _ACEOF
19054 else
19055 GETOPT_H=getopt.h
19058 done
19060 if test -z "$GETOPT_H"; then
19062 for ac_func in getopt_long_only
19064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19078 #define $ac_func innocuous_$ac_func
19080 /* System header to define __stub macros and hopefully few prototypes,
19081 which can conflict with char $ac_func (); below.
19082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19083 <limits.h> exists even on freestanding compilers. */
19085 #ifdef __STDC__
19086 # include <limits.h>
19087 #else
19088 # include <assert.h>
19089 #endif
19091 #undef $ac_func
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char $ac_func ();
19100 /* The GNU C library defines this for functions which it implements
19101 to always fail with ENOSYS. Some functions are actually named
19102 something starting with __ and the normal name is an alias. */
19103 #if defined __stub_$ac_func || defined __stub___$ac_func
19104 choke me
19105 #endif
19108 main ()
19110 return $ac_func ();
19112 return 0;
19114 _ACEOF
19115 rm -f conftest.$ac_objext conftest$ac_exeext
19116 if { (ac_try="$ac_link"
19117 case "(($ac_try" in
19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119 *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122 (eval "$ac_link") 2>conftest.er1
19123 ac_status=$?
19124 grep -v '^ *+' conftest.er1 >conftest.err
19125 rm -f conftest.er1
19126 cat conftest.err >&5
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); } && {
19129 test -z "$ac_c_werror_flag" ||
19130 test ! -s conftest.err
19131 } && test -s conftest$ac_exeext &&
19132 $as_test_x conftest$ac_exeext; then
19133 eval "$as_ac_var=yes"
19134 else
19135 echo "$as_me: failed program was:" >&5
19136 sed 's/^/| /' conftest.$ac_ext >&5
19138 eval "$as_ac_var=no"
19141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19142 conftest$ac_exeext conftest.$ac_ext
19144 ac_res=`eval echo '${'$as_ac_var'}'`
19145 { echo "$as_me:$LINENO: result: $ac_res" >&5
19146 echo "${ECHO_T}$ac_res" >&6; }
19147 if test `eval echo '${'$as_ac_var'}'` = yes; then
19148 cat >>confdefs.h <<_ACEOF
19149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19150 _ACEOF
19152 else
19153 GETOPT_H=getopt.h
19155 done
19159 if test -z "$GETOPT_H"; then
19160 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19161 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19162 if test "${ac_cv_have_decl_optreset+set}" = set; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19164 else
19165 cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h. */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 #include <getopt.h>
19174 main ()
19176 #ifndef optreset
19177 (void) optreset;
19178 #endif
19181 return 0;
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19192 ac_status=$?
19193 grep -v '^ *+' conftest.er1 >conftest.err
19194 rm -f conftest.er1
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19201 ac_cv_have_decl_optreset=yes
19202 else
19203 echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19206 ac_cv_have_decl_optreset=no
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19212 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19213 if test $ac_cv_have_decl_optreset = yes; then
19214 GETOPT_H=getopt.h
19219 if test -z "$GETOPT_H"; then
19220 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19221 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19222 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225 if test "$cross_compiling" = yes; then
19226 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19227 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19228 if test "${ac_cv_have_decl_getopt_clip+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 getopt_clip
19243 (void) getopt_clip;
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_getopt_clip=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_cv_have_decl_getopt_clip=no
19275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19278 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19279 if test $ac_cv_have_decl_getopt_clip = yes; then
19280 gl_cv_func_gnu_getopt=no
19281 else
19282 gl_cv_func_gnu_getopt=yes
19285 else
19286 cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h. */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 #include <getopt.h>
19294 main ()
19297 char *myargv[3];
19298 myargv[0] = "conftest";
19299 myargv[1] = "-+";
19300 myargv[2] = 0;
19301 return getopt (2, myargv, "+a") != '?';
19304 return 0;
19306 _ACEOF
19307 rm -f conftest$ac_exeext
19308 if { (ac_try="$ac_link"
19309 case "(($ac_try" in
19310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311 *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314 (eval "$ac_link") 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; }; then
19327 gl_cv_func_gnu_getopt=yes
19328 else
19329 echo "$as_me: program exited with status $ac_status" >&5
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ( exit $ac_status )
19334 gl_cv_func_gnu_getopt=no
19336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19341 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19342 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19343 if test "$gl_cv_func_gnu_getopt" = "no"; then
19344 GETOPT_H=getopt.h
19350 if test -n "$GETOPT_H"; then
19353 GETOPT_H=getopt.h
19355 cat >>confdefs.h <<\_ACEOF
19356 #define __GETOPT_PREFIX rpl_
19357 _ACEOF
19362 GETOPTOBJS='getopt.o getopt1.o'
19369 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19370 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19371 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 # Use it with a single arg.
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h. */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 $ac_includes_default
19383 main ()
19385 getpgrp (0);
19387 return 0;
19389 _ACEOF
19390 rm -f conftest.$ac_objext
19391 if { (ac_try="$ac_compile"
19392 case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395 esac
19396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19398 ac_status=$?
19399 grep -v '^ *+' conftest.er1 >conftest.err
19400 rm -f conftest.er1
19401 cat conftest.err >&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest.$ac_objext; then
19407 ac_cv_func_getpgrp_void=no
19408 else
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_func_getpgrp_void=yes
19415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19419 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19420 if test $ac_cv_func_getpgrp_void = yes; then
19422 cat >>confdefs.h <<\_ACEOF
19423 #define GETPGRP_VOID 1
19424 _ACEOF
19430 for ac_func in strftime
19432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h. */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19446 #define $ac_func innocuous_$ac_func
19448 /* System header to define __stub macros and hopefully few prototypes,
19449 which can conflict with char $ac_func (); below.
19450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19451 <limits.h> exists even on freestanding compilers. */
19453 #ifdef __STDC__
19454 # include <limits.h>
19455 #else
19456 # include <assert.h>
19457 #endif
19459 #undef $ac_func
19461 /* Override any GCC internal prototype to avoid an error.
19462 Use char because int might match the return type of a GCC
19463 builtin and then its argument prototype would still apply. */
19464 #ifdef __cplusplus
19465 extern "C"
19466 #endif
19467 char $ac_func ();
19468 /* The GNU C library defines this for functions which it implements
19469 to always fail with ENOSYS. Some functions are actually named
19470 something starting with __ and the normal name is an alias. */
19471 #if defined __stub_$ac_func || defined __stub___$ac_func
19472 choke me
19473 #endif
19476 main ()
19478 return $ac_func ();
19480 return 0;
19482 _ACEOF
19483 rm -f conftest.$ac_objext conftest$ac_exeext
19484 if { (ac_try="$ac_link"
19485 case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488 esac
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_link") 2>conftest.er1
19491 ac_status=$?
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } && {
19497 test -z "$ac_c_werror_flag" ||
19498 test ! -s conftest.err
19499 } && test -s conftest$ac_exeext &&
19500 $as_test_x conftest$ac_exeext; then
19501 eval "$as_ac_var=yes"
19502 else
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 eval "$as_ac_var=no"
19509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19510 conftest$ac_exeext conftest.$ac_ext
19512 ac_res=`eval echo '${'$as_ac_var'}'`
19513 { echo "$as_me:$LINENO: result: $ac_res" >&5
19514 echo "${ECHO_T}$ac_res" >&6; }
19515 if test `eval echo '${'$as_ac_var'}'` = yes; then
19516 cat >>confdefs.h <<_ACEOF
19517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19518 _ACEOF
19520 else
19521 # strftime is in -lintl on SCO UNIX.
19522 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19523 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19524 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527 ac_check_lib_save_LIBS=$LIBS
19528 LIBS="-lintl $LIBS"
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h. */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19536 /* Override any GCC internal prototype to avoid an error.
19537 Use char because int might match the return type of a GCC
19538 builtin and then its argument prototype would still apply. */
19539 #ifdef __cplusplus
19540 extern "C"
19541 #endif
19542 char strftime ();
19544 main ()
19546 return strftime ();
19548 return 0;
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (ac_try="$ac_link"
19553 case "(($ac_try" in
19554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19556 esac
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_link") 2>conftest.er1
19559 ac_status=$?
19560 grep -v '^ *+' conftest.er1 >conftest.err
19561 rm -f conftest.er1
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest$ac_exeext &&
19568 $as_test_x conftest$ac_exeext; then
19569 ac_cv_lib_intl_strftime=yes
19570 else
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19574 ac_cv_lib_intl_strftime=no
19577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19582 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19583 if test $ac_cv_lib_intl_strftime = yes; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE_STRFTIME 1
19586 _ACEOF
19588 LIBS="-lintl $LIBS"
19592 done
19595 # UNIX98 PTYs.
19597 for ac_func in grantpt
19599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19613 #define $ac_func innocuous_$ac_func
19615 /* System header to define __stub macros and hopefully few prototypes,
19616 which can conflict with char $ac_func (); below.
19617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19618 <limits.h> exists even on freestanding compilers. */
19620 #ifdef __STDC__
19621 # include <limits.h>
19622 #else
19623 # include <assert.h>
19624 #endif
19626 #undef $ac_func
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 char $ac_func ();
19635 /* The GNU C library defines this for functions which it implements
19636 to always fail with ENOSYS. Some functions are actually named
19637 something starting with __ and the normal name is an alias. */
19638 #if defined __stub_$ac_func || defined __stub___$ac_func
19639 choke me
19640 #endif
19643 main ()
19645 return $ac_func ();
19647 return 0;
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654 *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657 (eval "$ac_link") 2>conftest.er1
19658 ac_status=$?
19659 grep -v '^ *+' conftest.er1 >conftest.err
19660 rm -f conftest.er1
19661 cat conftest.err >&5
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); } && {
19664 test -z "$ac_c_werror_flag" ||
19665 test ! -s conftest.err
19666 } && test -s conftest$ac_exeext &&
19667 $as_test_x conftest$ac_exeext; then
19668 eval "$as_ac_var=yes"
19669 else
19670 echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19673 eval "$as_ac_var=no"
19676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677 conftest$ac_exeext conftest.$ac_ext
19679 ac_res=`eval echo '${'$as_ac_var'}'`
19680 { echo "$as_me:$LINENO: result: $ac_res" >&5
19681 echo "${ECHO_T}$ac_res" >&6; }
19682 if test `eval echo '${'$as_ac_var'}'` = yes; then
19683 cat >>confdefs.h <<_ACEOF
19684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19685 _ACEOF
19688 done
19691 # PTY-related GNU extensions.
19693 for ac_func in getpt
19695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 else
19701 cat >conftest.$ac_ext <<_ACEOF
19702 /* confdefs.h. */
19703 _ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19709 #define $ac_func innocuous_$ac_func
19711 /* System header to define __stub macros and hopefully few prototypes,
19712 which can conflict with char $ac_func (); below.
19713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19714 <limits.h> exists even on freestanding compilers. */
19716 #ifdef __STDC__
19717 # include <limits.h>
19718 #else
19719 # include <assert.h>
19720 #endif
19722 #undef $ac_func
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19727 #ifdef __cplusplus
19728 extern "C"
19729 #endif
19730 char $ac_func ();
19731 /* The GNU C library defines this for functions which it implements
19732 to always fail with ENOSYS. Some functions are actually named
19733 something starting with __ and the normal name is an alias. */
19734 #if defined __stub_$ac_func || defined __stub___$ac_func
19735 choke me
19736 #endif
19739 main ()
19741 return $ac_func ();
19743 return 0;
19745 _ACEOF
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_link") 2>conftest.er1
19754 ac_status=$?
19755 grep -v '^ *+' conftest.er1 >conftest.err
19756 rm -f conftest.er1
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest$ac_exeext &&
19763 $as_test_x conftest$ac_exeext; then
19764 eval "$as_ac_var=yes"
19765 else
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 eval "$as_ac_var=no"
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773 conftest$ac_exeext conftest.$ac_ext
19775 ac_res=`eval echo '${'$as_ac_var'}'`
19776 { echo "$as_me:$LINENO: result: $ac_res" >&5
19777 echo "${ECHO_T}$ac_res" >&6; }
19778 if test `eval echo '${'$as_ac_var'}'` = yes; then
19779 cat >>confdefs.h <<_ACEOF
19780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19781 _ACEOF
19784 done
19787 # Check this now, so that we will NOT find the above functions in ncurses.
19788 # That is because we have not set up to link ncurses in lib-src.
19789 # It's better to believe a function is not available
19790 # than to expect to find it in ncurses.
19792 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19793 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19794 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797 ac_check_lib_save_LIBS=$LIBS
19798 LIBS="-lncurses $LIBS"
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19809 #ifdef __cplusplus
19810 extern "C"
19811 #endif
19812 char tparm ();
19814 main ()
19816 return tparm ();
19818 return 0;
19820 _ACEOF
19821 rm -f conftest.$ac_objext conftest$ac_exeext
19822 if { (ac_try="$ac_link"
19823 case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826 esac
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_link") 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && {
19835 test -z "$ac_c_werror_flag" ||
19836 test ! -s conftest.err
19837 } && test -s conftest$ac_exeext &&
19838 $as_test_x conftest$ac_exeext; then
19839 ac_cv_lib_ncurses_tparm=yes
19840 else
19841 echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19844 ac_cv_lib_ncurses_tparm=no
19847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19848 conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19851 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19852 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19853 if test $ac_cv_lib_ncurses_tparm = yes; then
19854 cat >>confdefs.h <<_ACEOF
19855 #define HAVE_LIBNCURSES 1
19856 _ACEOF
19858 LIBS="-lncurses $LIBS"
19863 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19865 resolv=no
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <netinet/in.h>
19873 #include <arpa/nameser.h>
19874 #include <resolv.h>
19876 main ()
19878 return res_init();
19880 return 0;
19882 _ACEOF
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>conftest.er1
19891 ac_status=$?
19892 grep -v '^ *+' conftest.er1 >conftest.err
19893 rm -f conftest.er1
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest$ac_exeext &&
19900 $as_test_x conftest$ac_exeext; then
19901 have_res_init=yes
19902 else
19903 echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 have_res_init=no
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19911 if test "$have_res_init" = no; then
19912 OLIBS="$LIBS"
19913 LIBS="$LIBS -lresolv"
19914 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19915 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19916 cat >conftest.$ac_ext <<_ACEOF
19917 /* confdefs.h. */
19918 _ACEOF
19919 cat confdefs.h >>conftest.$ac_ext
19920 cat >>conftest.$ac_ext <<_ACEOF
19921 /* end confdefs.h. */
19922 #include <netinet/in.h>
19923 #include <arpa/nameser.h>
19924 #include <resolv.h>
19926 main ()
19928 return res_init();
19930 return 0;
19932 _ACEOF
19933 rm -f conftest.$ac_objext conftest$ac_exeext
19934 if { (ac_try="$ac_link"
19935 case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_link") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest$ac_exeext &&
19950 $as_test_x conftest$ac_exeext; then
19951 have_res_init=yes
19952 else
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 have_res_init=no
19959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19960 conftest$ac_exeext conftest.$ac_ext
19961 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19962 echo "${ECHO_T}$have_res_init" >&6; }
19963 if test "$have_res_init" = yes ; then
19964 resolv=yes
19966 LIBS="$OLIBS"
19969 if test "$have_res_init" = yes; then
19971 cat >>confdefs.h <<\_ACEOF
19972 #define HAVE_RES_INIT 1
19973 _ACEOF
19977 # Do we need the Hesiod library to provide the support routines?
19978 if test "$with_hesiod" != no ; then
19979 # Don't set $LIBS here -- see comments above.
19980 { echo "$as_me:$LINENO: checking for res_send" >&5
19981 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19982 if test "${ac_cv_func_res_send+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19993 #define res_send innocuous_res_send
19995 /* System header to define __stub macros and hopefully few prototypes,
19996 which can conflict with char res_send (); below.
19997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19998 <limits.h> exists even on freestanding compilers. */
20000 #ifdef __STDC__
20001 # include <limits.h>
20002 #else
20003 # include <assert.h>
20004 #endif
20006 #undef res_send
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char res_send ();
20015 /* The GNU C library defines this for functions which it implements
20016 to always fail with ENOSYS. Some functions are actually named
20017 something starting with __ and the normal name is an alias. */
20018 #if defined __stub_res_send || defined __stub___res_send
20019 choke me
20020 #endif
20023 main ()
20025 return res_send ();
20027 return 0;
20029 _ACEOF
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_func_res_send=yes
20049 else
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_cv_func_res_send=no
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20060 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20061 if test $ac_cv_func_res_send = yes; then
20063 else
20064 { echo "$as_me:$LINENO: checking for __res_send" >&5
20065 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20066 if test "${ac_cv_func___res_send+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20068 else
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20077 #define __res_send innocuous___res_send
20079 /* System header to define __stub macros and hopefully few prototypes,
20080 which can conflict with char __res_send (); below.
20081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20082 <limits.h> exists even on freestanding compilers. */
20084 #ifdef __STDC__
20085 # include <limits.h>
20086 #else
20087 # include <assert.h>
20088 #endif
20090 #undef __res_send
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20095 #ifdef __cplusplus
20096 extern "C"
20097 #endif
20098 char __res_send ();
20099 /* The GNU C library defines this for functions which it implements
20100 to always fail with ENOSYS. Some functions are actually named
20101 something starting with __ and the normal name is an alias. */
20102 #if defined __stub___res_send || defined __stub_____res_send
20103 choke me
20104 #endif
20107 main ()
20109 return __res_send ();
20111 return 0;
20113 _ACEOF
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20119 esac
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest$ac_exeext &&
20131 $as_test_x conftest$ac_exeext; then
20132 ac_cv_func___res_send=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 ac_cv_func___res_send=no
20140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20141 conftest$ac_exeext conftest.$ac_ext
20143 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20144 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20145 if test $ac_cv_func___res_send = yes; then
20147 else
20148 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20149 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20150 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152 else
20153 ac_check_lib_save_LIBS=$LIBS
20154 LIBS="-lresolv $LIBS"
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char res_send ();
20170 main ()
20172 return res_send ();
20174 return 0;
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_link") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest$ac_exeext &&
20194 $as_test_x conftest$ac_exeext; then
20195 ac_cv_lib_resolv_res_send=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20200 ac_cv_lib_resolv_res_send=no
20203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS=$ac_check_lib_save_LIBS
20207 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20208 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20209 if test $ac_cv_lib_resolv_res_send = yes; then
20210 resolv=yes
20211 else
20212 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20213 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20214 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lresolv $LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20229 #ifdef __cplusplus
20230 extern "C"
20231 #endif
20232 char __res_send ();
20234 main ()
20236 return __res_send ();
20238 return 0;
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext &&
20258 $as_test_x conftest$ac_exeext; then
20259 ac_cv_lib_resolv___res_send=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20264 ac_cv_lib_resolv___res_send=no
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20271 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20272 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20273 if test $ac_cv_lib_resolv___res_send = yes; then
20274 resolv=yes
20283 if test "$resolv" = yes ; then
20284 RESOLVLIB=-lresolv
20285 else
20286 RESOLVLIB=
20288 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20289 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20290 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20291 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 else
20293 cat >conftest.$ac_ext <<_ACEOF
20294 /* confdefs.h. */
20295 _ACEOF
20296 cat confdefs.h >>conftest.$ac_ext
20297 cat >>conftest.$ac_ext <<_ACEOF
20298 /* end confdefs.h. */
20299 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20301 #define hes_getmailhost innocuous_hes_getmailhost
20303 /* System header to define __stub macros and hopefully few prototypes,
20304 which can conflict with char hes_getmailhost (); below.
20305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20306 <limits.h> exists even on freestanding compilers. */
20308 #ifdef __STDC__
20309 # include <limits.h>
20310 #else
20311 # include <assert.h>
20312 #endif
20314 #undef hes_getmailhost
20316 /* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char hes_getmailhost ();
20323 /* The GNU C library defines this for functions which it implements
20324 to always fail with ENOSYS. Some functions are actually named
20325 something starting with __ and the normal name is an alias. */
20326 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20327 choke me
20328 #endif
20331 main ()
20333 return hes_getmailhost ();
20335 return 0;
20337 _ACEOF
20338 rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (ac_try="$ac_link"
20340 case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_link") 2>conftest.er1
20346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && {
20352 test -z "$ac_c_werror_flag" ||
20353 test ! -s conftest.err
20354 } && test -s conftest$ac_exeext &&
20355 $as_test_x conftest$ac_exeext; then
20356 ac_cv_func_hes_getmailhost=yes
20357 else
20358 echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20361 ac_cv_func_hes_getmailhost=no
20364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365 conftest$ac_exeext conftest.$ac_ext
20367 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20368 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20369 if test $ac_cv_func_hes_getmailhost = yes; then
20371 else
20372 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20373 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20374 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377 ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-lhesiod $RESOLVLIB $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h. */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char hes_getmailhost ();
20394 main ()
20396 return hes_getmailhost ();
20398 return 0;
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20409 ac_status=$?
20410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext &&
20418 $as_test_x conftest$ac_exeext; then
20419 ac_cv_lib_hesiod_hes_getmailhost=yes
20420 else
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_lib_hesiod_hes_getmailhost=no
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20429 LIBS=$ac_check_lib_save_LIBS
20431 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20432 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20433 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20435 cat >>confdefs.h <<\_ACEOF
20436 #define HAVE_LIBHESIOD 1
20437 _ACEOF
20439 else
20447 # Do we need libresolv (due to res_init or Hesiod)?
20448 if test "$resolv" = yes ; then
20450 cat >>confdefs.h <<\_ACEOF
20451 #define HAVE_LIBRESOLV 1
20452 _ACEOF
20456 # These tell us which Kerberos-related libraries to use.
20457 if test "${with_kerberos}" != no; then
20459 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20460 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20461 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 else
20464 ac_check_lib_save_LIBS=$LIBS
20465 LIBS="-lcom_err $LIBS"
20466 cat >conftest.$ac_ext <<_ACEOF
20467 /* confdefs.h. */
20468 _ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20473 /* Override any GCC internal prototype to avoid an error.
20474 Use char because int might match the return type of a GCC
20475 builtin and then its argument prototype would still apply. */
20476 #ifdef __cplusplus
20477 extern "C"
20478 #endif
20479 char com_err ();
20481 main ()
20483 return com_err ();
20485 return 0;
20487 _ACEOF
20488 rm -f conftest.$ac_objext conftest$ac_exeext
20489 if { (ac_try="$ac_link"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_link") 2>conftest.er1
20496 ac_status=$?
20497 grep -v '^ *+' conftest.er1 >conftest.err
20498 rm -f conftest.er1
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest$ac_exeext &&
20505 $as_test_x conftest$ac_exeext; then
20506 ac_cv_lib_com_err_com_err=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_lib_com_err_com_err=no
20514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20515 conftest$ac_exeext conftest.$ac_ext
20516 LIBS=$ac_check_lib_save_LIBS
20518 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20519 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20520 if test $ac_cv_lib_com_err_com_err = yes; then
20521 cat >>confdefs.h <<_ACEOF
20522 #define HAVE_LIBCOM_ERR 1
20523 _ACEOF
20525 LIBS="-lcom_err $LIBS"
20530 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20531 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lk5crypto $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char mit_des_cbc_encrypt ();
20552 main ()
20554 return mit_des_cbc_encrypt ();
20556 return 0;
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20578 else
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20590 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20591 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_LIBK5CRYPTO 1
20594 _ACEOF
20596 LIBS="-lk5crypto $LIBS"
20601 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20602 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20603 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606 ac_check_lib_save_LIBS=$LIBS
20607 LIBS="-lcrypto $LIBS"
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 char mit_des_cbc_encrypt ();
20623 main ()
20625 return mit_des_cbc_encrypt ();
20627 return 0;
20629 _ACEOF
20630 rm -f conftest.$ac_objext conftest$ac_exeext
20631 if { (ac_try="$ac_link"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_link") 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && {
20644 test -z "$ac_c_werror_flag" ||
20645 test ! -s conftest.err
20646 } && test -s conftest$ac_exeext &&
20647 $as_test_x conftest$ac_exeext; then
20648 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20649 else
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20657 conftest$ac_exeext conftest.$ac_ext
20658 LIBS=$ac_check_lib_save_LIBS
20660 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20661 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20662 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_LIBCRYPTO 1
20665 _ACEOF
20667 LIBS="-lcrypto $LIBS"
20672 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20673 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20674 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 else
20677 ac_check_lib_save_LIBS=$LIBS
20678 LIBS="-lkrb5 $LIBS"
20679 cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h. */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20689 #ifdef __cplusplus
20690 extern "C"
20691 #endif
20692 char krb5_init_context ();
20694 main ()
20696 return krb5_init_context ();
20698 return 0;
20700 _ACEOF
20701 rm -f conftest.$ac_objext conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_link") 2>conftest.er1
20709 ac_status=$?
20710 grep -v '^ *+' conftest.er1 >conftest.err
20711 rm -f conftest.er1
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest$ac_exeext &&
20718 $as_test_x conftest$ac_exeext; then
20719 ac_cv_lib_krb5_krb5_init_context=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_cv_lib_krb5_krb5_init_context=no
20727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20728 conftest$ac_exeext conftest.$ac_ext
20729 LIBS=$ac_check_lib_save_LIBS
20731 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20732 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20733 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_LIBKRB5 1
20736 _ACEOF
20738 LIBS="-lkrb5 $LIBS"
20742 if test "${with_kerberos5}" = no; then
20744 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20745 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20746 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 ac_check_lib_save_LIBS=$LIBS
20750 LIBS="-ldes425 $LIBS"
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h. */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20758 /* Override any GCC internal prototype to avoid an error.
20759 Use char because int might match the return type of a GCC
20760 builtin and then its argument prototype would still apply. */
20761 #ifdef __cplusplus
20762 extern "C"
20763 #endif
20764 char des_cbc_encrypt ();
20766 main ()
20768 return des_cbc_encrypt ();
20770 return 0;
20772 _ACEOF
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest$ac_exeext &&
20790 $as_test_x conftest$ac_exeext; then
20791 ac_cv_lib_des425_des_cbc_encrypt=yes
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_lib_des425_des_cbc_encrypt=no
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20803 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20804 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20805 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_LIBDES425 1
20808 _ACEOF
20810 LIBS="-ldes425 $LIBS"
20812 else
20814 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20815 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-ldes $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char des_cbc_encrypt ();
20836 main ()
20838 return des_cbc_encrypt ();
20840 return 0;
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 ac_cv_lib_des_des_cbc_encrypt=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_cv_lib_des_des_cbc_encrypt=no
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20874 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20875 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_LIBDES 1
20878 _ACEOF
20880 LIBS="-ldes $LIBS"
20887 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20888 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20889 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-lkrb4 $LIBS"
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 char krb_get_cred ();
20909 main ()
20911 return krb_get_cred ();
20913 return 0;
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_lib_krb4_krb_get_cred=yes
20935 else
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_cv_lib_krb4_krb_get_cred=no
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20946 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20947 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20948 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_LIBKRB4 1
20951 _ACEOF
20953 LIBS="-lkrb4 $LIBS"
20955 else
20957 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20958 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20959 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20960 echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962 ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lkrb $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20971 /* Override any GCC internal prototype to avoid an error.
20972 Use char because int might match the return type of a GCC
20973 builtin and then its argument prototype would still apply. */
20974 #ifdef __cplusplus
20975 extern "C"
20976 #endif
20977 char krb_get_cred ();
20979 main ()
20981 return krb_get_cred ();
20983 return 0;
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20994 ac_status=$?
20995 grep -v '^ *+' conftest.er1 >conftest.err
20996 rm -f conftest.er1
20997 cat conftest.err >&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest$ac_exeext &&
21003 $as_test_x conftest$ac_exeext; then
21004 ac_cv_lib_krb_krb_get_cred=yes
21005 else
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.$ac_ext >&5
21009 ac_cv_lib_krb_krb_get_cred=no
21012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21013 conftest$ac_exeext conftest.$ac_ext
21014 LIBS=$ac_check_lib_save_LIBS
21016 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21017 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21018 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21019 cat >>confdefs.h <<_ACEOF
21020 #define HAVE_LIBKRB 1
21021 _ACEOF
21023 LIBS="-lkrb $LIBS"
21031 if test "${with_kerberos5}" != no; then
21033 for ac_header in krb5.h
21035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 ac_res=`eval echo '${'$as_ac_Header'}'`
21043 { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21045 else
21046 # Is the header compilable?
21047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h. */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 #include <$ac_header>
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21075 ac_header_compiler=yes
21076 else
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_header_compiler=no
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21085 echo "${ECHO_T}$ac_header_compiler" >&6; }
21087 # Is the header present?
21088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h. */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 #include <$ac_header>
21097 _ACEOF
21098 if { (ac_try="$ac_cpp conftest.$ac_ext"
21099 case "(($ac_try" in
21100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21101 *) ac_try_echo=$ac_try;;
21102 esac
21103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } >/dev/null && {
21111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 }; then
21114 ac_header_preproc=yes
21115 else
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 ac_header_preproc=no
21122 rm -f conftest.err conftest.$ac_ext
21123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21124 echo "${ECHO_T}$ac_header_preproc" >&6; }
21126 # So? What about this header?
21127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21128 yes:no: )
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21133 ac_header_preproc=yes
21135 no:yes:* )
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150 esac
21151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156 eval "$as_ac_Header=\$ac_header_preproc"
21158 ac_res=`eval echo '${'$as_ac_Header'}'`
21159 { echo "$as_me:$LINENO: result: $ac_res" >&5
21160 echo "${ECHO_T}$ac_res" >&6; }
21163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21164 cat >>confdefs.h <<_ACEOF
21165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21166 _ACEOF
21167 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21168 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21169 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 else
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <krb5.h>
21181 main ()
21183 static krb5_error ac_aggr;
21184 if (ac_aggr.text)
21185 return 0;
21187 return 0;
21189 _ACEOF
21190 rm -f conftest.$ac_objext
21191 if { (ac_try="$ac_compile"
21192 case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195 esac
21196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest.$ac_objext; then
21207 ac_cv_member_krb5_error_text=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h. */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h. */
21218 #include <krb5.h>
21221 main ()
21223 static krb5_error ac_aggr;
21224 if (sizeof ac_aggr.text)
21225 return 0;
21227 return 0;
21229 _ACEOF
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21238 ac_status=$?
21239 grep -v '^ *+' conftest.er1 >conftest.err
21240 rm -f conftest.er1
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_cv_member_krb5_error_text=yes
21248 else
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_member_krb5_error_text=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21261 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21262 if test $ac_cv_member_krb5_error_text = yes; then
21264 cat >>confdefs.h <<_ACEOF
21265 #define HAVE_KRB5_ERROR_TEXT 1
21266 _ACEOF
21270 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21271 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21272 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h. */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 #include <krb5.h>
21284 main ()
21286 static krb5_error ac_aggr;
21287 if (ac_aggr.e_text)
21288 return 0;
21290 return 0;
21292 _ACEOF
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21298 esac
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21301 ac_status=$?
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.$ac_objext; then
21310 ac_cv_member_krb5_error_e_text=yes
21311 else
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.$ac_ext >&5
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 #include <krb5.h>
21324 main ()
21326 static krb5_error ac_aggr;
21327 if (sizeof ac_aggr.e_text)
21328 return 0;
21330 return 0;
21332 _ACEOF
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21338 esac
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21341 ac_status=$?
21342 grep -v '^ *+' conftest.er1 >conftest.err
21343 rm -f conftest.er1
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.$ac_objext; then
21350 ac_cv_member_krb5_error_e_text=yes
21351 else
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_cv_member_krb5_error_e_text=no
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21364 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21365 if test $ac_cv_member_krb5_error_e_text = yes; then
21367 cat >>confdefs.h <<_ACEOF
21368 #define HAVE_KRB5_ERROR_E_TEXT 1
21369 _ACEOF
21376 done
21378 else
21380 for ac_header in des.h
21382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 ac_res=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21392 else
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21404 _ACEOF
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.$ac_objext; then
21422 ac_header_compiler=yes
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_compiler=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21444 _ACEOF
21445 if { (ac_try="$ac_cpp conftest.$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } >/dev/null && {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 }; then
21461 ac_header_preproc=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21466 ac_header_preproc=no
21469 rm -f conftest.err conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 yes:no: )
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc=yes
21482 no:yes:* )
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21497 esac
21498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503 eval "$as_ac_Header=\$ac_header_preproc"
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21511 cat >>confdefs.h <<_ACEOF
21512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21513 _ACEOF
21515 else
21517 for ac_header in kerberosIV/des.h
21519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 ac_res=`eval echo '${'$as_ac_Header'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21529 else
21530 # Is the header compilable?
21531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h. */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21539 $ac_includes_default
21540 #include <$ac_header>
21541 _ACEOF
21542 rm -f conftest.$ac_objext
21543 if { (ac_try="$ac_compile"
21544 case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549 (eval "$ac_compile") 2>conftest.er1
21550 ac_status=$?
21551 grep -v '^ *+' conftest.er1 >conftest.err
21552 rm -f conftest.er1
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } && {
21556 test -z "$ac_c_werror_flag" ||
21557 test ! -s conftest.err
21558 } && test -s conftest.$ac_objext; then
21559 ac_header_compiler=yes
21560 else
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h. */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <$ac_header>
21581 _ACEOF
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21586 esac
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21589 ac_status=$?
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev/null && {
21595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21596 test ! -s conftest.err
21597 }; then
21598 ac_header_preproc=yes
21599 else
21600 echo "$as_me: failed program was:" >&5
21601 sed 's/^/| /' conftest.$ac_ext >&5
21603 ac_header_preproc=no
21606 rm -f conftest.err conftest.$ac_ext
21607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21608 echo "${ECHO_T}$ac_header_preproc" >&6; }
21610 # So? What about this header?
21611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21612 yes:no: )
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21617 ac_header_preproc=yes
21619 no:yes:* )
21620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21634 esac
21635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21638 echo $ECHO_N "(cached) $ECHO_C" >&6
21639 else
21640 eval "$as_ac_Header=\$ac_header_preproc"
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21648 cat >>confdefs.h <<_ACEOF
21649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21650 _ACEOF
21652 else
21654 for ac_header in kerberos/des.h
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 ac_res=`eval echo '${'$as_ac_Header'}'`
21664 { echo "$as_me:$LINENO: result: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21666 else
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <$ac_header>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21697 else
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 ac_header_compiler=no
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <$ac_header>
21718 _ACEOF
21719 if { (ac_try="$ac_cpp conftest.$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } >/dev/null && {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 }; then
21735 ac_header_preproc=yes
21736 else
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_header_preproc=no
21743 rm -f conftest.err conftest.$ac_ext
21744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21749 yes:no: )
21750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21754 ac_header_preproc=yes
21756 no:yes:* )
21757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21771 esac
21772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777 eval "$as_ac_Header=\$ac_header_preproc"
21779 ac_res=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21785 cat >>confdefs.h <<_ACEOF
21786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21787 _ACEOF
21791 done
21795 done
21799 done
21802 for ac_header in krb.h
21804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21809 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 ac_res=`eval echo '${'$as_ac_Header'}'`
21812 { echo "$as_me:$LINENO: result: $ac_res" >&5
21813 echo "${ECHO_T}$ac_res" >&6; }
21814 else
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h. */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <$ac_header>
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21835 ac_status=$?
21836 grep -v '^ *+' conftest.er1 >conftest.err
21837 rm -f conftest.er1
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21845 else
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <$ac_header>
21866 _ACEOF
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21874 ac_status=$?
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21882 }; then
21883 ac_header_preproc=yes
21884 else
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21897 yes:no: )
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
21904 no:yes:* )
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21919 esac
21920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925 eval "$as_ac_Header=\$ac_header_preproc"
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928 { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21933 cat >>confdefs.h <<_ACEOF
21934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21935 _ACEOF
21937 else
21939 for ac_header in kerberosIV/krb.h
21941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21948 ac_res=`eval echo '${'$as_ac_Header'}'`
21949 { echo "$as_me:$LINENO: result: $ac_res" >&5
21950 echo "${ECHO_T}$ac_res" >&6; }
21951 else
21952 # Is the header compilable?
21953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h. */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <$ac_header>
21963 _ACEOF
21964 rm -f conftest.$ac_objext
21965 if { (ac_try="$ac_compile"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_header_compiler=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ac_header_compiler=no
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21991 echo "${ECHO_T}$ac_header_compiler" >&6; }
21993 # Is the header present?
21994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h. */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <$ac_header>
22003 _ACEOF
22004 if { (ac_try="$ac_cpp conftest.$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } >/dev/null && {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 }; then
22020 ac_header_preproc=yes
22021 else
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22025 ac_header_preproc=no
22028 rm -f conftest.err conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6; }
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 yes:no: )
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc=yes
22041 no:yes:* )
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22056 esac
22057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062 eval "$as_ac_Header=\$ac_header_preproc"
22064 ac_res=`eval echo '${'$as_ac_Header'}'`
22065 { echo "$as_me:$LINENO: result: $ac_res" >&5
22066 echo "${ECHO_T}$ac_res" >&6; }
22069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22072 _ACEOF
22074 else
22076 for ac_header in kerberos/krb.h
22078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 echo $ECHO_N "(cached) $ECHO_C" >&6
22085 ac_res=`eval echo '${'$as_ac_Header'}'`
22086 { echo "$as_me:$LINENO: result: $ac_res" >&5
22087 echo "${ECHO_T}$ac_res" >&6; }
22088 else
22089 # Is the header compilable?
22090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22092 cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h. */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22098 $ac_includes_default
22099 #include <$ac_header>
22100 _ACEOF
22101 rm -f conftest.$ac_objext
22102 if { (ac_try="$ac_compile"
22103 case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } && {
22115 test -z "$ac_c_werror_flag" ||
22116 test ! -s conftest.err
22117 } && test -s conftest.$ac_objext; then
22118 ac_header_compiler=yes
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22123 ac_header_compiler=no
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22128 echo "${ECHO_T}$ac_header_compiler" >&6; }
22130 # Is the header present?
22131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22139 #include <$ac_header>
22140 _ACEOF
22141 if { (ac_try="$ac_cpp conftest.$ac_ext"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } >/dev/null && {
22154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 }; then
22157 ac_header_preproc=yes
22158 else
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ac_header_preproc=no
22165 rm -f conftest.err conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22167 echo "${ECHO_T}$ac_header_preproc" >&6; }
22169 # So? What about this header?
22170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22171 yes:no: )
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22176 ac_header_preproc=yes
22178 no:yes:* )
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22193 esac
22194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199 eval "$as_ac_Header=\$ac_header_preproc"
22201 ac_res=`eval echo '${'$as_ac_Header'}'`
22202 { echo "$as_me:$LINENO: result: $ac_res" >&5
22203 echo "${ECHO_T}$ac_res" >&6; }
22206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22207 cat >>confdefs.h <<_ACEOF
22208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22209 _ACEOF
22213 done
22217 done
22221 done
22225 for ac_header in com_err.h
22227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 ac_res=`eval echo '${'$as_ac_Header'}'`
22235 { echo "$as_me:$LINENO: result: $ac_res" >&5
22236 echo "${ECHO_T}$ac_res" >&6; }
22237 else
22238 # Is the header compilable?
22239 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22241 cat >conftest.$ac_ext <<_ACEOF
22242 /* confdefs.h. */
22243 _ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 $ac_includes_default
22248 #include <$ac_header>
22249 _ACEOF
22250 rm -f conftest.$ac_objext
22251 if { (ac_try="$ac_compile"
22252 case "(($ac_try" in
22253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_compile") 2>conftest.er1
22258 ac_status=$?
22259 grep -v '^ *+' conftest.er1 >conftest.err
22260 rm -f conftest.er1
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } && {
22264 test -z "$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22266 } && test -s conftest.$ac_objext; then
22267 ac_header_compiler=yes
22268 else
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22272 ac_header_compiler=no
22275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22277 echo "${ECHO_T}$ac_header_compiler" >&6; }
22279 # Is the header present?
22280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22282 cat >conftest.$ac_ext <<_ACEOF
22283 /* confdefs.h. */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 #include <$ac_header>
22289 _ACEOF
22290 if { (ac_try="$ac_cpp conftest.$ac_ext"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } >/dev/null && {
22303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 }; then
22306 ac_header_preproc=yes
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_header_preproc=no
22314 rm -f conftest.err conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22316 echo "${ECHO_T}$ac_header_preproc" >&6; }
22318 # So? What about this header?
22319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22320 yes:no: )
22321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22325 ac_header_preproc=yes
22327 no:yes:* )
22328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22342 esac
22343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 eval "$as_ac_Header=\$ac_header_preproc"
22350 ac_res=`eval echo '${'$as_ac_Header'}'`
22351 { echo "$as_me:$LINENO: result: $ac_res" >&5
22352 echo "${ECHO_T}$ac_res" >&6; }
22355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22356 cat >>confdefs.h <<_ACEOF
22357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22358 _ACEOF
22362 done
22366 # Solaris requires -lintl if you want strerror (which calls dgettext)
22367 # to return localized messages.
22369 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22370 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22371 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374 ac_check_lib_save_LIBS=$LIBS
22375 LIBS="-lintl $LIBS"
22376 cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h. */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22383 /* Override any GCC internal prototype to avoid an error.
22384 Use char because int might match the return type of a GCC
22385 builtin and then its argument prototype would still apply. */
22386 #ifdef __cplusplus
22387 extern "C"
22388 #endif
22389 char dgettext ();
22391 main ()
22393 return dgettext ();
22395 return 0;
22397 _ACEOF
22398 rm -f conftest.$ac_objext conftest$ac_exeext
22399 if { (ac_try="$ac_link"
22400 case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_link") 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } && {
22412 test -z "$ac_c_werror_flag" ||
22413 test ! -s conftest.err
22414 } && test -s conftest$ac_exeext &&
22415 $as_test_x conftest$ac_exeext; then
22416 ac_cv_lib_intl_dgettext=yes
22417 else
22418 echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22421 ac_cv_lib_intl_dgettext=no
22424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22425 conftest$ac_exeext conftest.$ac_ext
22426 LIBS=$ac_check_lib_save_LIBS
22428 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22429 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22430 if test $ac_cv_lib_intl_dgettext = yes; then
22431 cat >>confdefs.h <<_ACEOF
22432 #define HAVE_LIBINTL 1
22433 _ACEOF
22435 LIBS="-lintl $LIBS"
22440 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22441 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22442 if test "${emacs_cv_localtime_cache+set}" = set; then
22443 echo $ECHO_N "(cached) $ECHO_C" >&6
22444 else
22445 if test x$ac_cv_func_tzset = xyes; then
22446 if test "$cross_compiling" = yes; then
22447 # If we have tzset, assume the worst when cross-compiling.
22448 emacs_cv_localtime_cache=yes
22449 else
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 #include <time.h>
22457 extern char **environ;
22458 unset_TZ ()
22460 char **from, **to;
22461 for (to = from = environ; (*to = *from); from++)
22462 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22463 to++;
22465 char TZ_GMT0[] = "TZ=GMT0";
22466 char TZ_PST8[] = "TZ=PST8";
22467 main()
22469 time_t now = time ((time_t *) 0);
22470 int hour_GMT0, hour_unset;
22471 if (putenv (TZ_GMT0) != 0)
22472 exit (1);
22473 hour_GMT0 = localtime (&now)->tm_hour;
22474 unset_TZ ();
22475 hour_unset = localtime (&now)->tm_hour;
22476 if (putenv (TZ_PST8) != 0)
22477 exit (1);
22478 if (localtime (&now)->tm_hour == hour_GMT0)
22479 exit (1);
22480 unset_TZ ();
22481 if (localtime (&now)->tm_hour != hour_unset)
22482 exit (1);
22483 exit (0);
22485 _ACEOF
22486 rm -f conftest$ac_exeext
22487 if { (ac_try="$ac_link"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_link") 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22497 { (case "(($ac_try" in
22498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22500 esac
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_try") 2>&5
22503 ac_status=$?
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); }; }; then
22506 emacs_cv_localtime_cache=no
22507 else
22508 echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ( exit $ac_status )
22513 emacs_cv_localtime_cache=yes
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22519 else
22520 # If we lack tzset, report that localtime does not cache TZ,
22521 # since we can't invalidate the cache if we don't have tzset.
22522 emacs_cv_localtime_cache=no
22525 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22526 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22527 if test $emacs_cv_localtime_cache = yes; then
22529 cat >>confdefs.h <<\_ACEOF
22530 #define LOCALTIME_CACHE 1
22531 _ACEOF
22535 if test "x$HAVE_TIMEVAL" = xyes; then
22537 for ac_func in gettimeofday
22539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22543 echo $ECHO_N "(cached) $ECHO_C" >&6
22544 else
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22553 #define $ac_func innocuous_$ac_func
22555 /* System header to define __stub macros and hopefully few prototypes,
22556 which can conflict with char $ac_func (); below.
22557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22558 <limits.h> exists even on freestanding compilers. */
22560 #ifdef __STDC__
22561 # include <limits.h>
22562 #else
22563 # include <assert.h>
22564 #endif
22566 #undef $ac_func
22568 /* Override any GCC internal prototype to avoid an error.
22569 Use char because int might match the return type of a GCC
22570 builtin and then its argument prototype would still apply. */
22571 #ifdef __cplusplus
22572 extern "C"
22573 #endif
22574 char $ac_func ();
22575 /* The GNU C library defines this for functions which it implements
22576 to always fail with ENOSYS. Some functions are actually named
22577 something starting with __ and the normal name is an alias. */
22578 #if defined __stub_$ac_func || defined __stub___$ac_func
22579 choke me
22580 #endif
22583 main ()
22585 return $ac_func ();
22587 return 0;
22589 _ACEOF
22590 rm -f conftest.$ac_objext conftest$ac_exeext
22591 if { (ac_try="$ac_link"
22592 case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_link") 2>conftest.er1
22598 ac_status=$?
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && {
22604 test -z "$ac_c_werror_flag" ||
22605 test ! -s conftest.err
22606 } && test -s conftest$ac_exeext &&
22607 $as_test_x conftest$ac_exeext; then
22608 eval "$as_ac_var=yes"
22609 else
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 eval "$as_ac_var=no"
22616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22617 conftest$ac_exeext conftest.$ac_ext
22619 ac_res=`eval echo '${'$as_ac_var'}'`
22620 { echo "$as_me:$LINENO: result: $ac_res" >&5
22621 echo "${ECHO_T}$ac_res" >&6; }
22622 if test `eval echo '${'$as_ac_var'}'` = yes; then
22623 cat >>confdefs.h <<_ACEOF
22624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22625 _ACEOF
22628 done
22630 if test $ac_cv_func_gettimeofday = yes; then
22631 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22632 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22633 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22643 #ifdef TIME_WITH_SYS_TIME
22644 #include <sys/time.h>
22645 #include <time.h>
22646 #else
22647 #ifdef HAVE_SYS_TIME_H
22648 #include <sys/time.h>
22649 #else
22650 #include <time.h>
22651 #endif
22652 #endif
22654 main ()
22656 struct timeval time;
22657 gettimeofday (&time, 0);
22659 return 0;
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 emacs_cv_gettimeofday_two_arguments=yes
22680 else
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 emacs_cv_gettimeofday_two_arguments=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22690 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22691 if test $emacs_cv_gettimeofday_two_arguments = no; then
22693 cat >>confdefs.h <<\_ACEOF
22694 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22695 _ACEOF
22701 ok_so_far=yes
22702 { echo "$as_me:$LINENO: checking for socket" >&5
22703 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22704 if test "${ac_cv_func_socket+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707 cat >conftest.$ac_ext <<_ACEOF
22708 /* confdefs.h. */
22709 _ACEOF
22710 cat confdefs.h >>conftest.$ac_ext
22711 cat >>conftest.$ac_ext <<_ACEOF
22712 /* end confdefs.h. */
22713 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22715 #define socket innocuous_socket
22717 /* System header to define __stub macros and hopefully few prototypes,
22718 which can conflict with char socket (); below.
22719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22720 <limits.h> exists even on freestanding compilers. */
22722 #ifdef __STDC__
22723 # include <limits.h>
22724 #else
22725 # include <assert.h>
22726 #endif
22728 #undef socket
22730 /* Override any GCC internal prototype to avoid an error.
22731 Use char because int might match the return type of a GCC
22732 builtin and then its argument prototype would still apply. */
22733 #ifdef __cplusplus
22734 extern "C"
22735 #endif
22736 char socket ();
22737 /* The GNU C library defines this for functions which it implements
22738 to always fail with ENOSYS. Some functions are actually named
22739 something starting with __ and the normal name is an alias. */
22740 #if defined __stub_socket || defined __stub___socket
22741 choke me
22742 #endif
22745 main ()
22747 return socket ();
22749 return 0;
22751 _ACEOF
22752 rm -f conftest.$ac_objext conftest$ac_exeext
22753 if { (ac_try="$ac_link"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22757 esac
22758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_link") 2>conftest.er1
22760 ac_status=$?
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest$ac_exeext &&
22769 $as_test_x conftest$ac_exeext; then
22770 ac_cv_func_socket=yes
22771 else
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ac_cv_func_socket=no
22778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22779 conftest$ac_exeext conftest.$ac_ext
22781 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22782 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22783 if test $ac_cv_func_socket = yes; then
22785 else
22786 ok_so_far=no
22789 if test $ok_so_far = yes; then
22790 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22791 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22792 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22793 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22797 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22798 else
22799 # Is the header compilable?
22800 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22801 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22802 cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 $ac_includes_default
22809 #include <netinet/in.h>
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815 *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_header_compiler=yes
22829 else
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_header_compiler=no
22836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22838 echo "${ECHO_T}$ac_header_compiler" >&6; }
22840 # Is the header present?
22841 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22842 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h. */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22849 #include <netinet/in.h>
22850 _ACEOF
22851 if { (ac_try="$ac_cpp conftest.$ac_ext"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22858 ac_status=$?
22859 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } >/dev/null && {
22864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 }; then
22867 ac_header_preproc=yes
22868 else
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_header_preproc=no
22875 rm -f conftest.err conftest.$ac_ext
22876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22877 echo "${ECHO_T}$ac_header_preproc" >&6; }
22879 # So? What about this header?
22880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22881 yes:no: )
22882 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22883 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22885 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22886 ac_header_preproc=yes
22888 no:yes:* )
22889 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22890 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22891 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22892 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22893 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22894 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22895 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22896 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22897 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22898 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22899 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22900 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22903 esac
22904 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22905 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22908 else
22909 ac_cv_header_netinet_in_h=$ac_header_preproc
22911 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22912 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22915 if test $ac_cv_header_netinet_in_h = yes; then
22917 else
22918 ok_so_far=no
22923 if test $ok_so_far = yes; then
22924 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22925 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22926 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22927 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22931 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22932 else
22933 # Is the header compilable?
22934 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22935 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 $ac_includes_default
22943 #include <arpa/inet.h>
22944 _ACEOF
22945 rm -f conftest.$ac_objext
22946 if { (ac_try="$ac_compile"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22950 esac
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_compile") 2>conftest.er1
22953 ac_status=$?
22954 grep -v '^ *+' conftest.er1 >conftest.err
22955 rm -f conftest.er1
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest.$ac_objext; then
22962 ac_header_compiler=yes
22963 else
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ac_header_compiler=no
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22972 echo "${ECHO_T}$ac_header_compiler" >&6; }
22974 # Is the header present?
22975 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22976 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22978 /* confdefs.h. */
22979 _ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22983 #include <arpa/inet.h>
22984 _ACEOF
22985 if { (ac_try="$ac_cpp conftest.$ac_ext"
22986 case "(($ac_try" in
22987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22988 *) ac_try_echo=$ac_try;;
22989 esac
22990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22992 ac_status=$?
22993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } >/dev/null && {
22998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22999 test ! -s conftest.err
23000 }; then
23001 ac_header_preproc=yes
23002 else
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23006 ac_header_preproc=no
23009 rm -f conftest.err conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23011 echo "${ECHO_T}$ac_header_preproc" >&6; }
23013 # So? What about this header?
23014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23015 yes:no: )
23016 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23017 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23018 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23019 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23020 ac_header_preproc=yes
23022 no:yes:* )
23023 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23024 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23025 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23026 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23027 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23028 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23029 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23030 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23031 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23032 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23033 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23034 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23037 esac
23038 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23039 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043 ac_cv_header_arpa_inet_h=$ac_header_preproc
23045 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23046 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23049 if test $ac_cv_header_arpa_inet_h = yes; then
23051 else
23052 ok_so_far=no
23057 if test $ok_so_far = yes; then
23059 cat >>confdefs.h <<\_ACEOF
23060 #define HAVE_INET_SOCKETS 1
23061 _ACEOF
23066 for ac_header in sys/ioctl.h
23068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23075 ac_res=`eval echo '${'$as_ac_Header'}'`
23076 { echo "$as_me:$LINENO: result: $ac_res" >&5
23077 echo "${ECHO_T}$ac_res" >&6; }
23078 else
23079 # Is the header compilable?
23080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23082 cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h. */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 $ac_includes_default
23089 #include <$ac_header>
23090 _ACEOF
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23096 esac
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 ac_header_compiler=yes
23109 else
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_header_compiler=no
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23118 echo "${ECHO_T}$ac_header_compiler" >&6; }
23120 # Is the header present?
23121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23123 cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h. */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <$ac_header>
23130 _ACEOF
23131 if { (ac_try="$ac_cpp conftest.$ac_ext"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } >/dev/null && {
23144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 }; then
23147 ac_header_preproc=yes
23148 else
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23152 ac_header_preproc=no
23155 rm -f conftest.err conftest.$ac_ext
23156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23157 echo "${ECHO_T}$ac_header_preproc" >&6; }
23159 # So? What about this header?
23160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23161 yes:no: )
23162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23166 ac_header_preproc=yes
23168 no:yes:* )
23169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23183 esac
23184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 eval "$as_ac_Header=\$ac_header_preproc"
23191 ac_res=`eval echo '${'$as_ac_Header'}'`
23192 { echo "$as_me:$LINENO: result: $ac_res" >&5
23193 echo "${ECHO_T}$ac_res" >&6; }
23196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23197 cat >>confdefs.h <<_ACEOF
23198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23199 _ACEOF
23203 done
23206 if test -f /usr/lpp/X11/bin/smt.exp; then
23208 cat >>confdefs.h <<\_ACEOF
23209 #define HAVE_AIX_SMT_EXP 1
23210 _ACEOF
23214 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23215 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23216 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23217 { echo "$as_me:$LINENO: result: yes" >&5
23218 echo "${ECHO_T}yes" >&6; }
23220 cat >>confdefs.h <<\_ACEOF
23221 #define HAVE_DEV_PTMX 1
23222 _ACEOF
23224 else
23225 { echo "$as_me:$LINENO: result: no" >&5
23226 echo "${ECHO_T}no" >&6; }
23229 { echo "$as_me:$LINENO: checking for pid_t" >&5
23230 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23231 if test "${ac_cv_type_pid_t+set}" = set; then
23232 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 else
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h. */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23241 typedef pid_t ac__type_new_;
23243 main ()
23245 if ((ac__type_new_ *) 0)
23246 return 0;
23247 if (sizeof (ac__type_new_))
23248 return 0;
23250 return 0;
23252 _ACEOF
23253 rm -f conftest.$ac_objext
23254 if { (ac_try="$ac_compile"
23255 case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258 esac
23259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_compile") 2>conftest.er1
23261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } && {
23267 test -z "$ac_c_werror_flag" ||
23268 test ! -s conftest.err
23269 } && test -s conftest.$ac_objext; then
23270 ac_cv_type_pid_t=yes
23271 else
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23275 ac_cv_type_pid_t=no
23278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23281 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23282 if test $ac_cv_type_pid_t = yes; then
23284 else
23286 cat >>confdefs.h <<_ACEOF
23287 #define pid_t int
23288 _ACEOF
23293 for ac_header in vfork.h
23295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 ac_res=`eval echo '${'$as_ac_Header'}'`
23303 { echo "$as_me:$LINENO: result: $ac_res" >&5
23304 echo "${ECHO_T}$ac_res" >&6; }
23305 else
23306 # Is the header compilable?
23307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 $ac_includes_default
23316 #include <$ac_header>
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_header_compiler=yes
23336 else
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_header_compiler=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23345 echo "${ECHO_T}$ac_header_compiler" >&6; }
23347 # Is the header present?
23348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23350 cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h. */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 #include <$ac_header>
23357 _ACEOF
23358 if { (ac_try="$ac_cpp conftest.$ac_ext"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23362 esac
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23365 ac_status=$?
23366 grep -v '^ *+' conftest.er1 >conftest.err
23367 rm -f conftest.er1
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } >/dev/null && {
23371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23373 }; then
23374 ac_header_preproc=yes
23375 else
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_header_preproc=no
23382 rm -f conftest.err conftest.$ac_ext
23383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6; }
23386 # So? What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23388 yes:no: )
23389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23393 ac_header_preproc=yes
23395 no:yes:* )
23396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23410 esac
23411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23415 else
23416 eval "$as_ac_Header=\$ac_header_preproc"
23418 ac_res=`eval echo '${'$as_ac_Header'}'`
23419 { echo "$as_me:$LINENO: result: $ac_res" >&5
23420 echo "${ECHO_T}$ac_res" >&6; }
23423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23424 cat >>confdefs.h <<_ACEOF
23425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23426 _ACEOF
23430 done
23434 for ac_func in fork vfork
23436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23450 #define $ac_func innocuous_$ac_func
23452 /* System header to define __stub macros and hopefully few prototypes,
23453 which can conflict with char $ac_func (); below.
23454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23455 <limits.h> exists even on freestanding compilers. */
23457 #ifdef __STDC__
23458 # include <limits.h>
23459 #else
23460 # include <assert.h>
23461 #endif
23463 #undef $ac_func
23465 /* Override any GCC internal prototype to avoid an error.
23466 Use char because int might match the return type of a GCC
23467 builtin and then its argument prototype would still apply. */
23468 #ifdef __cplusplus
23469 extern "C"
23470 #endif
23471 char $ac_func ();
23472 /* The GNU C library defines this for functions which it implements
23473 to always fail with ENOSYS. Some functions are actually named
23474 something starting with __ and the normal name is an alias. */
23475 #if defined __stub_$ac_func || defined __stub___$ac_func
23476 choke me
23477 #endif
23480 main ()
23482 return $ac_func ();
23484 return 0;
23486 _ACEOF
23487 rm -f conftest.$ac_objext conftest$ac_exeext
23488 if { (ac_try="$ac_link"
23489 case "(($ac_try" in
23490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491 *) ac_try_echo=$ac_try;;
23492 esac
23493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494 (eval "$ac_link") 2>conftest.er1
23495 ac_status=$?
23496 grep -v '^ *+' conftest.er1 >conftest.err
23497 rm -f conftest.er1
23498 cat conftest.err >&5
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); } && {
23501 test -z "$ac_c_werror_flag" ||
23502 test ! -s conftest.err
23503 } && test -s conftest$ac_exeext &&
23504 $as_test_x conftest$ac_exeext; then
23505 eval "$as_ac_var=yes"
23506 else
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23510 eval "$as_ac_var=no"
23513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23514 conftest$ac_exeext conftest.$ac_ext
23516 ac_res=`eval echo '${'$as_ac_var'}'`
23517 { echo "$as_me:$LINENO: result: $ac_res" >&5
23518 echo "${ECHO_T}$ac_res" >&6; }
23519 if test `eval echo '${'$as_ac_var'}'` = yes; then
23520 cat >>confdefs.h <<_ACEOF
23521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23522 _ACEOF
23525 done
23527 if test "x$ac_cv_func_fork" = xyes; then
23528 { echo "$as_me:$LINENO: checking for working fork" >&5
23529 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23530 if test "${ac_cv_func_fork_works+set}" = set; then
23531 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 else
23533 if test "$cross_compiling" = yes; then
23534 ac_cv_func_fork_works=cross
23535 else
23536 cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h. */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23542 $ac_includes_default
23544 main ()
23547 /* By Ruediger Kuhlmann. */
23548 return fork () < 0;
23551 return 0;
23553 _ACEOF
23554 rm -f conftest$ac_exeext
23555 if { (ac_try="$ac_link"
23556 case "(($ac_try" in
23557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558 *) ac_try_echo=$ac_try;;
23559 esac
23560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23561 (eval "$ac_link") 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23565 { (case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23568 esac
23569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23570 (eval "$ac_try") 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; }; then
23574 ac_cv_func_fork_works=yes
23575 else
23576 echo "$as_me: program exited with status $ac_status" >&5
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23580 ( exit $ac_status )
23581 ac_cv_func_fork_works=no
23583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23588 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23589 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23591 else
23592 ac_cv_func_fork_works=$ac_cv_func_fork
23594 if test "x$ac_cv_func_fork_works" = xcross; then
23595 case $host in
23596 *-*-amigaos* | *-*-msdosdjgpp*)
23597 # Override, as these systems have only a dummy fork() stub
23598 ac_cv_func_fork_works=no
23601 ac_cv_func_fork_works=yes
23603 esac
23604 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23605 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23607 ac_cv_func_vfork_works=$ac_cv_func_vfork
23608 if test "x$ac_cv_func_vfork" = xyes; then
23609 { echo "$as_me:$LINENO: checking for working vfork" >&5
23610 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23611 if test "${ac_cv_func_vfork_works+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614 if test "$cross_compiling" = yes; then
23615 ac_cv_func_vfork_works=cross
23616 else
23617 cat >conftest.$ac_ext <<_ACEOF
23618 /* confdefs.h. */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h. */
23623 /* Thanks to Paul Eggert for this test. */
23624 $ac_includes_default
23625 #include <sys/wait.h>
23626 #ifdef HAVE_VFORK_H
23627 # include <vfork.h>
23628 #endif
23629 /* On some sparc systems, changes by the child to local and incoming
23630 argument registers are propagated back to the parent. The compiler
23631 is told about this with #include <vfork.h>, but some compilers
23632 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23633 static variable whose address is put into a register that is
23634 clobbered by the vfork. */
23635 static void
23636 #ifdef __cplusplus
23637 sparc_address_test (int arg)
23638 # else
23639 sparc_address_test (arg) int arg;
23640 #endif
23642 static pid_t child;
23643 if (!child) {
23644 child = vfork ();
23645 if (child < 0) {
23646 perror ("vfork");
23647 _exit(2);
23649 if (!child) {
23650 arg = getpid();
23651 write(-1, "", 0);
23652 _exit (arg);
23658 main ()
23660 pid_t parent = getpid ();
23661 pid_t child;
23663 sparc_address_test (0);
23665 child = vfork ();
23667 if (child == 0) {
23668 /* Here is another test for sparc vfork register problems. This
23669 test uses lots of local variables, at least as many local
23670 variables as main has allocated so far including compiler
23671 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23672 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23673 reuse the register of parent for one of the local variables,
23674 since it will think that parent can't possibly be used any more
23675 in this routine. Assigning to the local variable will thus
23676 munge parent in the parent process. */
23677 pid_t
23678 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23679 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23680 /* Convince the compiler that p..p7 are live; otherwise, it might
23681 use the same hardware register for all 8 local variables. */
23682 if (p != p1 || p != p2 || p != p3 || p != p4
23683 || p != p5 || p != p6 || p != p7)
23684 _exit(1);
23686 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23687 from child file descriptors. If the child closes a descriptor
23688 before it execs or exits, this munges the parent's descriptor
23689 as well. Test for this by closing stdout in the child. */
23690 _exit(close(fileno(stdout)) != 0);
23691 } else {
23692 int status;
23693 struct stat st;
23695 while (wait(&status) != child)
23697 return (
23698 /* Was there some problem with vforking? */
23699 child < 0
23701 /* Did the child fail? (This shouldn't happen.) */
23702 || status
23704 /* Did the vfork/compiler bug occur? */
23705 || parent != getpid()
23707 /* Did the file descriptor bug occur? */
23708 || fstat(fileno(stdout), &st) != 0
23712 _ACEOF
23713 rm -f conftest$ac_exeext
23714 if { (ac_try="$ac_link"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_link") 2>&5
23721 ac_status=$?
23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23724 { (case "(($ac_try" in
23725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726 *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729 (eval "$ac_try") 2>&5
23730 ac_status=$?
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; }; then
23733 ac_cv_func_vfork_works=yes
23734 else
23735 echo "$as_me: program exited with status $ac_status" >&5
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 ( exit $ac_status )
23740 ac_cv_func_vfork_works=no
23742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23748 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23751 if test "x$ac_cv_func_fork_works" = xcross; then
23752 ac_cv_func_vfork_works=$ac_cv_func_vfork
23753 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23754 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23757 if test "x$ac_cv_func_vfork_works" = xyes; then
23759 cat >>confdefs.h <<\_ACEOF
23760 #define HAVE_WORKING_VFORK 1
23761 _ACEOF
23763 else
23765 cat >>confdefs.h <<\_ACEOF
23766 #define vfork fork
23767 _ACEOF
23770 if test "x$ac_cv_func_fork_works" = xyes; then
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_WORKING_FORK 1
23774 _ACEOF
23779 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23780 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23781 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h. */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #include <langinfo.h>
23792 main ()
23794 char* cs = nl_langinfo(CODESET);
23796 return 0;
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806 (eval "$ac_link") 2>conftest.er1
23807 ac_status=$?
23808 grep -v '^ *+' conftest.er1 >conftest.err
23809 rm -f conftest.er1
23810 cat conftest.err >&5
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); } && {
23813 test -z "$ac_c_werror_flag" ||
23814 test ! -s conftest.err
23815 } && test -s conftest$ac_exeext &&
23816 $as_test_x conftest$ac_exeext; then
23817 emacs_cv_langinfo_codeset=yes
23818 else
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 emacs_cv_langinfo_codeset=no
23825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23826 conftest$ac_exeext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23830 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23831 if test $emacs_cv_langinfo_codeset = yes; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_LANGINFO_CODESET 1
23835 _ACEOF
23839 { echo "$as_me:$LINENO: checking for size_t" >&5
23840 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23841 if test "${ac_cv_type_size_t+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23843 else
23844 cat >conftest.$ac_ext <<_ACEOF
23845 /* confdefs.h. */
23846 _ACEOF
23847 cat confdefs.h >>conftest.$ac_ext
23848 cat >>conftest.$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 $ac_includes_default
23851 typedef size_t ac__type_new_;
23853 main ()
23855 if ((ac__type_new_ *) 0)
23856 return 0;
23857 if (sizeof (ac__type_new_))
23858 return 0;
23860 return 0;
23862 _ACEOF
23863 rm -f conftest.$ac_objext
23864 if { (ac_try="$ac_compile"
23865 case "(($ac_try" in
23866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867 *) ac_try_echo=$ac_try;;
23868 esac
23869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23870 (eval "$ac_compile") 2>conftest.er1
23871 ac_status=$?
23872 grep -v '^ *+' conftest.er1 >conftest.err
23873 rm -f conftest.er1
23874 cat conftest.err >&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } && {
23877 test -z "$ac_c_werror_flag" ||
23878 test ! -s conftest.err
23879 } && test -s conftest.$ac_objext; then
23880 ac_cv_type_size_t=yes
23881 else
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23885 ac_cv_type_size_t=no
23888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23891 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23892 if test $ac_cv_type_size_t = yes; then
23894 cat >>confdefs.h <<_ACEOF
23895 #define HAVE_SIZE_T 1
23896 _ACEOF
23902 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23903 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23904 if test "${ac_cv_type_mbstate_t+set}" = set; then
23905 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 else
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h. */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23914 # include <wchar.h>
23916 main ()
23918 mbstate_t x; return sizeof x;
23920 return 0;
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23928 esac
23929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_compile") 2>conftest.er1
23931 ac_status=$?
23932 grep -v '^ *+' conftest.er1 >conftest.err
23933 rm -f conftest.er1
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest.$ac_objext; then
23940 ac_cv_type_mbstate_t=yes
23941 else
23942 echo "$as_me: failed program was:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 ac_cv_type_mbstate_t=no
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23951 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23952 if test $ac_cv_type_mbstate_t = yes; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define HAVE_MBSTATE_T 1
23956 _ACEOF
23958 else
23960 cat >>confdefs.h <<\_ACEOF
23961 #define mbstate_t int
23962 _ACEOF
23966 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23967 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23968 if test "${emacs_cv_c_restrict+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971 cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h. */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h. */
23977 void fred (int *restrict x);
23979 main ()
23983 return 0;
23985 _ACEOF
23986 rm -f conftest.$ac_objext
23987 if { (ac_try="$ac_compile"
23988 case "(($ac_try" in
23989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23990 *) ac_try_echo=$ac_try;;
23991 esac
23992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23994 ac_status=$?
23995 grep -v '^ *+' conftest.er1 >conftest.err
23996 rm -f conftest.er1
23997 cat conftest.err >&5
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 emacs_cv_c_restrict=yes
24004 else
24005 echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h. */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h. */
24014 void fred (int *__restrict x);
24016 main ()
24020 return 0;
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (ac_try="$ac_compile"
24025 case "(($ac_try" in
24026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027 *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030 (eval "$ac_compile") 2>conftest.er1
24031 ac_status=$?
24032 grep -v '^ *+' conftest.er1 >conftest.err
24033 rm -f conftest.er1
24034 cat conftest.err >&5
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); } && {
24037 test -z "$ac_c_werror_flag" ||
24038 test ! -s conftest.err
24039 } && test -s conftest.$ac_objext; then
24040 emacs_cv_c_restrict=__restrict
24041 else
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24045 emacs_cv_c_restrict=no
24048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24053 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24054 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24055 case "$emacs_cv_c_restrict" in
24056 yes) emacs_restrict=restrict;;
24057 no) emacs_restrict="";;
24058 *) emacs_restrict="$emacs_cv_c_restrict";;
24059 esac
24060 if test "$emacs_restrict" != __restrict; then
24062 cat >>confdefs.h <<_ACEOF
24063 #define __restrict $emacs_restrict
24064 _ACEOF
24068 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24069 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24070 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24071 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073 cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h. */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24079 void fred (int x[__restrict]);
24081 main ()
24085 return 0;
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24096 ac_status=$?
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
24105 emacs_cv_c_restrict_arr=yes
24106 else
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 emacs_cv_c_restrict_arr=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24116 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24117 if test "$emacs_cv_c_restrict_arr" = yes; then
24119 cat >>confdefs.h <<\_ACEOF
24120 #define __restrict_arr __restrict
24121 _ACEOF
24127 # Set up the CFLAGS for real compilation, so we can substitute it.
24128 CFLAGS="$REAL_CFLAGS"
24129 CPPFLAGS="$REAL_CPPFLAGS"
24131 #### Find out which version of Emacs this is.
24132 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24133 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24134 if test x"${version}" = x; then
24135 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24136 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24137 { (exit 1); exit 1; }; }
24140 ### Specify what sort of things we'll be editing into Makefile and config.h.
24141 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24185 cat >>confdefs.h <<_ACEOF
24186 #define EMACS_CONFIGURATION "${canonical}"
24187 _ACEOF
24190 cat >>confdefs.h <<_ACEOF
24191 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24192 _ACEOF
24195 cat >>confdefs.h <<_ACEOF
24196 #define config_machfile "${machfile}"
24197 _ACEOF
24200 cat >>confdefs.h <<_ACEOF
24201 #define config_opsysfile "${opsysfile}"
24202 _ACEOF
24205 cat >>confdefs.h <<_ACEOF
24206 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24207 _ACEOF
24210 cat >>confdefs.h <<_ACEOF
24211 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24212 _ACEOF
24215 cat >>confdefs.h <<_ACEOF
24216 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24217 _ACEOF
24220 cat >>confdefs.h <<_ACEOF
24221 #define UNEXEC_SRC ${UNEXEC_SRC}
24222 _ACEOF
24225 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define HAVE_X_WINDOWS 1
24229 _ACEOF
24232 if test "${USE_X_TOOLKIT}" != "none" ; then
24234 cat >>confdefs.h <<\_ACEOF
24235 #define USE_X_TOOLKIT 1
24236 _ACEOF
24238 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24240 cat >>confdefs.h <<\_ACEOF
24241 #define USE_LUCID 1
24242 _ACEOF
24244 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24246 cat >>confdefs.h <<\_ACEOF
24247 #define USE_MOTIF 1
24248 _ACEOF
24252 if test "${HAVE_X11}" = "yes" ; then
24254 cat >>confdefs.h <<\_ACEOF
24255 #define HAVE_X11 1
24256 _ACEOF
24259 if test "${HAVE_MENUS}" = "yes" ; then
24261 cat >>confdefs.h <<\_ACEOF
24262 #define HAVE_MENUS 1
24263 _ACEOF
24266 if test "${GNU_MALLOC}" = "yes" ; then
24268 cat >>confdefs.h <<\_ACEOF
24269 #define GNU_MALLOC 1
24270 _ACEOF
24273 if test "${REL_ALLOC}" = "yes" ; then
24275 cat >>confdefs.h <<\_ACEOF
24276 #define REL_ALLOC 1
24277 _ACEOF
24286 #### Report on what we decided to do.
24287 #### Report GTK as a toolkit, even if it doesn't use Xt.
24288 #### It makes printing result more understandable as using GTK sets
24289 #### toolkit_scroll_bars to yes by default.
24290 if test "${HAVE_GTK}" = "yes"; then
24291 USE_X_TOOLKIT=GTK
24294 echo "
24295 Configured for \`${canonical}'.
24297 Where should the build process find the source code? ${srcdir}
24298 What operating system and machine description files should Emacs use?
24299 \`${opsysfile}' and \`${machfile}'
24300 What compiler should emacs be built with? ${CC} ${CFLAGS}
24301 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24302 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24303 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24304 What window system should Emacs use? ${window_system}
24305 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24307 if test -n "${x_includes}"; then
24308 echo " Where do we find X Windows header files? ${x_includes}"
24309 else
24310 echo " Where do we find X Windows header files? Standard dirs"
24312 if test -n "${x_libraries}"; then
24313 echo " Where do we find X Windows libraries? ${x_libraries}"
24314 else
24315 echo " Where do we find X Windows libraries? Standard dirs"
24318 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24319 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24320 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24321 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24322 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24323 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24324 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24325 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24326 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24328 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24329 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24330 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24331 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24333 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24334 echo
24336 if test $USE_XASSERTS = yes; then
24337 echo " Compiling with asserts turned on."
24338 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24341 echo
24343 if test "$USE_X_TOOLKIT" = GTK; then
24344 case "$canonical" in
24345 *cygwin*)
24346 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24347 will probably get a crash on startup. If this happens, please use another
24348 toolkit for Emacs. See etc/PROBLEMS for more information."
24350 esac
24353 if test "$HAVE_NS" = "yes"; then
24354 echo
24355 echo "You must run \"make install\" in order to test the built application.
24356 The installed application will go to nextstep/Emacs.app and can be
24357 run or moved from there."
24358 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24359 echo "The application will be fully self-contained."
24360 else
24361 echo "The lisp resources for the application will be installed under ${prefix}.
24362 You may need to run \"make install\" with sudo. The application will fail
24363 to run if these resources are not installed."
24365 echo
24368 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24369 echo "D-Bus integration has been tested for GNU/Linux only."
24370 echo
24374 # Remove any trailing slashes in these variables.
24375 test "${prefix}" != NONE &&
24376 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24377 test "${exec_prefix}" != NONE &&
24378 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24380 # Now get this: Some word that is part of the ${srcdir} directory name
24381 # or the ${configuration} value might, just might, happen to be an
24382 # identifier like `sun4' or `i386' or something, and be predefined by
24383 # the C preprocessor to some helpful value like 1, or maybe the empty
24384 # string. Needless to say consequent macro substitutions are less
24385 # than conducive to the makefile finding the correct directory.
24386 cpp_undefs="`echo $srcdir $configuration $canonical |
24387 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24388 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24390 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24391 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24392 ## from Makefile.c can correctly provide the arg `-traditional' to the
24393 ## C preprocessor.
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h. */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 yes..yes
24402 _ACEOF
24403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24404 $EGREP "yes..yes" >/dev/null 2>&1; then
24405 CPP_NEED_TRADITIONAL=no
24406 else
24407 CPP_NEED_TRADITIONAL=yes
24409 rm -f conftest*
24412 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"
24414 ac_config_commands="$ac_config_commands default"
24416 cat >confcache <<\_ACEOF
24417 # This file is a shell script that caches the results of configure
24418 # tests run on this system so they can be shared between configure
24419 # scripts and configure runs, see configure's option --config-cache.
24420 # It is not useful on other systems. If it contains results you don't
24421 # want to keep, you may remove or edit it.
24423 # config.status only pays attention to the cache file if you give it
24424 # the --recheck option to rerun configure.
24426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24428 # following values.
24430 _ACEOF
24432 # The following way of writing the cache mishandles newlines in values,
24433 # but we know of no workaround that is simple, portable, and efficient.
24434 # So, we kill variables containing newlines.
24435 # Ultrix sh set writes to stderr and can't be redirected directly,
24436 # and sets the high bit in the cache file unless we assign to the vars.
24438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24439 eval ac_val=\$$ac_var
24440 case $ac_val in #(
24441 *${as_nl}*)
24442 case $ac_var in #(
24443 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24444 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24445 esac
24446 case $ac_var in #(
24447 _ | IFS | as_nl) ;; #(
24448 *) $as_unset $ac_var ;;
24449 esac ;;
24450 esac
24451 done
24453 (set) 2>&1 |
24454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24455 *${as_nl}ac_space=\ *)
24456 # `set' does not quote correctly, so add quotes (double-quote
24457 # substitution turns \\\\ into \\, and sed turns \\ into \).
24458 sed -n \
24459 "s/'/'\\\\''/g;
24460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24461 ;; #(
24463 # `set' quotes correctly as required by POSIX, so do not add quotes.
24464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24466 esac |
24467 sort
24469 sed '
24470 /^ac_cv_env_/b end
24471 t clear
24472 :clear
24473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24474 t end
24475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24476 :end' >>confcache
24477 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24478 if test -w "$cache_file"; then
24479 test "x$cache_file" != "x/dev/null" &&
24480 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24481 echo "$as_me: updating cache $cache_file" >&6;}
24482 cat confcache >$cache_file
24483 else
24484 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24485 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24488 rm -f confcache
24490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24491 # Let make expand exec_prefix.
24492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24494 DEFS=-DHAVE_CONFIG_H
24496 ac_libobjs=
24497 ac_ltlibobjs=
24498 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24499 # 1. Remove the extension, and $U if already installed.
24500 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24501 ac_i=`echo "$ac_i" | sed "$ac_script"`
24502 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24503 # will be set to the directory where LIBOBJS objects are built.
24504 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24505 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24506 done
24507 LIBOBJS=$ac_libobjs
24509 LTLIBOBJS=$ac_ltlibobjs
24513 : ${CONFIG_STATUS=./config.status}
24514 ac_clean_files_save=$ac_clean_files
24515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24516 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24517 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24518 cat >$CONFIG_STATUS <<_ACEOF
24519 #! $SHELL
24520 # Generated by $as_me.
24521 # Run this file to recreate the current configuration.
24522 # Compiler output produced by configure, useful for debugging
24523 # configure, is in config.log if it exists.
24525 debug=false
24526 ac_cs_recheck=false
24527 ac_cs_silent=false
24528 SHELL=\${CONFIG_SHELL-$SHELL}
24529 _ACEOF
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532 ## --------------------- ##
24533 ## M4sh Initialization. ##
24534 ## --------------------- ##
24536 # Be more Bourne compatible
24537 DUALCASE=1; export DUALCASE # for MKS sh
24538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24539 emulate sh
24540 NULLCMD=:
24541 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24542 # is contrary to our usage. Disable this feature.
24543 alias -g '${1+"$@"}'='"$@"'
24544 setopt NO_GLOB_SUBST
24545 else
24546 case `(set -o) 2>/dev/null` in
24547 *posix*) set -o posix ;;
24548 esac
24555 # PATH needs CR
24556 # Avoid depending upon Character Ranges.
24557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24560 as_cr_digits='0123456789'
24561 as_cr_alnum=$as_cr_Letters$as_cr_digits
24563 # The user is always right.
24564 if test "${PATH_SEPARATOR+set}" != set; then
24565 echo "#! /bin/sh" >conf$$.sh
24566 echo "exit 0" >>conf$$.sh
24567 chmod +x conf$$.sh
24568 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24569 PATH_SEPARATOR=';'
24570 else
24571 PATH_SEPARATOR=:
24573 rm -f conf$$.sh
24576 # Support unset when possible.
24577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24578 as_unset=unset
24579 else
24580 as_unset=false
24584 # IFS
24585 # We need space, tab and new line, in precisely that order. Quoting is
24586 # there to prevent editors from complaining about space-tab.
24587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24588 # splitting by setting IFS to empty value.)
24589 as_nl='
24591 IFS=" "" $as_nl"
24593 # Find who we are. Look in the path if we contain no directory separator.
24594 case $0 in
24595 *[\\/]* ) as_myself=$0 ;;
24596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24597 for as_dir in $PATH
24599 IFS=$as_save_IFS
24600 test -z "$as_dir" && as_dir=.
24601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24602 done
24603 IFS=$as_save_IFS
24606 esac
24607 # We did not find ourselves, most probably we were run as `sh COMMAND'
24608 # in which case we are not to be found in the path.
24609 if test "x$as_myself" = x; then
24610 as_myself=$0
24612 if test ! -f "$as_myself"; then
24613 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24614 { (exit 1); exit 1; }
24617 # Work around bugs in pre-3.0 UWIN ksh.
24618 for as_var in ENV MAIL MAILPATH
24619 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24620 done
24621 PS1='$ '
24622 PS2='> '
24623 PS4='+ '
24625 # NLS nuisances.
24626 for as_var in \
24627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24629 LC_TELEPHONE LC_TIME
24631 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24632 eval $as_var=C; export $as_var
24633 else
24634 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24636 done
24638 # Required to use basename.
24639 if expr a : '\(a\)' >/dev/null 2>&1 &&
24640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24641 as_expr=expr
24642 else
24643 as_expr=false
24646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24647 as_basename=basename
24648 else
24649 as_basename=false
24653 # Name of the executable.
24654 as_me=`$as_basename -- "$0" ||
24655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24656 X"$0" : 'X\(//\)$' \| \
24657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24658 echo X/"$0" |
24659 sed '/^.*\/\([^/][^/]*\)\/*$/{
24660 s//\1/
24663 /^X\/\(\/\/\)$/{
24664 s//\1/
24667 /^X\/\(\/\).*/{
24668 s//\1/
24671 s/.*/./; q'`
24673 # CDPATH.
24674 $as_unset CDPATH
24678 as_lineno_1=$LINENO
24679 as_lineno_2=$LINENO
24680 test "x$as_lineno_1" != "x$as_lineno_2" &&
24681 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24683 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24684 # uniformly replaced by the line number. The first 'sed' inserts a
24685 # line-number line after each line using $LINENO; the second 'sed'
24686 # does the real work. The second script uses 'N' to pair each
24687 # line-number line with the line containing $LINENO, and appends
24688 # trailing '-' during substitution so that $LINENO is not a special
24689 # case at line end.
24690 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24691 # scripts with optimization help from Paolo Bonzini. Blame Lee
24692 # E. McMahon (1931-1989) for sed's syntax. :-)
24693 sed -n '
24695 /[$]LINENO/=
24696 ' <$as_myself |
24697 sed '
24698 s/[$]LINENO.*/&-/
24699 t lineno
24701 :lineno
24703 :loop
24704 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24705 t loop
24706 s/-\n.*//
24707 ' >$as_me.lineno &&
24708 chmod +x "$as_me.lineno" ||
24709 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24710 { (exit 1); exit 1; }; }
24712 # Don't try to exec as it changes $[0], causing all sort of problems
24713 # (the dirname of $[0] is not the place where we might find the
24714 # original and so on. Autoconf is especially sensitive to this).
24715 . "./$as_me.lineno"
24716 # Exit status is that of the last command.
24717 exit
24721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24722 as_dirname=dirname
24723 else
24724 as_dirname=false
24727 ECHO_C= ECHO_N= ECHO_T=
24728 case `echo -n x` in
24729 -n*)
24730 case `echo 'x\c'` in
24731 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24732 *) ECHO_C='\c';;
24733 esac;;
24735 ECHO_N='-n';;
24736 esac
24738 if expr a : '\(a\)' >/dev/null 2>&1 &&
24739 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24740 as_expr=expr
24741 else
24742 as_expr=false
24745 rm -f conf$$ conf$$.exe conf$$.file
24746 if test -d conf$$.dir; then
24747 rm -f conf$$.dir/conf$$.file
24748 else
24749 rm -f conf$$.dir
24750 mkdir conf$$.dir
24752 echo >conf$$.file
24753 if ln -s conf$$.file conf$$ 2>/dev/null; then
24754 as_ln_s='ln -s'
24755 # ... but there are two gotchas:
24756 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24757 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24758 # In both cases, we have to default to `cp -p'.
24759 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24760 as_ln_s='cp -p'
24761 elif ln conf$$.file conf$$ 2>/dev/null; then
24762 as_ln_s=ln
24763 else
24764 as_ln_s='cp -p'
24766 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24767 rmdir conf$$.dir 2>/dev/null
24769 if mkdir -p . 2>/dev/null; then
24770 as_mkdir_p=:
24771 else
24772 test -d ./-p && rmdir ./-p
24773 as_mkdir_p=false
24776 if test -x / >/dev/null 2>&1; then
24777 as_test_x='test -x'
24778 else
24779 if ls -dL / >/dev/null 2>&1; then
24780 as_ls_L_option=L
24781 else
24782 as_ls_L_option=
24784 as_test_x='
24785 eval sh -c '\''
24786 if test -d "$1"; then
24787 test -d "$1/.";
24788 else
24789 case $1 in
24790 -*)set "./$1";;
24791 esac;
24792 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24793 ???[sx]*):;;*)false;;esac;fi
24794 '\'' sh
24797 as_executable_p=$as_test_x
24799 # Sed expression to map a string onto a valid CPP name.
24800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24802 # Sed expression to map a string onto a valid variable name.
24803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24806 exec 6>&1
24808 # Save the log message, to keep $[0] and so on meaningful, and to
24809 # report actual input values of CONFIG_FILES etc. instead of their
24810 # values after options handling.
24811 ac_log="
24812 This file was extended by emacs $as_me 23.0.60, which was
24813 generated by GNU Autoconf 2.61. Invocation command line was
24815 CONFIG_FILES = $CONFIG_FILES
24816 CONFIG_HEADERS = $CONFIG_HEADERS
24817 CONFIG_LINKS = $CONFIG_LINKS
24818 CONFIG_COMMANDS = $CONFIG_COMMANDS
24819 $ $0 $@
24821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24824 _ACEOF
24826 cat >>$CONFIG_STATUS <<_ACEOF
24827 # Files that config.status was made for.
24828 config_files="$ac_config_files"
24829 config_headers="$ac_config_headers"
24830 config_commands="$ac_config_commands"
24832 _ACEOF
24834 cat >>$CONFIG_STATUS <<\_ACEOF
24835 ac_cs_usage="\
24836 \`$as_me' instantiates files from templates according to the
24837 current configuration.
24839 Usage: $0 [OPTIONS] [FILE]...
24841 -h, --help print this help, then exit
24842 -V, --version print version number and configuration settings, then exit
24843 -q, --quiet do not print progress messages
24844 -d, --debug don't remove temporary files
24845 --recheck update $as_me by reconfiguring in the same conditions
24846 --file=FILE[:TEMPLATE]
24847 instantiate the configuration file FILE
24848 --header=FILE[:TEMPLATE]
24849 instantiate the configuration header FILE
24851 Configuration files:
24852 $config_files
24854 Configuration headers:
24855 $config_headers
24857 Configuration commands:
24858 $config_commands
24860 Report bugs to <bug-autoconf@gnu.org>."
24862 _ACEOF
24863 cat >>$CONFIG_STATUS <<_ACEOF
24864 ac_cs_version="\\
24865 emacs config.status 23.0.60
24866 configured by $0, generated by GNU Autoconf 2.61,
24867 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24869 Copyright (C) 2006 Free Software Foundation, Inc.
24870 This config.status script is free software; the Free Software Foundation
24871 gives unlimited permission to copy, distribute and modify it."
24873 ac_pwd='$ac_pwd'
24874 srcdir='$srcdir'
24875 INSTALL='$INSTALL'
24876 _ACEOF
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24879 # If no file are specified by the user, then we need to provide default
24880 # value. By we need to know if files were specified by the user.
24881 ac_need_defaults=:
24882 while test $# != 0
24884 case $1 in
24885 --*=*)
24886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24888 ac_shift=:
24891 ac_option=$1
24892 ac_optarg=$2
24893 ac_shift=shift
24895 esac
24897 case $ac_option in
24898 # Handling of the options.
24899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24900 ac_cs_recheck=: ;;
24901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24902 echo "$ac_cs_version"; exit ;;
24903 --debug | --debu | --deb | --de | --d | -d )
24904 debug=: ;;
24905 --file | --fil | --fi | --f )
24906 $ac_shift
24907 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24908 ac_need_defaults=false;;
24909 --header | --heade | --head | --hea )
24910 $ac_shift
24911 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24912 ac_need_defaults=false;;
24913 --he | --h)
24914 # Conflict between --help and --header
24915 { echo "$as_me: error: ambiguous option: $1
24916 Try \`$0 --help' for more information." >&2
24917 { (exit 1); exit 1; }; };;
24918 --help | --hel | -h )
24919 echo "$ac_cs_usage"; exit ;;
24920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24922 ac_cs_silent=: ;;
24924 # This is an error.
24925 -*) { echo "$as_me: error: unrecognized option: $1
24926 Try \`$0 --help' for more information." >&2
24927 { (exit 1); exit 1; }; } ;;
24929 *) ac_config_targets="$ac_config_targets $1"
24930 ac_need_defaults=false ;;
24932 esac
24933 shift
24934 done
24936 ac_configure_extra_args=
24938 if $ac_cs_silent; then
24939 exec 6>/dev/null
24940 ac_configure_extra_args="$ac_configure_extra_args --silent"
24943 _ACEOF
24944 cat >>$CONFIG_STATUS <<_ACEOF
24945 if \$ac_cs_recheck; then
24946 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24947 CONFIG_SHELL=$SHELL
24948 export CONFIG_SHELL
24949 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24952 _ACEOF
24953 cat >>$CONFIG_STATUS <<\_ACEOF
24954 exec 5>>config.log
24956 echo
24957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24958 ## Running $as_me. ##
24959 _ASBOX
24960 echo "$ac_log"
24961 } >&5
24963 _ACEOF
24964 cat >>$CONFIG_STATUS <<_ACEOF
24966 # INIT-COMMANDS
24968 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24970 _ACEOF
24972 cat >>$CONFIG_STATUS <<\_ACEOF
24974 # Handling of arguments.
24975 for ac_config_target in $ac_config_targets
24977 case $ac_config_target in
24978 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24980 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24981 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24982 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24983 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24984 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24985 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24986 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24987 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24988 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24989 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24990 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24992 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24993 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24994 { (exit 1); exit 1; }; };;
24995 esac
24996 done
24999 # If the user did not use the arguments to specify the items to instantiate,
25000 # then the envvar interface is used. Set only those that are not.
25001 # We use the long form for the default assignment because of an extremely
25002 # bizarre bug on SunOS 4.1.3.
25003 if $ac_need_defaults; then
25004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25009 # Have a temporary directory for convenience. Make it in the build tree
25010 # simply because there is no reason against having it here, and in addition,
25011 # creating and moving files from /tmp can sometimes cause problems.
25012 # Hook for its removal unless debugging.
25013 # Note that there is a small window in which the directory will not be cleaned:
25014 # after its creation but before its name has been assigned to `$tmp'.
25015 $debug ||
25017 tmp=
25018 trap 'exit_status=$?
25019 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25021 trap '{ (exit 1); exit 1; }' 1 2 13 15
25023 # Create a (secure) tmp directory for tmp files.
25026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25027 test -n "$tmp" && test -d "$tmp"
25028 } ||
25030 tmp=./conf$$-$RANDOM
25031 (umask 077 && mkdir "$tmp")
25032 } ||
25034 echo "$me: cannot create a temporary directory in ." >&2
25035 { (exit 1); exit 1; }
25039 # Set up the sed scripts for CONFIG_FILES section.
25042 # No need to generate the scripts if there are no CONFIG_FILES.
25043 # This happens for instance when ./config.status config.h
25044 if test -n "$CONFIG_FILES"; then
25046 _ACEOF
25050 ac_delim='%!_!# '
25051 for ac_last_try in false false false false false :; do
25052 cat >conf$$subs.sed <<_ACEOF
25053 SHELL!$SHELL$ac_delim
25054 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25055 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25056 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25057 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25058 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25059 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25060 exec_prefix!$exec_prefix$ac_delim
25061 prefix!$prefix$ac_delim
25062 program_transform_name!$program_transform_name$ac_delim
25063 bindir!$bindir$ac_delim
25064 sbindir!$sbindir$ac_delim
25065 libexecdir!$libexecdir$ac_delim
25066 datarootdir!$datarootdir$ac_delim
25067 datadir!$datadir$ac_delim
25068 sysconfdir!$sysconfdir$ac_delim
25069 sharedstatedir!$sharedstatedir$ac_delim
25070 localstatedir!$localstatedir$ac_delim
25071 includedir!$includedir$ac_delim
25072 oldincludedir!$oldincludedir$ac_delim
25073 docdir!$docdir$ac_delim
25074 infodir!$infodir$ac_delim
25075 htmldir!$htmldir$ac_delim
25076 dvidir!$dvidir$ac_delim
25077 pdfdir!$pdfdir$ac_delim
25078 psdir!$psdir$ac_delim
25079 libdir!$libdir$ac_delim
25080 localedir!$localedir$ac_delim
25081 mandir!$mandir$ac_delim
25082 DEFS!$DEFS$ac_delim
25083 ECHO_C!$ECHO_C$ac_delim
25084 ECHO_N!$ECHO_N$ac_delim
25085 ECHO_T!$ECHO_T$ac_delim
25086 LIBS!$LIBS$ac_delim
25087 build_alias!$build_alias$ac_delim
25088 host_alias!$host_alias$ac_delim
25089 target_alias!$target_alias$ac_delim
25090 MAINT!$MAINT$ac_delim
25091 build!$build$ac_delim
25092 build_cpu!$build_cpu$ac_delim
25093 build_vendor!$build_vendor$ac_delim
25094 build_os!$build_os$ac_delim
25095 host!$host$ac_delim
25096 host_cpu!$host_cpu$ac_delim
25097 host_vendor!$host_vendor$ac_delim
25098 host_os!$host_os$ac_delim
25099 CC!$CC$ac_delim
25100 CFLAGS!$CFLAGS$ac_delim
25101 LDFLAGS!$LDFLAGS$ac_delim
25102 CPPFLAGS!$CPPFLAGS$ac_delim
25103 ac_ct_CC!$ac_ct_CC$ac_delim
25104 EXEEXT!$EXEEXT$ac_delim
25105 OBJEXT!$OBJEXT$ac_delim
25106 CPP!$CPP$ac_delim
25107 GREP!$GREP$ac_delim
25108 EGREP!$EGREP$ac_delim
25109 LN_S!$LN_S$ac_delim
25110 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25111 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25112 INSTALL_DATA!$INSTALL_DATA$ac_delim
25113 RANLIB!$RANLIB$ac_delim
25114 INSTALL_INFO!$INSTALL_INFO$ac_delim
25115 GZIP_PROG!$GZIP_PROG$ac_delim
25116 MAKEINFO!$MAKEINFO$ac_delim
25117 LIBSOUND!$LIBSOUND$ac_delim
25118 PKG_CONFIG!$PKG_CONFIG$ac_delim
25119 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25120 ALSA_LIBS!$ALSA_LIBS$ac_delim
25121 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25122 SET_MAKE!$SET_MAKE$ac_delim
25123 XMKMF!$XMKMF$ac_delim
25124 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25125 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25126 RSVG_LIBS!$RSVG_LIBS$ac_delim
25127 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25128 GTK_LIBS!$GTK_LIBS$ac_delim
25129 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25130 DBUS_LIBS!$DBUS_LIBS$ac_delim
25131 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25132 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25133 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25134 XFT_LIBS!$XFT_LIBS$ac_delim
25135 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25136 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25137 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25138 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25139 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25140 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25141 ALLOCA!$ALLOCA$ac_delim
25142 liblockfile!$liblockfile$ac_delim
25143 LIBOBJS!$LIBOBJS$ac_delim
25144 NEED_SETGID!$NEED_SETGID$ac_delim
25145 KMEM_GROUP!$KMEM_GROUP$ac_delim
25146 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25147 GETOPT_H!$GETOPT_H$ac_delim
25148 GETOPTOBJS!$GETOPTOBJS$ac_delim
25149 version!$version$ac_delim
25150 _ACEOF
25152 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25153 break
25154 elif $ac_last_try; then
25155 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25156 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25157 { (exit 1); exit 1; }; }
25158 else
25159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25161 done
25163 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25164 if test -n "$ac_eof"; then
25165 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25166 ac_eof=`expr $ac_eof + 1`
25169 cat >>$CONFIG_STATUS <<_ACEOF
25170 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25172 _ACEOF
25173 sed '
25174 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25175 s/^/s,@/; s/!/@,|#_!!_#|/
25178 s/'"$ac_delim"'$/,g/; t
25179 s/$/\\/; p
25180 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25181 ' >>$CONFIG_STATUS <conf$$subs.sed
25182 rm -f conf$$subs.sed
25183 cat >>$CONFIG_STATUS <<_ACEOF
25184 CEOF$ac_eof
25185 _ACEOF
25188 ac_delim='%!_!# '
25189 for ac_last_try in false false false false false :; do
25190 cat >conf$$subs.sed <<_ACEOF
25191 configuration!$configuration$ac_delim
25192 canonical!$canonical$ac_delim
25193 srcdir!$srcdir$ac_delim
25194 lispdir!$lispdir$ac_delim
25195 locallisppath!$locallisppath$ac_delim
25196 lisppath!$lisppath$ac_delim
25197 x_default_search_path!$x_default_search_path$ac_delim
25198 etcdir!$etcdir$ac_delim
25199 archlibdir!$archlibdir$ac_delim
25200 bitmapdir!$bitmapdir$ac_delim
25201 gamedir!$gamedir$ac_delim
25202 gameuser!$gameuser$ac_delim
25203 c_switch_system!$c_switch_system$ac_delim
25204 c_switch_machine!$c_switch_machine$ac_delim
25205 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25206 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25207 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25208 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25209 machfile!$machfile$ac_delim
25210 opsysfile!$opsysfile$ac_delim
25211 ns_appdir!$ns_appdir$ac_delim
25212 ns_appbindir!$ns_appbindir$ac_delim
25213 ns_appresdir!$ns_appresdir$ac_delim
25214 ns_appsrc!$ns_appsrc$ac_delim
25215 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25216 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25217 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25218 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25219 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25220 LTLIBOBJS!$LTLIBOBJS$ac_delim
25221 _ACEOF
25223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25224 break
25225 elif $ac_last_try; then
25226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25228 { (exit 1); exit 1; }; }
25229 else
25230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25232 done
25234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25235 if test -n "$ac_eof"; then
25236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25237 ac_eof=`expr $ac_eof + 1`
25240 cat >>$CONFIG_STATUS <<_ACEOF
25241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25243 _ACEOF
25244 sed '
25245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25246 s/^/s,@/; s/!/@,|#_!!_#|/
25249 s/'"$ac_delim"'$/,g/; t
25250 s/$/\\/; p
25251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25252 ' >>$CONFIG_STATUS <conf$$subs.sed
25253 rm -f conf$$subs.sed
25254 cat >>$CONFIG_STATUS <<_ACEOF
25255 :end
25256 s/|#_!!_#|//g
25257 CEOF$ac_eof
25258 _ACEOF
25261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25263 # trailing colons and then remove the whole line if VPATH becomes empty
25264 # (actually we leave an empty line to preserve line numbers).
25265 if test "x$srcdir" = x.; then
25266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25267 s/:*\$(srcdir):*/:/
25268 s/:*\${srcdir}:*/:/
25269 s/:*@srcdir@:*/:/
25270 s/^\([^=]*=[ ]*\):*/\1/
25271 s/:*$//
25272 s/^[^=]*=[ ]*$//
25276 cat >>$CONFIG_STATUS <<\_ACEOF
25277 fi # test -n "$CONFIG_FILES"
25280 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25282 case $ac_tag in
25283 :[FHLC]) ac_mode=$ac_tag; continue;;
25284 esac
25285 case $ac_mode$ac_tag in
25286 :[FHL]*:*);;
25287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25289 { (exit 1); exit 1; }; };;
25290 :[FH]-) ac_tag=-:-;;
25291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25292 esac
25293 ac_save_IFS=$IFS
25294 IFS=:
25295 set x $ac_tag
25296 IFS=$ac_save_IFS
25297 shift
25298 ac_file=$1
25299 shift
25301 case $ac_mode in
25302 :L) ac_source=$1;;
25303 :[FH])
25304 ac_file_inputs=
25305 for ac_f
25307 case $ac_f in
25308 -) ac_f="$tmp/stdin";;
25309 *) # Look for the file first in the build tree, then in the source tree
25310 # (if the path is not absolute). The absolute path cannot be DOS-style,
25311 # because $ac_f cannot contain `:'.
25312 test -f "$ac_f" ||
25313 case $ac_f in
25314 [\\/$]*) false;;
25315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25316 esac ||
25317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25319 { (exit 1); exit 1; }; };;
25320 esac
25321 ac_file_inputs="$ac_file_inputs $ac_f"
25322 done
25324 # Let's still pretend it is `configure' which instantiates (i.e., don't
25325 # use $as_me), people would be surprised to read:
25326 # /* config.h. Generated by config.status. */
25327 configure_input="Generated from "`IFS=:
25328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25329 if test x"$ac_file" != x-; then
25330 configure_input="$ac_file. $configure_input"
25331 { echo "$as_me:$LINENO: creating $ac_file" >&5
25332 echo "$as_me: creating $ac_file" >&6;}
25335 case $ac_tag in
25336 *:-:* | *:-) cat >"$tmp/stdin";;
25337 esac
25339 esac
25341 ac_dir=`$as_dirname -- "$ac_file" ||
25342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25343 X"$ac_file" : 'X\(//\)[^/]' \| \
25344 X"$ac_file" : 'X\(//\)$' \| \
25345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25346 echo X"$ac_file" |
25347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25348 s//\1/
25351 /^X\(\/\/\)[^/].*/{
25352 s//\1/
25355 /^X\(\/\/\)$/{
25356 s//\1/
25359 /^X\(\/\).*/{
25360 s//\1/
25363 s/.*/./; q'`
25364 { as_dir="$ac_dir"
25365 case $as_dir in #(
25366 -*) as_dir=./$as_dir;;
25367 esac
25368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25369 as_dirs=
25370 while :; do
25371 case $as_dir in #(
25372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25373 *) as_qdir=$as_dir;;
25374 esac
25375 as_dirs="'$as_qdir' $as_dirs"
25376 as_dir=`$as_dirname -- "$as_dir" ||
25377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25378 X"$as_dir" : 'X\(//\)[^/]' \| \
25379 X"$as_dir" : 'X\(//\)$' \| \
25380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25381 echo X"$as_dir" |
25382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25383 s//\1/
25386 /^X\(\/\/\)[^/].*/{
25387 s//\1/
25390 /^X\(\/\/\)$/{
25391 s//\1/
25394 /^X\(\/\).*/{
25395 s//\1/
25398 s/.*/./; q'`
25399 test -d "$as_dir" && break
25400 done
25401 test -z "$as_dirs" || eval "mkdir $as_dirs"
25402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25404 { (exit 1); exit 1; }; }; }
25405 ac_builddir=.
25407 case "$ac_dir" in
25408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25411 # A ".." for each directory in $ac_dir_suffix.
25412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25413 case $ac_top_builddir_sub in
25414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25416 esac ;;
25417 esac
25418 ac_abs_top_builddir=$ac_pwd
25419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25420 # for backward compatibility:
25421 ac_top_builddir=$ac_top_build_prefix
25423 case $srcdir in
25424 .) # We are building in place.
25425 ac_srcdir=.
25426 ac_top_srcdir=$ac_top_builddir_sub
25427 ac_abs_top_srcdir=$ac_pwd ;;
25428 [\\/]* | ?:[\\/]* ) # Absolute name.
25429 ac_srcdir=$srcdir$ac_dir_suffix;
25430 ac_top_srcdir=$srcdir
25431 ac_abs_top_srcdir=$srcdir ;;
25432 *) # Relative name.
25433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25434 ac_top_srcdir=$ac_top_build_prefix$srcdir
25435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25436 esac
25437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25440 case $ac_mode in
25443 # CONFIG_FILE
25446 case $INSTALL in
25447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25449 esac
25450 _ACEOF
25452 cat >>$CONFIG_STATUS <<\_ACEOF
25453 # If the template does not know about datarootdir, expand it.
25454 # FIXME: This hack should be removed a few years after 2.60.
25455 ac_datarootdir_hack=; ac_datarootdir_seen=
25457 case `sed -n '/datarootdir/ {
25461 /@datadir@/p
25462 /@docdir@/p
25463 /@infodir@/p
25464 /@localedir@/p
25465 /@mandir@/p
25466 ' $ac_file_inputs` in
25467 *datarootdir*) ac_datarootdir_seen=yes;;
25468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25471 _ACEOF
25472 cat >>$CONFIG_STATUS <<_ACEOF
25473 ac_datarootdir_hack='
25474 s&@datadir@&$datadir&g
25475 s&@docdir@&$docdir&g
25476 s&@infodir@&$infodir&g
25477 s&@localedir@&$localedir&g
25478 s&@mandir@&$mandir&g
25479 s&\\\${datarootdir}&$datarootdir&g' ;;
25480 esac
25481 _ACEOF
25483 # Neutralize VPATH when `$srcdir' = `.'.
25484 # Shell code in configure.ac might set extrasub.
25485 # FIXME: do we really want to maintain this feature?
25486 cat >>$CONFIG_STATUS <<_ACEOF
25487 sed "$ac_vpsub
25488 $extrasub
25489 _ACEOF
25490 cat >>$CONFIG_STATUS <<\_ACEOF
25492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25493 s&@configure_input@&$configure_input&;t t
25494 s&@top_builddir@&$ac_top_builddir_sub&;t t
25495 s&@srcdir@&$ac_srcdir&;t t
25496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25497 s&@top_srcdir@&$ac_top_srcdir&;t t
25498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25499 s&@builddir@&$ac_builddir&;t t
25500 s&@abs_builddir@&$ac_abs_builddir&;t t
25501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25502 s&@INSTALL@&$ac_INSTALL&;t t
25503 $ac_datarootdir_hack
25504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25510 which seems to be undefined. Please make sure it is defined." >&5
25511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25512 which seems to be undefined. Please make sure it is defined." >&2;}
25514 rm -f "$tmp/stdin"
25515 case $ac_file in
25516 -) cat "$tmp/out"; rm -f "$tmp/out";;
25517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25518 esac
25522 # CONFIG_HEADER
25524 _ACEOF
25526 # Transform confdefs.h into a sed script `conftest.defines', that
25527 # substitutes the proper values into config.h.in to produce config.h.
25528 rm -f conftest.defines conftest.tail
25529 # First, append a space to every undef/define line, to ease matching.
25530 echo 's/$/ /' >conftest.defines
25531 # Then, protect against being on the right side of a sed subst, or in
25532 # an unquoted here document, in config.status. If some macros were
25533 # called several times there might be several #defines for the same
25534 # symbol, which is useless. But do not sort them, since the last
25535 # AC_DEFINE must be honored.
25536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25539 # PARAMS is the parameter list in the macro definition--in most cases, it's
25540 # just an empty string.
25541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25542 ac_dB='\\)[ (].*,\\1define\\2'
25543 ac_dC=' '
25544 ac_dD=' ,'
25546 uniq confdefs.h |
25547 sed -n '
25548 t rset
25549 :rset
25550 s/^[ ]*#[ ]*define[ ][ ]*//
25551 t ok
25554 s/[\\&,]/\\&/g
25555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25557 ' >>conftest.defines
25559 # Remove the space that was appended to ease matching.
25560 # Then replace #undef with comments. This is necessary, for
25561 # example, in the case of _POSIX_SOURCE, which is predefined and required
25562 # on some systems where configure will not decide to define it.
25563 # (The regexp can be short, since the line contains either #define or #undef.)
25564 echo 's/ $//
25565 s,^[ #]*u.*,/* & */,' >>conftest.defines
25567 # Break up conftest.defines:
25568 ac_max_sed_lines=50
25570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25573 # et cetera.
25574 ac_in='$ac_file_inputs'
25575 ac_out='"$tmp/out1"'
25576 ac_nxt='"$tmp/out2"'
25578 while :
25580 # Write a here document:
25581 cat >>$CONFIG_STATUS <<_ACEOF
25582 # First, check the format of the line:
25583 cat >"\$tmp/defines.sed" <<\\CEOF
25584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25587 :def
25588 _ACEOF
25589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25590 echo 'CEOF
25591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25594 grep . conftest.tail >/dev/null || break
25595 rm -f conftest.defines
25596 mv conftest.tail conftest.defines
25597 done
25598 rm -f conftest.defines conftest.tail
25600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25601 cat >>$CONFIG_STATUS <<\_ACEOF
25602 if test x"$ac_file" != x-; then
25603 echo "/* $configure_input */" >"$tmp/config.h"
25604 cat "$ac_result" >>"$tmp/config.h"
25605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25607 echo "$as_me: $ac_file is unchanged" >&6;}
25608 else
25609 rm -f $ac_file
25610 mv "$tmp/config.h" $ac_file
25612 else
25613 echo "/* $configure_input */"
25614 cat "$ac_result"
25616 rm -f "$tmp/out12"
25619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25620 echo "$as_me: executing $ac_file commands" >&6;}
25622 esac
25625 case $ac_file$ac_mode in
25626 "default":C)
25628 ### Make the necessary directories, if they don't exist.
25629 for dir in etc lisp ; do
25630 test -d ${dir} || mkdir ${dir}
25631 done
25633 # Build src/Makefile from ${srcdir}/src/Makefile.c
25634 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25635 # This must be done after src/config.h is built, since we rely on that file.
25637 echo creating src/epaths.h
25638 ${MAKE-make} epaths-force
25640 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25641 # `..' to `. .' unless invoked with -traditional
25643 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25644 CPPFLAGS="$CPPFLAGS -traditional"
25647 echo creating lib-src/Makefile
25648 ( cd lib-src
25649 rm -f junk.c junk1.c junk2.c
25650 sed -e '/start of cpp stuff/q' \
25651 < Makefile.c > junk1.c
25652 sed -e '1,/start of cpp stuff/d'\
25653 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25654 < Makefile.c > junk.c
25655 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25656 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25657 cat junk1.c junk2.c > Makefile.new
25658 rm -f junk.c junk1.c junk2.c
25659 chmod 444 Makefile.new
25660 mv -f Makefile.new Makefile
25663 echo creating src/Makefile
25664 ( cd src
25665 rm -f junk.c junk1.c junk2.c
25666 sed -e '/start of cpp stuff/q' \
25667 < Makefile.c > junk1.c
25668 sed -e '1,/start of cpp stuff/d'\
25669 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25670 < Makefile.c > junk.c
25671 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25672 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25673 cat junk1.c junk2.c > Makefile.new
25674 rm -f junk.c junk1.c junk2.c
25675 chmod 444 Makefile.new
25676 mv -f Makefile.new Makefile
25679 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25680 echo creating src/.gdbinit
25681 echo source $srcdir/src/.gdbinit > src/.gdbinit
25686 esac
25687 done # for ac_tag
25690 { (exit 0); exit 0; }
25691 _ACEOF
25692 chmod +x $CONFIG_STATUS
25693 ac_clean_files=$ac_clean_files_save
25696 # configure is writing to config.log, and then calls config.status.
25697 # config.status does its own redirection, appending to config.log.
25698 # Unfortunately, on DOS this fails, as config.log is still kept open
25699 # by configure, so config.status won't be able to write to it; its
25700 # output is simply discarded. So we exec the FD to /dev/null,
25701 # effectively closing config.log, so it can be properly (re)opened and
25702 # appended to by config.status. When coming back to configure, we
25703 # need to make the FD available again.
25704 if test "$no_create" != yes; then
25705 ac_cs_success=:
25706 ac_config_status_args=
25707 test "$silent" = yes &&
25708 ac_config_status_args="$ac_config_status_args --quiet"
25709 exec 5>/dev/null
25710 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25711 exec 5>>config.log
25712 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25713 # would make configure fail if this is the last instruction.
25714 $ac_cs_success || { (exit 1); exit 1; }