(defstruct): Fix :conc-name spec.
[emacs.git] / configure
blobc528b611df0864034259a454ec5611ef7ace368c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.1.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.1.50'
576 PACKAGE_STRING='emacs 23.1.50'
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 LIBOTF_CFLAGS
702 LIBOTF_LIBS
703 M17N_FLT_CFLAGS
704 M17N_FLT_LIBS
705 FREETYPE_CFLAGS
706 FREETYPE_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.1.50 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.1.50:";;
1334 esac
1335 cat <<\_ACEOF
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful (and
1345 sometimes confusing) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search for lisp files
1348 specific to this site
1349 --enable-checking=LIST
1350 enable expensive run-time checks. With LIST,
1351 enable only specific categories of checks.
1352 Categories are: all,yes,no.
1353 Flags are: stringbytes, stringoverrun, stringfreelist,
1354 xmallocoverrun, conslist
1355 --disable-largefile omit support for large files
1357 Optional Packages:
1358 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1360 --without-pop don't support POP mail retrieval with movemail
1361 --with-kerberos support Kerberos-authenticated POP
1362 --with-kerberos5 support Kerberos version 5 authenticated POP
1363 --with-hesiod support Hesiod to get the POP server host
1364 --without-sound don't compile with sound support
1365 --without-sync-input process async input synchronously
1366 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1367 motif, gtk, no)
1368 --without-xpm don't compile with XPM image support
1369 --without-jpeg don't compile with JPEG image support
1370 --without-tiff don't compile with TIFF image support
1371 --without-gif don't compile with GIF image support
1372 --without-png don't compile with PNG image support
1373 --without-rsvg don't compile with SVG image support
1374 --without-xft don't use XFT for anti aliased fonts
1375 --without-libotf don't use libotf for OpenType font support
1376 --without-m17n-flt don't use m17n-flt for text shaping
1377 --without-toolkit-scroll-bars
1378 don't use Motif or Xaw3d scroll bars
1379 --without-xaw3d don't use Xaw3d
1380 --without-xim don't use X11 XIM
1381 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1382 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1383 console
1384 --without-dbus don't compile with D-Bus support
1385 --without-makeinfo don't require makeinfo for building manuals
1387 --with-pkg-config-prog=PATH
1388 path to pkg-config for finding GTK and librsvg
1389 --with-gnustep-conf=PATH
1390 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1391 or /etc/GNUstep/GNUstep.conf
1392 --with-x use the X Window System
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 XMKMF Path to xmkmf, Makefile generator for X Window System
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 _ACEOF
1409 ac_status=$?
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" || continue
1416 ac_builddir=.
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 emacs configure 23.1.50
1469 generated by GNU Autoconf 2.61
1471 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1478 cat >config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by emacs $as_me 23.1.50, which was
1483 generated by GNU Autoconf 2.61. Invocation command line was
1485 $ $0 $@
1487 _ACEOF
1488 exec 5>>config.log
1490 cat <<_ASUNAME
1491 ## --------- ##
1492 ## Platform. ##
1493 ## --------- ##
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1512 _ASUNAME
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 echo "PATH: $as_dir"
1520 done
1521 IFS=$as_save_IFS
1523 } >&5
1525 cat >&5 <<_ACEOF
1528 ## ----------- ##
1529 ## Core tests. ##
1530 ## ----------- ##
1532 _ACEOF
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1540 ac_configure_args=
1541 ac_configure_args0=
1542 ac_configure_args1=
1543 ac_must_keep_next=false
1544 for ac_pass in 1 2
1546 for ac_arg
1548 case $ac_arg in
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1552 continue ;;
1553 *\'*)
1554 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1555 esac
1556 case $ac_pass in
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1562 else
1563 case $ac_arg in
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1570 esac
1572 -* ) ac_must_keep_next=true ;;
1573 esac
1575 ac_configure_args="$ac_configure_args '$ac_arg'"
1577 esac
1578 done
1579 done
1580 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1591 echo
1593 cat <<\_ASBOX
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1597 _ASBOX
1598 echo
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in #(
1604 *${as_nl}*)
1605 case $ac_var in #(
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1608 esac
1609 case $ac_var in #(
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1612 esac ;;
1613 esac
1614 done
1615 (set) 2>&1 |
1616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1618 sed -n \
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1621 ;; #(
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1625 esac |
1626 sort
1628 echo
1630 cat <<\_ASBOX
1631 ## ----------------- ##
1632 ## Output variables. ##
1633 ## ----------------- ##
1634 _ASBOX
1635 echo
1636 for ac_var in $ac_subst_vars
1638 eval ac_val=\$$ac_var
1639 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac
1642 echo "$ac_var='\''$ac_val'\''"
1643 done | sort
1644 echo
1646 if test -n "$ac_subst_files"; then
1647 cat <<\_ASBOX
1648 ## ------------------- ##
1649 ## File substitutions. ##
1650 ## ------------------- ##
1651 _ASBOX
1652 echo
1653 for ac_var in $ac_subst_files
1655 eval ac_val=\$$ac_var
1656 case $ac_val in
1657 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 esac
1659 echo "$ac_var='\''$ac_val'\''"
1660 done | sort
1661 echo
1664 if test -s confdefs.h; then
1665 cat <<\_ASBOX
1666 ## ----------- ##
1667 ## confdefs.h. ##
1668 ## ----------- ##
1669 _ASBOX
1670 echo
1671 cat confdefs.h
1672 echo
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1677 } >&5
1678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1680 exit $exit_status
1682 for ac_signal in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684 done
1685 ac_signal=0
1687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1688 rm -f -r conftest* confdefs.h
1690 # Predefined preprocessor variables.
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_NAME "$PACKAGE_NAME"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704 _ACEOF
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_STRING "$PACKAGE_STRING"
1709 _ACEOF
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714 _ACEOF
1717 # Let the site file select an alternate cache file if it wants to.
1718 # Prefer explicitly selected file to automatically selected ones.
1719 if test -n "$CONFIG_SITE"; then
1720 set x "$CONFIG_SITE"
1721 elif test "x$prefix" != xNONE; then
1722 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1723 else
1724 set x "$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
1727 shift
1728 for ac_site_file
1730 if test -r "$ac_site_file"; then
1731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1734 . "$ac_site_file"
1736 done
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 echo "$as_me: loading cache $cache_file" >&6;}
1744 case $cache_file in
1745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
1747 esac
1749 else
1750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 echo "$as_me: creating cache $cache_file" >&6;}
1752 >$cache_file
1755 ac_header_list="$ac_header_list sys/time.h"
1756 ac_header_list="$ac_header_list unistd.h"
1757 ac_func_list="$ac_func_list alarm"
1758 # Check that the precious variables saved in the cache have kept the same
1759 # value.
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
1764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
1766 case $ac_old_set,$ac_new_set in
1767 set,)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,set)
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1775 ,);;
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781 echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783 echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted=:
1785 fi;;
1786 esac
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1789 case $ac_new_val in
1790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 *) ac_arg=$ac_var=$ac_new_val ;;
1792 esac
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 esac
1798 done
1799 if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1838 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1842 test "$program_prefix" != NONE &&
1843 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE &&
1846 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $. echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF >conftest.sed
1850 s/[\\$]/&&/g;s/;s,x,x,$//
1851 _ACEOF
1852 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1853 rm -f conftest.sed
1856 lispdir='${datadir}/emacs/${version}/lisp'
1857 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1858 '${datadir}/emacs/site-lisp'
1859 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1860 etcdir='${datadir}/emacs/${version}/etc'
1861 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1862 docdir='${datadir}/emacs/${version}/etc'
1863 gamedir='${localstatedir}/games/emacs'
1865 gameuser=games
1870 # Check whether --with-pop was given.
1871 if test "${with_pop+set}" = set; then
1872 withval=$with_pop;
1873 else
1874 with_pop=yes
1877 if test "$with_pop" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1879 #define MAIL_USE_POP 1
1880 _ACEOF
1886 # Check whether --with-kerberos was given.
1887 if test "${with_kerberos+set}" = set; then
1888 withval=$with_kerberos;
1889 else
1890 with_kerberos=no
1893 if test "$with_kerberos" != no; then
1894 cat >>confdefs.h <<\_ACEOF
1895 #define KERBEROS 1
1896 _ACEOF
1902 # Check whether --with-kerberos5 was given.
1903 if test "${with_kerberos5+set}" = set; then
1904 withval=$with_kerberos5;
1905 else
1906 with_kerberos5=no
1909 if test "${with_kerberos5}" != no; then
1910 if test "${with_kerberos}" = no; then
1911 with_kerberos=yes
1912 cat >>confdefs.h <<\_ACEOF
1913 #define KERBEROS 1
1914 _ACEOF
1918 cat >>confdefs.h <<\_ACEOF
1919 #define KERBEROS5 1
1920 _ACEOF
1925 # Check whether --with-hesiod was given.
1926 if test "${with_hesiod+set}" = set; then
1927 withval=$with_hesiod;
1928 else
1929 with_hesiod=no
1932 if test "$with_hesiod" != no; then
1934 cat >>confdefs.h <<\_ACEOF
1935 #define HESIOD 1
1936 _ACEOF
1941 # Check whether --with-sound was given.
1942 if test "${with_sound+set}" = set; then
1943 withval=$with_sound;
1944 else
1945 with_sound=yes
1950 # Check whether --with-sync-input was given.
1951 if test "${with_sync_input+set}" = set; then
1952 withval=$with_sync_input;
1953 else
1954 with_sync_input=yes
1957 if test "$with_sync_input" = yes; then
1959 cat >>confdefs.h <<\_ACEOF
1960 #define SYNC_INPUT 1
1961 _ACEOF
1966 # Check whether --with-x-toolkit was given.
1967 if test "${with_x_toolkit+set}" = set; then
1968 withval=$with_x_toolkit; case "${withval}" in
1969 y | ye | yes ) val=gtk ;;
1970 n | no ) val=no ;;
1971 l | lu | luc | luci | lucid ) val=lucid ;;
1972 a | at | ath | athe | athen | athena ) val=athena ;;
1973 m | mo | mot | moti | motif ) val=motif ;;
1974 g | gt | gtk ) val=gtk ;;
1976 { { echo "$as_me:$LINENO: 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." >&5
1979 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1980 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1981 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1982 { (exit 1); exit 1; }; }
1984 esac
1985 with_x_toolkit=$val
1991 # Check whether --with-xpm was given.
1992 if test "${with_xpm+set}" = set; then
1993 withval=$with_xpm;
1994 else
1995 with_xpm=yes
1999 # Check whether --with-jpeg was given.
2000 if test "${with_jpeg+set}" = set; then
2001 withval=$with_jpeg;
2002 else
2003 with_jpeg=yes
2007 # Check whether --with-tiff was given.
2008 if test "${with_tiff+set}" = set; then
2009 withval=$with_tiff;
2010 else
2011 with_tiff=yes
2015 # Check whether --with-gif was given.
2016 if test "${with_gif+set}" = set; then
2017 withval=$with_gif;
2018 else
2019 with_gif=yes
2023 # Check whether --with-png was given.
2024 if test "${with_png+set}" = set; then
2025 withval=$with_png;
2026 else
2027 with_png=yes
2031 # Check whether --with-rsvg was given.
2032 if test "${with_rsvg+set}" = set; then
2033 withval=$with_rsvg;
2034 else
2035 with_rsvg=yes
2040 # Check whether --with-xft was given.
2041 if test "${with_xft+set}" = set; then
2042 withval=$with_xft;
2043 else
2044 with_xft=yes
2048 # Check whether --with-libotf was given.
2049 if test "${with_libotf+set}" = set; then
2050 withval=$with_libotf;
2051 else
2052 with_libotf=yes
2056 # Check whether --with-m17n-flt was given.
2057 if test "${with_m17n_flt+set}" = set; then
2058 withval=$with_m17n_flt;
2059 else
2060 with_m17n_flt=yes
2065 # Check whether --with-toolkit-scroll-bars was given.
2066 if test "${with_toolkit_scroll_bars+set}" = set; then
2067 withval=$with_toolkit_scroll_bars;
2068 else
2069 with_toolkit_scroll_bars=yes
2073 # Check whether --with-xaw3d was given.
2074 if test "${with_xaw3d+set}" = set; then
2075 withval=$with_xaw3d;
2076 else
2077 with_xaw3d=yes
2081 # Check whether --with-xim was given.
2082 if test "${with_xim+set}" = set; then
2083 withval=$with_xim;
2084 else
2085 with_xim=yes
2089 # Check whether --with-ns was given.
2090 if test "${with_ns+set}" = set; then
2091 withval=$with_ns;
2092 else
2093 with_ns=no
2098 # Check whether --with-gpm was given.
2099 if test "${with_gpm+set}" = set; then
2100 withval=$with_gpm;
2101 else
2102 with_gpm=yes
2106 # Check whether --with-dbus was given.
2107 if test "${with_dbus+set}" = set; then
2108 withval=$with_dbus;
2109 else
2110 with_dbus=yes
2114 ## For the times when you want to build Emacs but don't have
2115 ## a suitable makeinfo, and can live without the manuals.
2117 # Check whether --with-makeinfo was given.
2118 if test "${with_makeinfo+set}" = set; then
2119 withval=$with_makeinfo;
2120 else
2121 with_makeinfo=yes
2126 # Check whether --with-gtk was given.
2127 if test "${with_gtk+set}" = set; then
2128 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&5
2130 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&2;}
2132 { (exit 1); exit 1; }; }
2137 # Check whether --with-gcc was given.
2138 if test "${with_gcc+set}" = set; then
2139 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&5
2141 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&2;}
2143 { (exit 1); exit 1; }; }
2148 # Check whether --with-pkg-config-prog was given.
2149 if test "${with_pkg_config_prog+set}" = set; then
2150 withval=$with_pkg_config_prog;
2153 if test "X${with_pkg_config_prog}" != X; then
2154 if test "${with_pkg_config_prog}" != yes; then
2155 PKG_CONFIG="${with_pkg_config_prog}"
2160 # Check whether --with-gnustep-conf was given.
2161 if test "${with_gnustep_conf+set}" = set; then
2162 withval=$with_gnustep_conf;
2165 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2166 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2167 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2168 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2170 # Check whether --enable-ns-self-contained was given.
2171 if test "${enable_ns_self_contained+set}" = set; then
2172 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2173 else
2174 EN_NS_SELF_CONTAINED=yes
2178 # Check whether --enable-asserts was given.
2179 if test "${enable_asserts+set}" = set; then
2180 enableval=$enable_asserts; USE_XASSERTS=$enableval
2181 else
2182 USE_XASSERTS=no
2186 # Check whether --enable-maintainer-mode was given.
2187 if test "${enable_maintainer_mode+set}" = set; then
2188 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2189 else
2190 USE_MAINTAINER_MODE=no
2193 if test $USE_MAINTAINER_MODE = yes; then
2194 MAINT=
2195 else
2196 MAINT=#
2200 # Check whether --enable-locallisppath was given.
2201 if test "${enable_locallisppath+set}" = set; then
2202 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2203 locallisppath=
2204 elif test "${enableval}" != "yes"; then
2205 locallisppath=${enableval}
2210 # Check whether --enable-checking was given.
2211 if test "${enable_checking+set}" = set; then
2212 enableval=$enable_checking; ac_checking_flags="${enableval}"
2215 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2216 for check in $ac_checking_flags
2218 case $check in
2219 # these set all the flags to specific states
2220 yes) ac_enable_checking=1 ;;
2221 no) ac_enable_checking= ;
2222 ac_gc_check_stringbytes= ;
2223 ac_gc_check_string_overrun= ;
2224 ac_gc_check_string_free_list= ;
2225 ac_xmalloc_overrun= ;
2226 ac_gc_check_cons_list= ;;
2227 all) ac_enable_checking=1 ;
2228 ac_gc_check_stringbytes=1 ;
2229 ac_gc_check_string_overrun=1 ;
2230 ac_gc_check_string_free_list=1 ;
2231 ac_xmalloc_overrun=1 ;
2232 ac_gc_check_cons_list=1 ;;
2233 # these enable particular checks
2234 stringbytes) ac_gc_check_stringbytes=1 ;;
2235 stringoverrun) ac_gc_check_string_overrun=1 ;;
2236 stringfreelist) ac_gc_check_string_free_list=1 ;;
2237 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2238 conslist) ac_gc_check_cons_list=1 ;;
2239 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
2240 echo "$as_me: error: unknown check category $check" >&2;}
2241 { (exit 1); exit 1; }; } ;;
2242 esac
2243 done
2244 IFS="$ac_save_IFS"
2246 if test x$ac_enable_checking != x ; then
2248 cat >>confdefs.h <<\_ACEOF
2249 #define ENABLE_CHECKING 1
2250 _ACEOF
2253 if test x$ac_gc_check_stringbytes != x ; then
2255 cat >>confdefs.h <<\_ACEOF
2256 #define GC_CHECK_STRING_BYTES 1
2257 _ACEOF
2260 if test x$ac_gc_check_stringoverrun != x ; then
2262 cat >>confdefs.h <<\_ACEOF
2263 #define GC_CHECK_STRING_OVERRUN 1
2264 _ACEOF
2267 if test x$ac_gc_check_string_free_list != x ; then
2269 cat >>confdefs.h <<\_ACEOF
2270 #define GC_CHECK_STRING_FREE_LIST 1
2271 _ACEOF
2274 if test x$ac_xmalloc_overrun != x ; then
2276 cat >>confdefs.h <<\_ACEOF
2277 #define XMALLOC_OVERRUN_CHECK 1
2278 _ACEOF
2281 if test x$ac_gc_check_cons_list != x ; then
2283 cat >>confdefs.h <<\_ACEOF
2284 #define GC_CHECK_CONS_LIST 1
2285 _ACEOF
2289 #### Make srcdir absolute, if it isn't already. It's important to
2290 #### avoid running the path through pwd unnecessarily, since pwd can
2291 #### give you automounter prefixes, which can go away. We do all this
2292 #### so Emacs can find its files when run uninstalled.
2293 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2294 unset CDPATH
2295 case "${srcdir}" in
2296 /* ) ;;
2298 ## We may be able to use the $PWD environment variable to make this
2299 ## absolute. But sometimes PWD is inaccurate.
2300 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2301 ## but that tested only for a well-formed and valid PWD,
2302 ## it did not object when PWD was well-formed and valid but just wrong.
2303 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2304 then
2305 srcdir="$PWD"
2306 else
2307 srcdir="`(cd ${srcdir}; pwd)`"
2310 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2311 esac
2313 #### Check if the source directory already has a configured system in it.
2314 if test `pwd` != `(cd ${srcdir} && pwd)` \
2315 && test -f "${srcdir}/src/config.h" ; then
2316 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2317 as a build directory right now; it has been configured in its own
2318 right. To configure in another directory as well, you MUST
2319 use GNU make. If you do not have GNU make, then you must
2320 now do \`make distclean' in ${srcdir},
2321 and then run $0 again." >&5
2322 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2323 as a build directory right now; it has been configured in its own
2324 right. To configure in another directory as well, you MUST
2325 use GNU make. If you do not have GNU make, then you must
2326 now do \`make distclean' in ${srcdir},
2327 and then run $0 again." >&2;}
2330 #### Given the configuration name, set machfile and opsysfile to the
2331 #### names of the m/*.h and s/*.h files we should use.
2333 ### Canonicalize the configuration name.
2335 ac_aux_dir=
2336 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2337 if test -f "$ac_dir/install-sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install-sh -c"
2340 break
2341 elif test -f "$ac_dir/install.sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install.sh -c"
2344 break
2345 elif test -f "$ac_dir/shtool"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 break
2350 done
2351 if test -z "$ac_aux_dir"; then
2352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2353 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2354 { (exit 1); exit 1; }; }
2357 # These three variables are undocumented and unsupported,
2358 # and are intended to be withdrawn in a future Autoconf release.
2359 # They can cause serious problems if a builder's source tree is in a directory
2360 # whose full name contains unusual characters.
2361 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2362 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2363 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2366 # Make sure we can run config.sub.
2367 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2368 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2369 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2370 { (exit 1); exit 1; }; }
2372 { echo "$as_me:$LINENO: checking build system type" >&5
2373 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2374 if test "${ac_cv_build+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 ac_build_alias=$build_alias
2378 test "x$ac_build_alias" = x &&
2379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x &&
2381 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2382 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2383 { (exit 1); exit 1; }; }
2384 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2385 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2386 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2387 { (exit 1); exit 1; }; }
2390 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2391 echo "${ECHO_T}$ac_cv_build" >&6; }
2392 case $ac_cv_build in
2393 *-*-*) ;;
2394 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2395 echo "$as_me: error: invalid value of canonical build" >&2;}
2396 { (exit 1); exit 1; }; };;
2397 esac
2398 build=$ac_cv_build
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_build
2401 shift
2402 build_cpu=$1
2403 build_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 build_os=$*
2408 IFS=$ac_save_IFS
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 { echo "$as_me:$LINENO: checking host system type" >&5
2413 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2414 if test "${ac_cv_host+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test "x$host_alias" = x; then
2418 ac_cv_host=$ac_cv_build
2419 else
2420 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2421 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2422 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2423 { (exit 1); exit 1; }; }
2427 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2428 echo "${ECHO_T}$ac_cv_host" >&6; }
2429 case $ac_cv_host in
2430 *-*-*) ;;
2431 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2432 echo "$as_me: error: invalid value of canonical host" >&2;}
2433 { (exit 1); exit 1; }; };;
2434 esac
2435 host=$ac_cv_host
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_host
2438 shift
2439 host_cpu=$1
2440 host_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 host_os=$*
2445 IFS=$ac_save_IFS
2446 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2449 canonical=$host
2450 configuration=${host_alias-${build_alias-$host}}
2454 ### If you add support for a new configuration, add code to this
2455 ### switch statement to recognize your configuration name and select
2456 ### the appropriate operating system and machine description files.
2458 ### You would hope that you could choose an m/*.h file pretty much
2459 ### based on the machine portion of the configuration name, and an s-
2460 ### file based on the operating system portion. However, it turns out
2461 ### that each m/*.h file is pretty manufacturer-specific - for
2462 ### example mips.h is MIPS
2463 ### So we basically have to have a special case for each
2464 ### configuration name.
2466 ### As far as handling version numbers on operating systems is
2467 ### concerned, make sure things will fail in a fixable way. If
2468 ### /etc/MACHINES doesn't say anything about version numbers, be
2469 ### prepared to handle anything reasonably. If version numbers
2470 ### matter, be sure /etc/MACHINES says something about it.
2472 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2473 ### "System V Release 4"; he writes, "The old convention encouraged
2474 ### confusion between `system' and `release' levels'."
2476 machine='' opsys='' unported=no
2477 case "${canonical}" in
2479 ## FreeBSD ports
2480 *-*-freebsd* )
2481 opsys=freebsd
2482 case "${canonical}" in
2483 alpha*-*-freebsd*) machine=alpha ;;
2484 arm*-*-freebsd*) machine=arm ;;
2485 ia64-*-freebsd*) machine=ia64 ;;
2486 sparc-*-freebsd*) machine=sparc ;;
2487 sparc64-*-freebsd*) machine=sparc ;;
2488 powerpc-*-freebsd*) machine=macppc ;;
2489 i[3456]86-*-freebsd*) machine=intel386 ;;
2490 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2491 esac
2494 ## FreeBSD kernel + glibc based userland
2495 *-*-kfreebsd*gnu* )
2496 opsys=gnu-kfreebsd
2497 case "${canonical}" in
2498 alpha*-*-kfreebsd*) machine=alpha ;;
2499 ia64-*-kfreebsd*) machine=ia64 ;;
2500 sparc-*-kfreebsd*) machine=sparc ;;
2501 sparc64-*-kfreebsd*) machine=sparc ;;
2502 powerpc-*-kfreebsd*) machine=macppc ;;
2503 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2504 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2505 esac
2508 ## NetBSD ports
2509 *-*-netbsd* )
2510 opsys=netbsd
2511 if test -f /usr/lib/crti.o; then
2513 cat >>confdefs.h <<\_ACEOF
2514 #define HAVE_CRTIN
2515 _ACEOF
2519 case "${canonical}" in
2520 alpha*-*-netbsd*) machine=alpha ;;
2521 i[3456]86-*-netbsd*) machine=intel386 ;;
2522 mips-*-netbsd*) machine=pmax ;;
2523 mipsel-*-netbsd*) machine=pmax ;;
2524 mipseb-*-netbsd*) machine=pmax ;;
2525 powerpc-*-netbsd*) machine=macppc ;;
2526 sparc*-*-netbsd*) machine=sparc ;;
2527 vax-*-netbsd*) machine=vax ;;
2528 arm-*-netbsd*) machine=arm ;;
2529 x86_64-*-netbsd*) machine=amdx86-64 ;;
2530 hppa-*-netbsd*) machine=hp800 ;;
2531 m68k-*-netbsd*) machine=m68k ;;
2532 esac
2535 ## OpenBSD ports
2536 *-*-openbsd* )
2537 opsys=openbsd
2538 case "${canonical}" in
2539 alpha*-*-openbsd*) machine=alpha ;;
2540 arm-*-openbsd*) machine=arm ;;
2541 i386-*-openbsd*) machine=intel386 ;;
2542 powerpc-*-openbsd*) machine=macppc ;;
2543 sparc*-*-openbsd*) machine=sparc ;;
2544 vax-*-openbsd*) machine=vax ;;
2545 x86_64-*-openbsd*) machine=amdx86-64 ;;
2546 hppa-*-openbsd*) machine=hp800 ;;
2547 esac
2550 ## LynxOS ports
2551 *-*-lynxos* )
2552 opsys=lynxos
2553 case "${canonical}" in
2554 i[3456]86-*-lynxos*) machine=intel386 ;;
2555 powerpc-*-lynxos*) machine=powerpc ;;
2556 esac
2559 alpha*-*-linux-gnu* )
2560 machine=alpha opsys=gnu-linux
2563 arm*-*-linux-gnu* )
2564 machine=arm opsys=gnu-linux
2567 ## Apple Darwin / Mac OS X
2568 *-apple-darwin* )
2569 case "${canonical}" in
2570 i[3456]86-* ) machine=intel386 ;;
2571 powerpc-* ) machine=macppc ;;
2572 * ) unported=yes ;;
2573 esac
2574 opsys=darwin
2575 # Define CPP as follows to make autoconf work correctly.
2576 CPP="${CC-cc} -E -no-cpp-precomp"
2577 # Use fink packages if available.
2578 if test -d /sw/include && test -d /sw/lib; then
2579 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2580 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2581 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2585 ## HP 9000 series 700 and 800, running HP/UX
2586 hppa*-hp-hpux10.2* )
2587 machine=hp800 opsys=hpux10-20
2589 hppa*-hp-hpux1[1-9]* )
2590 machine=hp800 opsys=hpux11
2591 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2594 hppa*-*-linux-gnu* )
2595 machine=hp800 opsys=gnu-linux
2598 ## IBM machines
2599 s390-*-linux-gnu* )
2600 machine=ibms390 opsys=gnu-linux
2602 s390x-*-linux-gnu* )
2603 machine=ibms390x opsys=gnu-linux
2605 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2606 machine=ibmrs6000 opsys=aix4-2
2608 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2609 machine=ibmrs6000 opsys=aix4-2
2611 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2612 machine=ibmrs6000 opsys=aix4-2
2614 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2615 machine=ibmrs6000 opsys=aix4-2
2618 ## Macintosh PowerPC
2619 powerpc*-*-linux-gnu* )
2620 machine=macppc opsys=gnu-linux
2623 ## Silicon Graphics machines
2624 ## Iris 4D
2625 mips-sgi-irix6.5 )
2626 machine=iris4d opsys=irix6-5
2627 # Without defining _LANGUAGE_C, things get masked out in the headers
2628 # so that, for instance, grepping for `free' in stdlib.h fails and
2629 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2630 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2631 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2634 ## Suns
2635 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2636 machine=sparc opsys=gnu-linux
2639 *-sun-solaris* \
2640 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2641 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2642 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2643 case "${canonical}" in
2644 i[3456]86-*-* ) machine=intel386 ;;
2645 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2646 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2647 sparc* ) machine=sparc ;;
2648 * ) unported=yes ;;
2649 esac
2650 case "${canonical}" in
2651 *-sunos5.3* | *-solaris2.3* )
2652 opsys=sol2-3
2653 NON_GNU_CPP=/usr/ccs/lib/cpp
2655 *-sunos5.4* | *-solaris2.4* )
2656 opsys=sol2-4
2657 NON_GNU_CPP=/usr/ccs/lib/cpp
2658 RANLIB="ar -ts"
2660 *-sunos5.5* | *-solaris2.5* )
2661 opsys=sol2-5
2662 NON_GNU_CPP=/usr/ccs/lib/cpp
2663 RANLIB="ar -ts"
2665 *-sunos5.6* | *-solaris2.6* )
2666 opsys=sol2-6
2667 NON_GNU_CPP=/usr/ccs/lib/cpp
2668 RANLIB="ar -ts"
2670 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2671 opsys=sol2-6
2672 emacs_check_sunpro_c=yes
2673 NON_GNU_CPP=/usr/ccs/lib/cpp
2675 *-sunos5* | *-solaris* )
2676 opsys=sol2-10
2677 emacs_check_sunpro_c=yes
2678 NON_GNU_CPP=/usr/ccs/lib/cpp
2680 esac
2681 ## Watch out for a compiler that we know will not work.
2682 case "${canonical}" in
2683 *-solaris* | *-sunos5* )
2684 if [ "x$CC" = x/usr/ucb/cc ]; then
2685 ## /usr/ucb/cc doesn't work;
2686 ## we should find some other compiler that does work.
2687 unset CC
2690 *) ;;
2691 esac
2694 ## Vaxen.
2695 vax-dec-* )
2696 machine=vax
2697 case "${canonical}" in
2698 *-vms* ) opsys=vms ;;
2699 * ) unported=yes
2700 esac
2703 ## IA-64
2704 ia64*-*-linux* )
2705 machine=ia64 opsys=gnu-linux
2708 ## Intel 386 machines where we don't care about the manufacturer
2709 i[3456]86-*-* )
2710 machine=intel386
2711 case "${canonical}" in
2712 *-cygwin ) opsys=cygwin ;;
2713 *-darwin* ) opsys=darwin
2714 CPP="${CC-cc} -E -no-cpp-precomp"
2716 *-linux-gnu* ) opsys=gnu-linux ;;
2717 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2718 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2719 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2720 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2721 esac
2724 ## m68k Linux-based GNU system
2725 m68k-*-linux-gnu* )
2726 machine=m68k opsys=gnu-linux
2729 ## Mips Linux-based GNU system
2730 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2731 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2732 machine=mips opsys=gnu-linux
2735 ## AMD x86-64 Linux-based GNU system
2736 x86_64-*-linux-gnu* )
2737 machine=amdx86-64 opsys=gnu-linux
2740 ## Tensilica Xtensa Linux-based GNU system
2741 xtensa*-*-linux-gnu* )
2742 machine=xtensa opsys=gnu-linux
2745 ## SuperH Linux-based GNU system
2746 sh[34]*-*-linux-gnu* )
2747 machine=sh3 opsys=gnu-linux
2751 unported=yes
2753 esac
2755 ### If the code above didn't choose an operating system, just choose
2756 ### an operating system based on the configuration name. You really
2757 ### only want to use this when you have no idea what the right
2758 ### operating system is; if you know what operating systems a machine
2759 ### runs, it's cleaner to make it explicit in the case statement
2760 ### above.
2761 if test x"${opsys}" = x; then
2762 case "${canonical}" in
2763 *-gnu* ) opsys=gnu ;;
2764 *-sysv4.2uw* ) opsys=unixware ;;
2765 *-sysv5uw* ) opsys=unixware ;;
2766 *-sysv5OpenUNIX* ) opsys=unixware ;;
2767 *-sysv4.1* | *-sysvr4.1* )
2768 NON_GNU_CPP=/usr/lib/cpp
2769 opsys=usg5-4 ;;
2770 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2771 if [ x$NON_GNU_CPP = x ]; then
2772 if [ -f /usr/ccs/lib/cpp ]; then
2773 NON_GNU_CPP=/usr/ccs/lib/cpp
2774 else
2775 NON_GNU_CPP=/lib/cpp
2778 opsys=usg5-4-2 ;;
2779 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2781 unported=yes
2783 esac
2788 if test $unported = yes; then
2789 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2790 Check \`etc/MACHINES' for recognized configuration names." >&5
2791 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2792 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2793 { (exit 1); exit 1; }; }
2796 machfile="m/${machine}.h"
2797 opsysfile="s/${opsys}.h"
2800 #### Choose a compiler.
2801 test -n "$CC" && cc_specified=yes
2803 # Save the value of CFLAGS that the user specified.
2804 SPECIFIED_CFLAGS="$CFLAGS"
2806 ac_ext=c
2807 ac_cpp='$CPP $CPPFLAGS'
2808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6; }
2843 else
2844 { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2850 if test -z "$ac_cv_prog_CC"; then
2851 ac_ct_CC=$CC
2852 # Extract the first word of "gcc", so it can be a program name with args.
2853 set dummy gcc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 if test -n "$ac_ct_CC"; then
2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_ac_ct_CC="gcc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2880 if test -n "$ac_ct_CC"; then
2881 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2882 echo "${ECHO_T}$ac_ct_CC" >&6; }
2883 else
2884 { echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6; }
2888 if test "x$ac_ct_CC" = x; then
2889 CC=""
2890 else
2891 case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet. If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&5
2896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901 CC=$ac_ct_CC
2903 else
2904 CC="$ac_cv_prog_CC"
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}cc; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC="${ac_tool_prefix}cc"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2940 else
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2948 if test -z "$CC"; then
2949 # Extract the first word of "cc", so it can be a program name with args.
2950 set dummy cc; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 ac_prog_rejected=no
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2968 ac_prog_rejected=yes
2969 continue
2971 ac_cv_prog_CC="cc"
2972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2975 done
2976 done
2977 IFS=$as_save_IFS
2979 if test $ac_prog_rejected = yes; then
2980 # We found a bogon in the path, so make sure we never use it.
2981 set dummy $ac_cv_prog_CC
2982 shift
2983 if test $# != 0; then
2984 # We chose a different compiler from the bogus one.
2985 # However, it has the same basename, so the bogon will be chosen
2986 # first if we set CC to just the basename; use the full file name.
2987 shift
2988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2997 else
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3004 if test -z "$CC"; then
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog in cl.exe
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 CC=$ac_cv_prog_CC
3036 if test -n "$CC"; then
3037 { echo "$as_me:$LINENO: result: $CC" >&5
3038 echo "${ECHO_T}$CC" >&6; }
3039 else
3040 { echo "$as_me:$LINENO: result: no" >&5
3041 echo "${ECHO_T}no" >&6; }
3045 test -n "$CC" && break
3046 done
3048 if test -z "$CC"; then
3049 ac_ct_CC=$CC
3050 for ac_prog in cl.exe
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 if test -n "$ac_ct_CC"; then
3060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_ac_ct_CC="$ac_prog"
3070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3073 done
3074 done
3075 IFS=$as_save_IFS
3079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3080 if test -n "$ac_ct_CC"; then
3081 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3082 echo "${ECHO_T}$ac_ct_CC" >&6; }
3083 else
3084 { echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6; }
3089 test -n "$ac_ct_CC" && break
3090 done
3092 if test "x$ac_ct_CC" = x; then
3093 CC=""
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3098 whose name does not start with the host triplet. If you think this
3099 configuration is useful to you, please write to autoconf@gnu.org." >&5
3100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3101 whose name does not start with the host triplet. If you think this
3102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3103 ac_tool_warned=yes ;;
3104 esac
3105 CC=$ac_ct_CC
3112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3118 # Provide some information about the compiler.
3119 echo "$as_me:$LINENO: checking for C compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (ac_try="$ac_compiler --version >&5"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compiler --version >&5") 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }
3131 { (ac_try="$ac_compiler -v >&5"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compiler -v >&5") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141 { (ac_try="$ac_compiler -V >&5"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler -V >&5") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
3152 cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h. */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h. */
3160 main ()
3164 return 0;
3166 _ACEOF
3167 ac_clean_files_save=$ac_clean_files
3168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3169 # Try to create an executable without -o first, disregard a.out.
3170 # It will help us diagnose broken compilers, and finding out an intuition
3171 # of exeext.
3172 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3174 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176 # List of possible output files, starting from the most likely.
3177 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3178 # only as a last resort. b.out is created by i960 compilers.
3179 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3181 # The IRIX 6 linker writes into existing files which may not be
3182 # executable, retaining their permissions. Remove them first so a
3183 # subsequent execution test works.
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190 esac
3191 done
3192 rm -f $ac_rmfiles
3194 if { (ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_link_default") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; then
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3208 # Autoconf.
3209 for ac_file in $ac_files ''
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3215 [ab].out )
3216 # We found the default executable, but exeext='' is most
3217 # certainly right.
3218 break;;
3219 *.* )
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 then :; else
3222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3228 # actually working.
3229 break;;
3231 break;;
3232 esac
3233 done
3234 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236 else
3237 ac_file=''
3240 { echo "$as_me:$LINENO: result: $ac_file" >&5
3241 echo "${ECHO_T}$ac_file" >&6; }
3242 if test -z "$ac_file"; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3246 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3247 See \`config.log' for more details." >&5
3248 echo "$as_me: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&2;}
3250 { (exit 77); exit 77; }; }
3253 ac_exeext=$ac_cv_exeext
3255 # Check that the compiler produces executables we can run. If not, either
3256 # the compiler is broken, or we cross compile.
3257 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3258 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3259 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3260 # If not cross compiling, check that we can run a simple program.
3261 if test "$cross_compiling" != yes; then
3262 if { ac_try='./$ac_file'
3263 { (case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_try") 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 cross_compiling=no
3273 else
3274 if test "$cross_compiling" = maybe; then
3275 cross_compiling=yes
3276 else
3277 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details." >&5
3280 echo "$as_me: error: cannot run C compiled programs.
3281 If you meant to cross compile, use \`--host'.
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3287 { echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6; }
3290 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 # Check that the compiler produces executables we can run. If not, either
3293 # the compiler is broken, or we cross compile.
3294 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3295 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3296 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3297 echo "${ECHO_T}$cross_compiling" >&6; }
3299 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3300 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3301 if { (ac_try="$ac_link"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3312 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3313 # work properly (i.e., refer to `conftest.exe'), while it won't with
3314 # `rm'.
3315 for ac_file in conftest.exe conftest conftest.*; do
3316 test -f "$ac_file" || continue
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3320 break;;
3321 * ) break;;
3322 esac
3323 done
3324 else
3325 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details." >&5
3327 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3332 rm -f conftest$ac_cv_exeext
3333 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3334 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3336 rm -f conftest.$ac_ext
3337 EXEEXT=$ac_cv_exeext
3338 ac_exeext=$EXEEXT
3339 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3340 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3341 if test "${ac_cv_objext+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h. */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3352 main ()
3356 return 0;
3358 _ACEOF
3359 rm -f conftest.o conftest.obj
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_compile") 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; then
3370 for ac_file in conftest.o conftest.obj conftest.*; do
3371 test -f "$ac_file" || continue;
3372 case $ac_file in
3373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3374 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375 break;;
3376 esac
3377 done
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3383 See \`config.log' for more details." >&5
3384 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3392 echo "${ECHO_T}$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3394 ac_objext=$OBJEXT
3395 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3396 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3408 main ()
3410 #ifndef __GNUC__
3411 choke me
3412 #endif
3415 return 0;
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3420 case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423 esac
3424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3435 ac_compiler_gnu=yes
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 ac_compiler_gnu=no
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3448 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3449 GCC=`test $ac_compiler_gnu = yes && echo yes`
3450 ac_test_CFLAGS=${CFLAGS+set}
3451 ac_save_CFLAGS=$CFLAGS
3452 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3453 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3454 if test "${ac_cv_prog_cc_g+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 else
3457 ac_save_c_werror_flag=$ac_c_werror_flag
3458 ac_c_werror_flag=yes
3459 ac_cv_prog_cc_g=no
3460 CFLAGS="-g"
3461 cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h. */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3469 main ()
3473 return 0;
3475 _ACEOF
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 ac_cv_prog_cc_g=yes
3494 else
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 CFLAGS=""
3499 cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h. */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3507 main ()
3511 return 0;
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_c_werror_flag=$ac_save_c_werror_flag
3537 CFLAGS="-g"
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_prog_cc_g=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3587 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3589 if test "$ac_test_CFLAGS" = set; then
3590 CFLAGS=$ac_save_CFLAGS
3591 elif test $ac_cv_prog_cc_g = yes; then
3592 if test "$GCC" = yes; then
3593 CFLAGS="-g -O2"
3594 else
3595 CFLAGS="-g"
3597 else
3598 if test "$GCC" = yes; then
3599 CFLAGS="-O2"
3600 else
3601 CFLAGS=
3604 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3605 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3606 if test "${ac_cv_prog_cc_c89+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 ac_cv_prog_cc_c89=no
3610 ac_save_CC=$CC
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625 char **p;
3626 int i;
3628 return p[i];
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3632 char *s;
3633 va_list v;
3634 va_start (v,p);
3635 s = g (p, va_arg (v,int));
3636 va_end (v);
3637 return s;
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3641 function prototypes and stuff, but not '\xHH' hex character constants.
3642 These don't provoke an error unfortunately, instead are silently treated
3643 as 'x'. The following induces an error, until -std is added to get
3644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3645 array size at least. It's necessary to write '\x00'==0 to get something
3646 that's true only with -std. */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650 inside strings and character constants. */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3661 main ()
3663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3665 return 0;
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3671 CC="$ac_save_CC $ac_arg"
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_compile") 2>conftest.er1
3680 ac_status=$?
3681 grep -v '^ *+' conftest.er1 >conftest.err
3682 rm -f conftest.er1
3683 cat conftest.err >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && {
3686 test -z "$ac_c_werror_flag" ||
3687 test ! -s conftest.err
3688 } && test -s conftest.$ac_objext; then
3689 ac_cv_prog_cc_c89=$ac_arg
3690 else
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3697 rm -f core conftest.err conftest.$ac_objext
3698 test "x$ac_cv_prog_cc_c89" != "xno" && break
3699 done
3700 rm -f conftest.$ac_ext
3701 CC=$ac_save_CC
3704 # AC_CACHE_VAL
3705 case "x$ac_cv_prog_cc_c89" in
3707 { echo "$as_me:$LINENO: result: none needed" >&5
3708 echo "${ECHO_T}none needed" >&6; } ;;
3709 xno)
3710 { echo "$as_me:$LINENO: result: unsupported" >&5
3711 echo "${ECHO_T}unsupported" >&6; } ;;
3713 CC="$CC $ac_cv_prog_cc_c89"
3714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3715 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3716 esac
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 # On Suns, sometimes $CPP names a directory.
3727 if test -n "$CPP" && test -d "$CPP"; then
3728 CPP=
3731 ## If not using gcc, and on Solaris, and no CPP specified, see if
3732 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3733 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3734 test x"$CPP" = x; then
3735 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3736 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3738 if test "${emacs_cv_sunpro_c+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3749 main ()
3751 #ifndef __SUNPRO_C
3752 fail;
3753 #endif
3756 return 0;
3758 _ACEOF
3759 rm -f conftest.$ac_objext conftest$ac_exeext
3760 if { (ac_try="$ac_link"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_link") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest$ac_exeext &&
3776 $as_test_x conftest$ac_exeext; then
3777 emacs_cv_sunpro_c=yes
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 emacs_cv_sunpro_c=no
3785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3786 conftest$ac_exeext conftest.$ac_ext
3789 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3790 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3792 if test x"$emacs_cv_sunpro_c" = xyes; then
3793 NON_GNU_CPP="$CC -E -Xs"
3797 #### Some systems specify a CPP to use unless we are using GCC.
3798 #### Now that we know whether we are using GCC, we can decide whether
3799 #### to use that one.
3800 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3801 then
3802 CPP="$NON_GNU_CPP"
3805 #### Some systems specify a CC to use unless we are using GCC.
3806 #### Now that we know whether we are using GCC, we can decide whether
3807 #### to use that one.
3808 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3809 test x$cc_specified != xyes
3810 then
3811 CC="$NON_GNU_CC"
3814 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3815 then
3816 CC="$CC $GCC_TEST_OPTIONS"
3819 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3820 then
3821 CC="$CC $NON_GCC_TEST_OPTIONS"
3825 cat >>confdefs.h <<\_ACEOF
3826 #define _GNU_SOURCE 1
3827 _ACEOF
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3836 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3839 CPP=
3841 if test -z "$CPP"; then
3842 if test "${ac_cv_prog_CPP+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 # Double quotes because CPP needs to be expanded
3846 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #ifdef __STDC__
3864 # include <limits.h>
3865 #else
3866 # include <assert.h>
3867 #endif
3868 Syntax error
3869 _ACEOF
3870 if { (ac_try="$ac_cpp conftest.$ac_ext"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3885 }; then
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3892 continue
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3906 _ACEOF
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev/null && {
3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 }; then
3923 # Broken: success on invalid input.
3924 continue
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3934 rm -f conftest.err conftest.$ac_ext
3936 done
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3940 break
3943 done
3944 ac_cv_prog_CPP=$CPP
3947 CPP=$ac_cv_prog_CPP
3948 else
3949 ac_cv_prog_CPP=$CPP
3951 { echo "$as_me:$LINENO: result: $CPP" >&5
3952 echo "${ECHO_T}$CPP" >&6; }
3953 ac_preproc_ok=false
3954 for ac_c_preproc_warn_flag in '' yes
3956 # Use a header file that comes with gcc, so configuring glibc
3957 # with a fresh cross-compiler works.
3958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 # <limits.h> exists even on freestanding compilers.
3960 # On the NeXT, cc -E runs the code through the compiler's parser,
3961 # not just through cpp. "Syntax error" is here to catch this case.
3962 cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h. */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3973 Syntax error
3974 _ACEOF
3975 if { (ac_try="$ac_cpp conftest.$ac_ext"
3976 case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979 esac
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null && {
3988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3989 test ! -s conftest.err
3990 }; then
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 # Broken: fails on valid input.
3997 continue
4000 rm -f conftest.err conftest.$ac_ext
4002 # OK, works on sane cases. Now check whether nonexistent headers
4003 # can be detected and how.
4004 cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h. */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <ac_nonexistent.h>
4011 _ACEOF
4012 if { (ac_try="$ac_cpp conftest.$ac_ext"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null && {
4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4026 test ! -s conftest.err
4027 }; then
4028 # Broken: success on invalid input.
4029 continue
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4034 # Passes both tests.
4035 ac_preproc_ok=:
4036 break
4039 rm -f conftest.err conftest.$ac_ext
4041 done
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4046 else
4047 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&5
4049 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; }
4054 ac_ext=c
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4062 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_GREP+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066 # Extract the first word of "grep ggrep" to use in msg output
4067 if test -z "$GREP"; then
4068 set dummy grep ggrep; ac_prog_name=$2
4069 if test "${ac_cv_path_GREP+set}" = set; then
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072 ac_path_GREP_found=false
4073 # Loop through the user's path and test for each of PROGNAME-LIST
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 for ac_prog in grep ggrep; do
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
4084 # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4086 *GNU*)
4087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4089 ac_count=0
4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4091 while :
4093 cat "conftest.in" "conftest.in" >"conftest.tmp"
4094 mv "conftest.tmp" "conftest.in"
4095 cp "conftest.in" "conftest.nl"
4096 echo 'GREP' >> "conftest.nl"
4097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099 ac_count=`expr $ac_count + 1`
4100 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101 # Best one so far, save it but keep looking for a better one
4102 ac_cv_path_GREP="$ac_path_GREP"
4103 ac_path_GREP_max=$ac_count
4105 # 10*(2^10) chars as input seems more than enough
4106 test $ac_count -gt 10 && break
4107 done
4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4112 $ac_path_GREP_found && break 3
4113 done
4114 done
4116 done
4117 IFS=$as_save_IFS
4122 GREP="$ac_cv_path_GREP"
4123 if test -z "$GREP"; then
4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4126 { (exit 1); exit 1; }; }
4129 else
4130 ac_cv_path_GREP=$GREP
4135 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4136 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4137 GREP="$ac_cv_path_GREP"
4140 { echo "$as_me:$LINENO: checking for egrep" >&5
4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4142 if test "${ac_cv_path_EGREP+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4146 then ac_cv_path_EGREP="$GREP -E"
4147 else
4148 # Extract the first word of "egrep" to use in msg output
4149 if test -z "$EGREP"; then
4150 set dummy egrep; ac_prog_name=$2
4151 if test "${ac_cv_path_EGREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 ac_path_EGREP_found=false
4155 # Loop through the user's path and test for each of PROGNAME-LIST
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_prog in egrep; do
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4164 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4165 # Check for GNU ac_path_EGREP and select it if it is found.
4166 # Check for GNU $ac_path_EGREP
4167 case `"$ac_path_EGREP" --version 2>&1` in
4168 *GNU*)
4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4171 ac_count=0
4172 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4173 while :
4175 cat "conftest.in" "conftest.in" >"conftest.tmp"
4176 mv "conftest.tmp" "conftest.in"
4177 cp "conftest.in" "conftest.nl"
4178 echo 'EGREP' >> "conftest.nl"
4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4181 ac_count=`expr $ac_count + 1`
4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4183 # Best one so far, save it but keep looking for a better one
4184 ac_cv_path_EGREP="$ac_path_EGREP"
4185 ac_path_EGREP_max=$ac_count
4187 # 10*(2^10) chars as input seems more than enough
4188 test $ac_count -gt 10 && break
4189 done
4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4191 esac
4194 $ac_path_EGREP_found && break 3
4195 done
4196 done
4198 done
4199 IFS=$as_save_IFS
4204 EGREP="$ac_cv_path_EGREP"
4205 if test -z "$EGREP"; then
4206 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4208 { (exit 1); exit 1; }; }
4211 else
4212 ac_cv_path_EGREP=$EGREP
4218 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4219 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4220 EGREP="$ac_cv_path_EGREP"
4224 { echo "$as_me:$LINENO: checking for AIX" >&5
4225 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #ifdef _AIX
4234 #endif
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238 $EGREP "yes" >/dev/null 2>&1; then
4239 { echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6; }
4241 cat >>confdefs.h <<\_ACEOF
4242 #define _ALL_SOURCE 1
4243 _ACEOF
4245 else
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4249 rm -f conftest*
4252 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <stdlib.h>
4264 #include <stdarg.h>
4265 #include <string.h>
4266 #include <float.h>
4269 main ()
4273 return 0;
4275 _ACEOF
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4278 case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } && {
4290 test -z "$ac_c_werror_flag" ||
4291 test ! -s conftest.err
4292 } && test -s conftest.$ac_objext; then
4293 ac_cv_header_stdc=yes
4294 else
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 ac_cv_header_stdc=no
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test $ac_cv_header_stdc = yes; then
4304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 #include <string.h>
4313 _ACEOF
4314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4315 $EGREP "memchr" >/dev/null 2>&1; then
4317 else
4318 ac_cv_header_stdc=no
4320 rm -f conftest*
4324 if test $ac_cv_header_stdc = yes; then
4325 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4326 cat >conftest.$ac_ext <<_ACEOF
4327 /* confdefs.h. */
4328 _ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 #include <stdlib.h>
4334 _ACEOF
4335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4336 $EGREP "free" >/dev/null 2>&1; then
4338 else
4339 ac_cv_header_stdc=no
4341 rm -f conftest*
4345 if test $ac_cv_header_stdc = yes; then
4346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4347 if test "$cross_compiling" = yes; then
4349 else
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #include <ctype.h>
4357 #include <stdlib.h>
4358 #if ((' ' & 0x0FF) == 0x020)
4359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4361 #else
4362 # define ISLOWER(c) \
4363 (('a' <= (c) && (c) <= 'i') \
4364 || ('j' <= (c) && (c) <= 'r') \
4365 || ('s' <= (c) && (c) <= 'z'))
4366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4367 #endif
4369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4371 main ()
4373 int i;
4374 for (i = 0; i < 256; i++)
4375 if (XOR (islower (i), ISLOWER (i))
4376 || toupper (i) != TOUPPER (i))
4377 return 2;
4378 return 0;
4380 _ACEOF
4381 rm -f conftest$ac_exeext
4382 if { (ac_try="$ac_link"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_link") 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4392 { (case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397 (eval "$ac_try") 2>&5
4398 ac_status=$?
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4402 else
4403 echo "$as_me: program exited with status $ac_status" >&5
4404 echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4407 ( exit $ac_status )
4408 ac_cv_header_stdc=no
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4416 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4417 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4418 if test $ac_cv_header_stdc = yes; then
4420 cat >>confdefs.h <<\_ACEOF
4421 #define STDC_HEADERS 1
4422 _ACEOF
4426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4436 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4437 inttypes.h stdint.h unistd.h
4439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4453 #include <$ac_header>
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest.$ac_objext; then
4472 eval "$as_ac_Header=yes"
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 eval "$as_ac_Header=no"
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_res=`eval echo '${'$as_ac_Header'}'`
4483 { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4486 cat >>confdefs.h <<_ACEOF
4487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488 _ACEOF
4492 done
4495 if test "${ac_cv_header_minix_config_h+set}" = set; then
4496 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4497 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4498 if test "${ac_cv_header_minix_config_h+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4502 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4503 else
4504 # Is the header compilable?
4505 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4506 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 $ac_includes_default
4514 #include <minix/config.h>
4515 _ACEOF
4516 rm -f conftest.$ac_objext
4517 if { (ac_try="$ac_compile"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4523 (eval "$ac_compile") 2>conftest.er1
4524 ac_status=$?
4525 grep -v '^ *+' conftest.er1 >conftest.err
4526 rm -f conftest.er1
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } && {
4530 test -z "$ac_c_werror_flag" ||
4531 test ! -s conftest.err
4532 } && test -s conftest.$ac_objext; then
4533 ac_header_compiler=yes
4534 else
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 ac_header_compiler=no
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4543 echo "${ECHO_T}$ac_header_compiler" >&6; }
4545 # Is the header present?
4546 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4547 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 #include <minix/config.h>
4555 _ACEOF
4556 if { (ac_try="$ac_cpp conftest.$ac_ext"
4557 case "(($ac_try" in
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null && {
4569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 }; then
4572 ac_header_preproc=yes
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 ac_header_preproc=no
4580 rm -f conftest.err conftest.$ac_ext
4581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4582 echo "${ECHO_T}$ac_header_preproc" >&6; }
4584 # So? What about this header?
4585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4586 yes:no: )
4587 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4588 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4589 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4590 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4591 ac_header_preproc=yes
4593 no:yes:* )
4594 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4595 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4596 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4597 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4598 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4599 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4600 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4601 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4603 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4605 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4608 esac
4609 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4610 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4611 if test "${ac_cv_header_minix_config_h+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 ac_cv_header_minix_config_h=$ac_header_preproc
4616 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4617 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4620 if test $ac_cv_header_minix_config_h = yes; then
4621 MINIX=yes
4622 else
4623 MINIX=
4627 if test "$MINIX" = yes; then
4629 cat >>confdefs.h <<\_ACEOF
4630 #define _POSIX_SOURCE 1
4631 _ACEOF
4634 cat >>confdefs.h <<\_ACEOF
4635 #define _POSIX_1_SOURCE 2
4636 _ACEOF
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _MINIX 1
4641 _ACEOF
4655 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4656 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4657 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4667 # define __EXTENSIONS__ 1
4668 $ac_includes_default
4670 main ()
4674 return 0;
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_compile") 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } && {
4691 test -z "$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4693 } && test -s conftest.$ac_objext; then
4694 ac_cv_safe_to_define___extensions__=yes
4695 else
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_cv_safe_to_define___extensions__=no
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4705 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4706 test $ac_cv_safe_to_define___extensions__ = yes &&
4707 cat >>confdefs.h <<\_ACEOF
4708 #define __EXTENSIONS__ 1
4709 _ACEOF
4711 cat >>confdefs.h <<\_ACEOF
4712 #define _POSIX_PTHREAD_SEMANTICS 1
4713 _ACEOF
4715 cat >>confdefs.h <<\_ACEOF
4716 #define _TANDEM_SOURCE 1
4717 _ACEOF
4721 ### Use -Wno-pointer-sign if the compiler supports it
4722 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4723 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4724 SAVE_CFLAGS="$CFLAGS"
4725 CFLAGS="$CFLAGS -Wno-pointer-sign"
4726 cat >conftest.$ac_ext <<_ACEOF
4727 /* confdefs.h. */
4728 _ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4734 main ()
4738 return 0;
4740 _ACEOF
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4743 case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746 esac
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && {
4755 test -z "$ac_c_werror_flag" ||
4756 test ! -s conftest.err
4757 } && test -s conftest.$ac_objext; then
4758 has_option=yes
4759 else
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 has_option=no
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 if test $has_option = yes; then
4768 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4770 { echo "$as_me:$LINENO: result: $has_option" >&5
4771 echo "${ECHO_T}$has_option" >&6; }
4772 CFLAGS="$SAVE_CFLAGS"
4773 unset has_option
4774 unset SAVE_CFLAGS
4776 #### Some other nice autoconf tests.
4778 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4779 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4780 LN_S=$as_ln_s
4781 if test "$LN_S" = "ln -s"; then
4782 { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4784 else
4785 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4786 echo "${ECHO_T}no, using $LN_S" >&6; }
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4795 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4796 # On Suns, sometimes $CPP names a directory.
4797 if test -n "$CPP" && test -d "$CPP"; then
4798 CPP=
4800 if test -z "$CPP"; then
4801 if test "${ac_cv_prog_CPP+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 # Double quotes because CPP needs to be expanded
4805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4807 ac_preproc_ok=false
4808 for ac_c_preproc_warn_flag in '' yes
4810 # Use a header file that comes with gcc, so configuring glibc
4811 # with a fresh cross-compiler works.
4812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4813 # <limits.h> exists even on freestanding compilers.
4814 # On the NeXT, cc -E runs the code through the compiler's parser,
4815 # not just through cpp. "Syntax error" is here to catch this case.
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #ifdef __STDC__
4823 # include <limits.h>
4824 #else
4825 # include <assert.h>
4826 #endif
4827 Syntax error
4828 _ACEOF
4829 if { (ac_try="$ac_cpp conftest.$ac_ext"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } >/dev/null && {
4842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 }; then
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Broken: fails on valid input.
4851 continue
4854 rm -f conftest.err conftest.$ac_ext
4856 # OK, works on sane cases. Now check whether nonexistent headers
4857 # can be detected and how.
4858 cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h. */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h. */
4864 #include <ac_nonexistent.h>
4865 _ACEOF
4866 if { (ac_try="$ac_cpp conftest.$ac_ext"
4867 case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870 esac
4871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4873 ac_status=$?
4874 grep -v '^ *+' conftest.er1 >conftest.err
4875 rm -f conftest.er1
4876 cat conftest.err >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } >/dev/null && {
4879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 }; then
4882 # Broken: success on invalid input.
4883 continue
4884 else
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4888 # Passes both tests.
4889 ac_preproc_ok=:
4890 break
4893 rm -f conftest.err conftest.$ac_ext
4895 done
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then
4899 break
4902 done
4903 ac_cv_prog_CPP=$CPP
4906 CPP=$ac_cv_prog_CPP
4907 else
4908 ac_cv_prog_CPP=$CPP
4910 { echo "$as_me:$LINENO: result: $CPP" >&5
4911 echo "${ECHO_T}$CPP" >&6; }
4912 ac_preproc_ok=false
4913 for ac_c_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932 Syntax error
4933 _ACEOF
4934 if { (ac_try="$ac_cpp conftest.$ac_ext"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 }; then
4951 else
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4955 # Broken: fails on valid input.
4956 continue
4959 rm -f conftest.err conftest.$ac_ext
4961 # OK, works on sane cases. Now check whether nonexistent headers
4962 # can be detected and how.
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if { (ac_try="$ac_cpp conftest.$ac_ext"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } >/dev/null && {
4984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 }; then
4987 # Broken: success on invalid input.
4988 continue
4989 else
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4993 # Passes both tests.
4994 ac_preproc_ok=:
4995 break
4998 rm -f conftest.err conftest.$ac_ext
5000 done
5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5002 rm -f conftest.err conftest.$ac_ext
5003 if $ac_preproc_ok; then
5005 else
5006 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; }
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 # Find a good install program. We prefer a C program (faster),
5020 # so one script is as good as another. But avoid the broken or
5021 # incompatible versions:
5022 # SysV /etc/install, /usr/sbin/install
5023 # SunOS /usr/etc/install
5024 # IRIX /sbin/install
5025 # AIX /bin/install
5026 # AmigaOS /C/install, which installs bootblocks on floppy discs
5027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5030 # OS/2's system install, which has a completely different semantic
5031 # ./install, which can be erroneously created by make from ./install.sh.
5032 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5033 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5034 if test -z "$INSTALL"; then
5035 if test "${ac_cv_path_install+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 # Account for people who put trailing slashes in PATH elements.
5044 case $as_dir/ in
5045 ./ | .// | /cC/* | \
5046 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5047 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5048 /usr/ucb/* ) ;;
5050 # OSF1 and SCO ODT 3.0 have their own names for install.
5051 # Don't use installbsd from OSF since it installs stuff as root
5052 # by default.
5053 for ac_prog in ginstall scoinst install; do
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5056 if test $ac_prog = install &&
5057 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5058 # AIX install. It has an incompatible calling convention.
5060 elif test $ac_prog = install &&
5061 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5062 # program-specific install script used by HP pwplus--don't use.
5064 else
5065 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5066 break 3
5069 done
5070 done
5072 esac
5073 done
5074 IFS=$as_save_IFS
5078 if test "${ac_cv_path_install+set}" = set; then
5079 INSTALL=$ac_cv_path_install
5080 else
5081 # As a last resort, use the slow shell script. Don't cache a
5082 # value for INSTALL within a source directory, because that will
5083 # break other packages using the cache if that directory is
5084 # removed, or if the value is a relative name.
5085 INSTALL=$ac_install_sh
5088 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5089 echo "${ECHO_T}$INSTALL" >&6; }
5091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5092 # It thinks the first close brace ends the variable substitution.
5093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5099 if test "x$RANLIB" = x; then
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_prog_RANLIB+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5124 IFS=$as_save_IFS
5128 RANLIB=$ac_cv_prog_RANLIB
5129 if test -n "$RANLIB"; then
5130 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5131 echo "${ECHO_T}$RANLIB" >&6; }
5132 else
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5139 if test -z "$ac_cv_prog_RANLIB"; then
5140 ac_ct_RANLIB=$RANLIB
5141 # Extract the first word of "ranlib", so it can be a program name with args.
5142 set dummy ranlib; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 if test -n "$ac_ct_RANLIB"; then
5149 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_ac_ct_RANLIB="ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5162 done
5163 done
5164 IFS=$as_save_IFS
5168 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5169 if test -n "$ac_ct_RANLIB"; then
5170 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5171 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5172 else
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5177 if test "x$ac_ct_RANLIB" = x; then
5178 RANLIB=":"
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181 yes:)
5182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&5
5185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190 RANLIB=$ac_ct_RANLIB
5192 else
5193 RANLIB="$ac_cv_prog_RANLIB"
5197 # Extract the first word of "install-info", so it can be a program name with args.
5198 set dummy install-info; ac_word=$2
5199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5201 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 else
5204 case $INSTALL_INFO in
5205 [\\/]* | ?:[\\/]*)
5206 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5222 IFS=$as_save_IFS
5225 esac
5227 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5228 if test -n "$INSTALL_INFO"; then
5229 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5230 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5231 else
5232 { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5237 # Extract the first word of "install-info", so it can be a program name with args.
5238 set dummy install-info; ac_word=$2
5239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5241 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244 case $INSTALL_INFO in
5245 [\\/]* | ?:[\\/]*)
5246 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in /usr/sbin
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5265 esac
5267 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5268 if test -n "$INSTALL_INFO"; then
5269 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5270 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5271 else
5272 { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5277 # Extract the first word of "install-info", so it can be a program name with args.
5278 set dummy install-info; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 case $INSTALL_INFO in
5285 [\\/]* | ?:[\\/]*)
5286 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in /sbin
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5302 IFS=$as_save_IFS
5304 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5306 esac
5308 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5309 if test -n "$INSTALL_INFO"; then
5310 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5311 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5312 else
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5318 # Extract the first word of "gzip", so it can be a program name with args.
5319 set dummy gzip; ac_word=$2
5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325 case $GZIP_PROG in
5326 [\\/]* | ?:[\\/]*)
5327 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5343 IFS=$as_save_IFS
5346 esac
5348 GZIP_PROG=$ac_cv_path_GZIP_PROG
5349 if test -n "$GZIP_PROG"; then
5350 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5351 echo "${ECHO_T}$GZIP_PROG" >&6; }
5352 else
5353 { echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6; }
5360 ## Need makeinfo >= 4.6 (?) to build the manuals.
5361 # Extract the first word of "makeinfo", so it can be a program name with args.
5362 set dummy makeinfo; ac_word=$2
5363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 case $MAKEINFO in
5369 [\\/]* | ?:[\\/]*)
5370 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5388 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5390 esac
5392 MAKEINFO=$ac_cv_path_MAKEINFO
5393 if test -n "$MAKEINFO"; then
5394 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5395 echo "${ECHO_T}$MAKEINFO" >&6; }
5396 else
5397 { echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6; }
5402 if test "$MAKEINFO" != "no" && \
5403 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
5404 MAKEINFO=no
5407 ## Makeinfo is unusual. For a released Emacs, the manuals are
5408 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5409 ## therefore in the category of "special tools" not normally required, which
5410 ## configure does not have to check for (eg autoconf itself).
5411 ## In a CVS checkout on the other hand, the manuals are not included.
5412 ## So makeinfo is a requirement to build from CVS, and configure
5413 ## should test for it as it does for any other build requirement.
5414 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5415 ## with pre-built manuals, from a CVS checkout.
5416 if test "$MAKEINFO" = "no"; then
5417 if test "x${with_makeinfo}" = "xno"; then
5418 MAKEINFO=off
5419 elif ! test -e $srcdir/info/emacs; then
5420 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5421 source tree does not seem to have pre-built manuals in the \`info' directory.
5422 Either install a suitable version of makeinfo, or re-run configure
5423 with the \`--without-makeinfo' option to build without the manuals. " >&5
5424 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5425 source tree does not seem to have pre-built manuals in the \`info' directory.
5426 Either install a suitable version of makeinfo, or re-run configure
5427 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5428 { (exit 1); exit 1; }; }
5433 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5434 then
5435 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5438 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5439 then
5440 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5444 late_LDFLAGS=$LDFLAGS
5445 if test "$GCC" = yes; then
5446 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5447 else
5448 LDFLAGS="$LDFLAGS -znocombreloc"
5451 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5452 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5453 cat >conftest.$ac_ext <<_ACEOF
5454 main(){return 0;}
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (ac_try="$ac_link"
5458 case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_link") 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_c_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest$ac_exeext &&
5473 $as_test_x conftest$ac_exeext; then
5474 { echo "$as_me:$LINENO: result: yes" >&5
5475 echo "${ECHO_T}yes" >&6; }
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 LDFLAGS=$late_LDFLAGS
5481 { echo "$as_me:$LINENO: result: no" >&5
5482 echo "${ECHO_T}no" >&6; }
5485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5486 conftest$ac_exeext conftest.$ac_ext
5488 #### Extract some information from the operating system and machine files.
5490 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5491 - which libraries the lib-src programs will want, and
5492 - whether the GNU malloc routines are usable..." >&5
5493 echo "$as_me: checking the machine- and system-dependent files to find out
5494 - which libraries the lib-src programs will want, and
5495 - whether the GNU malloc routines are usable..." >&6;}
5497 ### First figure out CFLAGS (which we use for running the compiler here)
5498 ### and REAL_CFLAGS (which we use for real compilation).
5499 ### The two are the same except on a few systems, where they are made
5500 ### different to work around various lossages. For example,
5501 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5502 ### as implying static linking.
5504 ### If the CFLAGS env var is specified, we use that value
5505 ### instead of the default.
5507 ### It's not important that this name contain the PID; you can't run
5508 ### two configures in the same directory and have anything work
5509 ### anyway.
5510 tempcname="conftest.c"
5512 echo '
5513 #include "'${srcdir}'/src/'${opsysfile}'"
5514 #include "'${srcdir}'/src/'${machfile}'"
5515 #ifndef LIBS_MACHINE
5516 #define LIBS_MACHINE
5517 #endif
5518 #ifndef LIBS_SYSTEM
5519 #define LIBS_SYSTEM
5520 #endif
5521 #ifndef C_SWITCH_SYSTEM
5522 #define C_SWITCH_SYSTEM
5523 #endif
5524 #ifndef C_SWITCH_MACHINE
5525 #define C_SWITCH_MACHINE
5526 #endif
5527 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5528 configure___ c_switch_system=C_SWITCH_SYSTEM
5529 configure___ c_switch_machine=C_SWITCH_MACHINE
5531 #ifndef LIB_X11_LIB
5532 #define LIB_X11_LIB -lX11
5533 #endif
5535 #ifndef LIBX11_SYSTEM
5536 #define LIBX11_SYSTEM
5537 #endif
5538 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5540 #ifdef UNEXEC
5541 configure___ unexec=UNEXEC
5542 #else
5543 configure___ unexec=unexec.o
5544 #endif
5546 #ifdef SYSTEM_MALLOC
5547 configure___ system_malloc=yes
5548 #else
5549 configure___ system_malloc=no
5550 #endif
5552 #ifdef USE_MMAP_FOR_BUFFERS
5553 configure___ use_mmap_for_buffers=yes
5554 #else
5555 configure___ use_mmap_for_buffers=no
5556 #endif
5558 #ifndef C_DEBUG_SWITCH
5559 #define C_DEBUG_SWITCH -g
5560 #endif
5562 #ifndef C_OPTIMIZE_SWITCH
5563 #ifdef __GNUC__
5564 #define C_OPTIMIZE_SWITCH -O2
5565 #else
5566 #define C_OPTIMIZE_SWITCH -O
5567 #endif
5568 #endif
5570 #ifndef C_WARNINGS_SWITCH
5571 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5572 #endif
5574 #ifndef LD_SWITCH_MACHINE
5575 #define LD_SWITCH_MACHINE
5576 #endif
5578 #ifndef LD_SWITCH_SYSTEM
5579 #define LD_SWITCH_SYSTEM
5580 #endif
5582 #ifndef LD_SWITCH_X_SITE_AUX
5583 #define LD_SWITCH_X_SITE_AUX
5584 #endif
5586 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5587 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5589 #ifdef THIS_IS_CONFIGURE
5591 /* Get the CFLAGS for tests in configure. */
5592 #ifdef __GNUC__
5593 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5594 #else
5595 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5596 #endif
5598 #else /* not THIS_IS_CONFIGURE */
5600 /* Get the CFLAGS for real compilation. */
5601 #ifdef __GNUC__
5602 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5603 #else
5604 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5605 #endif
5607 #endif /* not THIS_IS_CONFIGURE */
5608 ' > ${tempcname}
5610 # The value of CPP is a quoted variable reference, so we need to do this
5611 # to get its actual value...
5612 CPP=`eval "echo $CPP"`
5613 eval `${CPP} -Isrc ${tempcname} \
5614 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5615 if test "x$SPECIFIED_CFLAGS" = x; then
5616 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5617 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5618 else
5619 REAL_CFLAGS="$CFLAGS"
5621 rm ${tempcname}
5623 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5625 ### Make sure subsequent tests use flags consistent with the build flags.
5627 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5628 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5629 else
5630 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5635 # Check whether --enable-largefile was given.
5636 if test "${enable_largefile+set}" = set; then
5637 enableval=$enable_largefile;
5640 if test "$enable_largefile" != no; then
5642 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5643 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5644 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 ac_cv_sys_largefile_CC=no
5648 if test "$GCC" != yes; then
5649 ac_save_CC=$CC
5650 while :; do
5651 # IRIX 6.2 and later do not support large files by default,
5652 # so use the C compiler's -n32 option if that helps.
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <sys/types.h>
5660 /* Check that off_t can represent 2**63 - 1 correctly.
5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5662 since some C++ compilers masquerading as C compilers
5663 incorrectly reject 9223372036854775807. */
5664 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5665 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5666 && LARGE_OFF_T % 2147483647 == 1)
5667 ? 1 : -1];
5669 main ()
5673 return 0;
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.$ac_objext; then
5693 break
5694 else
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5701 rm -f core conftest.err conftest.$ac_objext
5702 CC="$CC -n32"
5703 rm -f conftest.$ac_objext
5704 if { (ac_try="$ac_compile"
5705 case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708 esac
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compile") 2>conftest.er1
5711 ac_status=$?
5712 grep -v '^ *+' conftest.er1 >conftest.err
5713 rm -f conftest.er1
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && {
5717 test -z "$ac_c_werror_flag" ||
5718 test ! -s conftest.err
5719 } && test -s conftest.$ac_objext; then
5720 ac_cv_sys_largefile_CC=' -n32'; break
5721 else
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5728 rm -f core conftest.err conftest.$ac_objext
5729 break
5730 done
5731 CC=$ac_save_CC
5732 rm -f conftest.$ac_ext
5735 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5736 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5737 if test "$ac_cv_sys_largefile_CC" != no; then
5738 CC=$CC$ac_cv_sys_largefile_CC
5741 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5742 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746 while :; do
5747 cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h. */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5761 ? 1 : -1];
5763 main ()
5767 return 0;
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (ac_try="$ac_compile"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compile") 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest.$ac_objext; then
5787 ac_cv_sys_file_offset_bits=no; break
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _FILE_OFFSET_BITS 64
5803 #include <sys/types.h>
5804 /* Check that off_t can represent 2**63 - 1 correctly.
5805 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5806 since some C++ compilers masquerading as C compilers
5807 incorrectly reject 9223372036854775807. */
5808 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5809 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5810 && LARGE_OFF_T % 2147483647 == 1)
5811 ? 1 : -1];
5813 main ()
5817 return 0;
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_compile") 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest.$ac_objext; then
5837 ac_cv_sys_file_offset_bits=64; break
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 ac_cv_sys_file_offset_bits=unknown
5847 break
5848 done
5850 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5851 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5852 case $ac_cv_sys_file_offset_bits in #(
5853 no | unknown) ;;
5855 cat >>confdefs.h <<_ACEOF
5856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5857 _ACEOF
5859 esac
5860 rm -f conftest*
5861 if test $ac_cv_sys_file_offset_bits = unknown; then
5862 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5863 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5864 if test "${ac_cv_sys_large_files+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 while :; do
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874 #include <sys/types.h>
5875 /* Check that off_t can represent 2**63 - 1 correctly.
5876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5877 since some C++ compilers masquerading as C compilers
5878 incorrectly reject 9223372036854775807. */
5879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5881 && LARGE_OFF_T % 2147483647 == 1)
5882 ? 1 : -1];
5884 main ()
5888 return 0;
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5893 case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896 esac
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5899 ac_status=$?
5900 grep -v '^ *+' conftest.er1 >conftest.err
5901 rm -f conftest.er1
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_c_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest.$ac_objext; then
5908 ac_cv_sys_large_files=no; break
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 #define _LARGE_FILES 1
5924 #include <sys/types.h>
5925 /* Check that off_t can represent 2**63 - 1 correctly.
5926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5927 since some C++ compilers masquerading as C compilers
5928 incorrectly reject 9223372036854775807. */
5929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5931 && LARGE_OFF_T % 2147483647 == 1)
5932 ? 1 : -1];
5934 main ()
5938 return 0;
5940 _ACEOF
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5943 case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_cv_sys_large_files=1; break
5959 else
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 ac_cv_sys_large_files=unknown
5968 break
5969 done
5971 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5972 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5973 case $ac_cv_sys_large_files in #(
5974 no | unknown) ;;
5976 cat >>confdefs.h <<_ACEOF
5977 #define _LARGE_FILES $ac_cv_sys_large_files
5978 _ACEOF
5980 esac
5981 rm -f conftest*
5987 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5988 ### be located in either /usr/lib64 or /usr/lib.
5989 ### In some rare cases, /usr/lib64 exists but does not contain the
5990 ### relevant files (bug#1287). Hence test for crtn.o.
5991 case "${canonical}" in
5992 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5993 if test -e /usr/lib64/crtn.o; then
5995 cat >>confdefs.h <<\_ACEOF
5996 #define HAVE_LIB64_DIR 1
5997 _ACEOF
6000 esac
6005 if test "${with_sound}" != "no"; then
6006 # Sound support for GNU/Linux and the free BSDs.
6010 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 ac_res=`eval echo '${'$as_ac_Header'}'`
6020 { echo "$as_me:$LINENO: result: $ac_res" >&5
6021 echo "${ECHO_T}$ac_res" >&6; }
6022 else
6023 # Is the header compilable?
6024 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h. */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 $ac_includes_default
6033 #include <$ac_header>
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6037 case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040 esac
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_header_compiler=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 ac_header_compiler=no
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6062 echo "${ECHO_T}$ac_header_compiler" >&6; }
6064 # Is the header present?
6065 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <$ac_header>
6074 _ACEOF
6075 if { (ac_try="$ac_cpp conftest.$ac_ext"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } >/dev/null && {
6088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 }; then
6091 ac_header_preproc=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_header_preproc=no
6099 rm -f conftest.err conftest.$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6101 echo "${ECHO_T}$ac_header_preproc" >&6; }
6103 # So? What about this header?
6104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6105 yes:no: )
6106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6110 ac_header_preproc=yes
6112 no:yes:* )
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6127 esac
6128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 eval "$as_ac_Header=\$ac_header_preproc"
6135 ac_res=`eval echo '${'$as_ac_Header'}'`
6136 { echo "$as_me:$LINENO: result: $ac_res" >&5
6137 echo "${ECHO_T}$ac_res" >&6; }
6140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6141 cat >>confdefs.h <<_ACEOF
6142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143 _ACEOF
6147 done
6149 # Emulation library used on NetBSD.
6150 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6151 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6152 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154 else
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lossaudio $LIBS"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h. */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 char _oss_ioctl ();
6172 main ()
6174 return _oss_ioctl ();
6176 return 0;
6178 _ACEOF
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (ac_try="$ac_link"
6181 case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_link") 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest$ac_exeext &&
6196 $as_test_x conftest$ac_exeext; then
6197 ac_cv_lib_ossaudio__oss_ioctl=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6202 ac_cv_lib_ossaudio__oss_ioctl=no
6205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6210 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6211 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6212 LIBSOUND=-lossaudio
6213 else
6214 LIBSOUND=
6219 ALSA_REQUIRED=1.0.0
6220 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6222 succeeded=no
6224 # Extract the first word of "pkg-config", so it can be a program name with args.
6225 set dummy pkg-config; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 case $PKG_CONFIG in
6232 [\\/]* | ?:[\\/]*)
6233 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6239 IFS=$as_save_IFS
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 break 2
6247 done
6248 done
6249 IFS=$as_save_IFS
6251 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6253 esac
6255 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6256 if test -n "$PKG_CONFIG"; then
6257 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6258 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6259 else
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6266 if test "$PKG_CONFIG" = "no" ; then
6267 HAVE_ALSA=no
6268 else
6269 PKG_CONFIG_MIN_VERSION=0.9.0
6270 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6271 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6272 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6274 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6275 { echo "$as_me:$LINENO: result: yes" >&5
6276 echo "${ECHO_T}yes" >&6; }
6277 succeeded=yes
6279 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6280 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6281 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6282 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6283 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6285 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6286 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6287 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6288 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6289 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6290 else
6291 { echo "$as_me:$LINENO: result: no" >&5
6292 echo "${ECHO_T}no" >&6; }
6293 ALSA_CFLAGS=""
6294 ALSA_LIBS=""
6295 ## If we have a custom action on failure, don't print errors, but
6296 ## do set a variable so people can do so.
6297 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6303 else
6304 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6305 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6309 if test $succeeded = yes; then
6310 HAVE_ALSA=yes
6311 else
6312 HAVE_ALSA=no
6315 if test $HAVE_ALSA = yes; then
6316 SAVE_CFLAGS="$CFLAGS"
6317 SAVE_LDFLAGS="$LDFLAGS"
6318 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6319 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <asoundlib.h>
6328 main ()
6330 snd_lib_error_set_handler (0);
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 emacs_alsa_normal=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 emacs_alsa_normal=no
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 if test "$emacs_alsa_normal" != yes; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h. */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <alsa/asoundlib.h>
6370 main ()
6372 snd_lib_error_set_handler (0);
6374 return 0;
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382 esac
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 emacs_alsa_subdir=yes
6395 else
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 emacs_alsa_subdir=no
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 if test "$emacs_alsa_subdir" != yes; then
6404 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6405 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6406 { (exit 1); exit 1; }; }
6408 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6411 CFLAGS="$SAVE_CFLAGS"
6412 LDFLAGS="$SAVE_LDFLAGS"
6413 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6414 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6416 cat >>confdefs.h <<\_ACEOF
6417 #define HAVE_ALSA 1
6418 _ACEOF
6449 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6450 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6451 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6452 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6453 sys/utsname.h pwd.h
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 ac_res=`eval echo '${'$as_ac_Header'}'`
6463 { echo "$as_me:$LINENO: result: $ac_res" >&5
6464 echo "${ECHO_T}$ac_res" >&6; }
6465 else
6466 # Is the header compilable?
6467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 $ac_includes_default
6476 #include <$ac_header>
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_header_compiler=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 ac_header_compiler=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505 echo "${ECHO_T}$ac_header_compiler" >&6; }
6507 # Is the header present?
6508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 #include <$ac_header>
6517 _ACEOF
6518 if { (ac_try="$ac_cpp conftest.$ac_ext"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } >/dev/null && {
6531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 }; then
6534 ac_header_preproc=yes
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 ac_header_preproc=no
6542 rm -f conftest.err conftest.$ac_ext
6543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6544 echo "${ECHO_T}$ac_header_preproc" >&6; }
6546 # So? What about this header?
6547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6548 yes:no: )
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6553 ac_header_preproc=yes
6555 no:yes:* )
6556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6570 esac
6571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 eval "$as_ac_Header=\$ac_header_preproc"
6578 ac_res=`eval echo '${'$as_ac_Header'}'`
6579 { echo "$as_me:$LINENO: result: $ac_res" >&5
6580 echo "${ECHO_T}$ac_res" >&6; }
6583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6584 cat >>confdefs.h <<_ACEOF
6585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6586 _ACEOF
6590 done
6593 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6594 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <sys/personality.h>
6603 main ()
6605 personality (PER_LINUX32)
6607 return 0;
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6612 case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615 esac
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 emacs_cv_personality_linux32=yes
6628 else
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 emacs_cv_personality_linux32=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6637 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6639 if test $emacs_cv_personality_linux32 = yes; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_PERSONALITY_LINUX32 1
6643 _ACEOF
6648 for ac_header in term.h
6650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <$ac_header>
6663 _ACEOF
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6665 case "(($ac_try" in
6666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667 *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6671 ac_status=$?
6672 grep -v '^ *+' conftest.er1 >conftest.err
6673 rm -f conftest.er1
6674 cat conftest.err >&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } >/dev/null && {
6677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 }; then
6680 eval "$as_ac_Header=yes"
6681 else
6682 echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6685 eval "$as_ac_Header=no"
6688 rm -f conftest.err conftest.$ac_ext
6690 ac_res=`eval echo '${'$as_ac_Header'}'`
6691 { echo "$as_me:$LINENO: result: $ac_res" >&5
6692 echo "${ECHO_T}$ac_res" >&6; }
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694 cat >>confdefs.h <<_ACEOF
6695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6696 _ACEOF
6700 done
6702 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6703 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_stdc+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <stdlib.h>
6714 #include <stdarg.h>
6715 #include <string.h>
6716 #include <float.h>
6719 main ()
6723 return 0;
6725 _ACEOF
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.$ac_objext; then
6743 ac_cv_header_stdc=yes
6744 else
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_cv_header_stdc=no
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 if test $ac_cv_header_stdc = yes; then
6754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 #include <string.h>
6763 _ACEOF
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "memchr" >/dev/null 2>&1; then
6767 else
6768 ac_cv_header_stdc=no
6770 rm -f conftest*
6774 if test $ac_cv_header_stdc = yes; then
6775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <stdlib.h>
6784 _ACEOF
6785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6786 $EGREP "free" >/dev/null 2>&1; then
6788 else
6789 ac_cv_header_stdc=no
6791 rm -f conftest*
6795 if test $ac_cv_header_stdc = yes; then
6796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6797 if test "$cross_compiling" = yes; then
6799 else
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <ctype.h>
6807 #include <stdlib.h>
6808 #if ((' ' & 0x0FF) == 0x020)
6809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6811 #else
6812 # define ISLOWER(c) \
6813 (('a' <= (c) && (c) <= 'i') \
6814 || ('j' <= (c) && (c) <= 'r') \
6815 || ('s' <= (c) && (c) <= 'z'))
6816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6817 #endif
6819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6821 main ()
6823 int i;
6824 for (i = 0; i < 256; i++)
6825 if (XOR (islower (i), ISLOWER (i))
6826 || toupper (i) != TOUPPER (i))
6827 return 2;
6828 return 0;
6830 _ACEOF
6831 rm -f conftest$ac_exeext
6832 if { (ac_try="$ac_link"
6833 case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_link") 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6842 { (case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_try") 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6852 else
6853 echo "$as_me: program exited with status $ac_status" >&5
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ( exit $ac_status )
6858 ac_cv_header_stdc=no
6860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6867 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6868 if test $ac_cv_header_stdc = yes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define STDC_HEADERS 1
6872 _ACEOF
6876 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6877 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6878 if test "${ac_cv_header_time+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6888 #include <sys/time.h>
6889 #include <time.h>
6892 main ()
6894 if ((struct tm *) 0)
6895 return 0;
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_header_time=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_header_time=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6928 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6929 if test $ac_cv_header_time = yes; then
6931 cat >>confdefs.h <<\_ACEOF
6932 #define TIME_WITH_SYS_TIME 1
6933 _ACEOF
6937 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6938 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6939 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6950 main ()
6952 #ifndef sys_siglist
6953 (void) sys_siglist;
6954 #endif
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 ac_cv_have_decl_sys_siglist=yes
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_cv_have_decl_sys_siglist=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6988 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6989 if test $ac_cv_have_decl_sys_siglist = yes; then
6991 cat >>confdefs.h <<_ACEOF
6992 #define HAVE_DECL_SYS_SIGLIST 1
6993 _ACEOF
6996 else
6997 cat >>confdefs.h <<_ACEOF
6998 #define HAVE_DECL_SYS_SIGLIST 0
6999 _ACEOF
7005 if test $ac_cv_have_decl_sys_siglist != yes; then
7006 # For Tru64, at least:
7007 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7008 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7009 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 cat >conftest.$ac_ext <<_ACEOF
7013 /* confdefs.h. */
7014 _ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7020 main ()
7022 #ifndef __sys_siglist
7023 (void) __sys_siglist;
7024 #endif
7027 return 0;
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034 *) ac_try_echo=$ac_try;;
7035 esac
7036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037 (eval "$ac_compile") 2>conftest.er1
7038 ac_status=$?
7039 grep -v '^ *+' conftest.er1 >conftest.err
7040 rm -f conftest.er1
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } && {
7044 test -z "$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7046 } && test -s conftest.$ac_objext; then
7047 ac_cv_have_decl___sys_siglist=yes
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_cv_have_decl___sys_siglist=no
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7058 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7059 if test $ac_cv_have_decl___sys_siglist = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_DECL___SYS_SIGLIST 1
7063 _ACEOF
7066 else
7067 cat >>confdefs.h <<_ACEOF
7068 #define HAVE_DECL___SYS_SIGLIST 0
7069 _ACEOF
7075 if test $ac_cv_have_decl___sys_siglist = yes; then
7077 cat >>confdefs.h <<\_ACEOF
7078 #define sys_siglist __sys_siglist
7079 _ACEOF
7083 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <sys/types.h>
7095 #include <sys/wait.h>
7096 #ifndef WEXITSTATUS
7097 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7098 #endif
7099 #ifndef WIFEXITED
7100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7101 #endif
7104 main ()
7106 int s;
7107 wait (&s);
7108 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7110 return 0;
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_header_sys_wait_h=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_cv_header_sys_wait_h=no
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7141 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7142 if test $ac_cv_header_sys_wait_h = yes; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_SYS_WAIT_H 1
7146 _ACEOF
7151 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7152 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7153 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #ifdef TIME_WITH_SYS_TIME
7163 #include <sys/time.h>
7164 #include <time.h>
7165 #else
7166 #ifdef HAVE_SYS_TIME_H
7167 #include <sys/time.h>
7168 #else
7169 #include <time.h>
7170 #endif
7171 #endif
7172 #ifdef HAVE_UTIME_H
7173 #include <utime.h>
7174 #endif
7176 main ()
7178 static struct utimbuf x; x.actime = x.modtime;
7180 return 0;
7182 _ACEOF
7183 rm -f conftest.$ac_objext
7184 if { (ac_try="$ac_compile"
7185 case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188 esac
7189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 emacs_cv_struct_utimbuf=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7205 emacs_cv_struct_utimbuf=no
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7211 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7212 if test $emacs_cv_struct_utimbuf = yes; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_STRUCT_UTIMBUF 1
7216 _ACEOF
7220 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7222 if test "${ac_cv_type_signal+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225 cat >conftest.$ac_ext <<_ACEOF
7226 /* confdefs.h. */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 #include <sys/types.h>
7232 #include <signal.h>
7235 main ()
7237 return *(signal (0, 0)) (0) == 1;
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_type_signal=int
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_type_signal=void
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7270 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7272 cat >>confdefs.h <<_ACEOF
7273 #define RETSIGTYPE $ac_cv_type_signal
7274 _ACEOF
7278 { echo "$as_me:$LINENO: checking for speed_t" >&5
7279 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7280 if test "${emacs_cv_speed_t+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 #include <termios.h>
7291 main ()
7293 speed_t x = 1;
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7315 emacs_cv_speed_t=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 emacs_cv_speed_t=no
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7326 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7327 if test $emacs_cv_speed_t = yes; then
7329 cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_SPEED_T 1
7331 _ACEOF
7335 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7336 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7337 if test "${emacs_cv_struct_timeval+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #ifdef TIME_WITH_SYS_TIME
7347 #include <sys/time.h>
7348 #include <time.h>
7349 #else
7350 #ifdef HAVE_SYS_TIME_H
7351 #include <sys/time.h>
7352 #else
7353 #include <time.h>
7354 #endif
7355 #endif
7357 main ()
7359 static struct timeval x; x.tv_sec = x.tv_usec;
7361 return 0;
7363 _ACEOF
7364 rm -f conftest.$ac_objext
7365 if { (ac_try="$ac_compile"
7366 case "(($ac_try" in
7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7368 *) ac_try_echo=$ac_try;;
7369 esac
7370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7371 (eval "$ac_compile") 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } && {
7378 test -z "$ac_c_werror_flag" ||
7379 test ! -s conftest.err
7380 } && test -s conftest.$ac_objext; then
7381 emacs_cv_struct_timeval=yes
7382 else
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7386 emacs_cv_struct_timeval=no
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7392 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7393 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7394 if test $emacs_cv_struct_timeval = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_TIMEVAL 1
7398 _ACEOF
7402 { echo "$as_me:$LINENO: checking for struct exception" >&5
7403 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7404 if test "${emacs_cv_struct_exception+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 #include <math.h>
7415 main ()
7417 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_compile") 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && {
7436 test -z "$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 } && test -s conftest.$ac_objext; then
7439 emacs_cv_struct_exception=yes
7440 else
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.$ac_ext >&5
7444 emacs_cv_struct_exception=no
7447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7449 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7450 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7451 HAVE_EXCEPTION=$emacs_cv_struct_exception
7452 if test $emacs_cv_struct_exception != yes; then
7454 cat >>confdefs.h <<\_ACEOF
7455 #define NO_MATHERR 1
7456 _ACEOF
7461 for ac_header in sys/socket.h
7463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 ac_res=`eval echo '${'$as_ac_Header'}'`
7471 { echo "$as_me:$LINENO: result: $ac_res" >&5
7472 echo "${ECHO_T}$ac_res" >&6; }
7473 else
7474 # Is the header compilable?
7475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 #include <$ac_header>
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_header_compiler=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_header_compiler=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7513 echo "${ECHO_T}$ac_header_compiler" >&6; }
7515 # Is the header present?
7516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7518 cat >conftest.$ac_ext <<_ACEOF
7519 /* confdefs.h. */
7520 _ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <$ac_header>
7525 _ACEOF
7526 if { (ac_try="$ac_cpp conftest.$ac_ext"
7527 case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530 esac
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } >/dev/null && {
7539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 }; then
7542 ac_header_preproc=yes
7543 else
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 ac_header_preproc=no
7550 rm -f conftest.err conftest.$ac_ext
7551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552 echo "${ECHO_T}$ac_header_preproc" >&6; }
7554 # So? What about this header?
7555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7556 yes:no: )
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7561 ac_header_preproc=yes
7563 no:yes:* )
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7578 esac
7579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 eval "$as_ac_Header=\$ac_header_preproc"
7586 ac_res=`eval echo '${'$as_ac_Header'}'`
7587 { echo "$as_me:$LINENO: result: $ac_res" >&5
7588 echo "${ECHO_T}$ac_res" >&6; }
7591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7594 _ACEOF
7598 done
7601 for ac_header in net/if.h
7603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7616 #if HAVE_SYS_SOCKET_H
7617 #include <sys/socket.h>
7618 #endif
7620 #include <$ac_header>
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 eval "$as_ac_Header=yes"
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 eval "$as_ac_Header=no"
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 ac_res=`eval echo '${'$as_ac_Header'}'`
7650 { echo "$as_me:$LINENO: result: $ac_res" >&5
7651 echo "${ECHO_T}$ac_res" >&6; }
7652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7655 _ACEOF
7659 done
7662 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7663 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7664 if test "${ac_cv_struct_tm+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7674 #include <time.h>
7677 main ()
7679 struct tm tm;
7680 int *p = &tm.tm_sec;
7681 return !p;
7683 return 0;
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (ac_try="$ac_compile"
7688 case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_compile") 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && {
7700 test -z "$ac_c_werror_flag" ||
7701 test ! -s conftest.err
7702 } && test -s conftest.$ac_objext; then
7703 ac_cv_struct_tm=time.h
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_cv_struct_tm=sys/time.h
7711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7714 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7715 if test $ac_cv_struct_tm = sys/time.h; then
7717 cat >>confdefs.h <<\_ACEOF
7718 #define TM_IN_SYS_TIME 1
7719 _ACEOF
7723 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7724 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7725 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h. */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 #include <sys/types.h>
7735 #include <$ac_cv_struct_tm>
7739 main ()
7741 static struct tm ac_aggr;
7742 if (ac_aggr.tm_zone)
7743 return 0;
7745 return 0;
7747 _ACEOF
7748 rm -f conftest.$ac_objext
7749 if { (ac_try="$ac_compile"
7750 case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 ac_cv_member_struct_tm_tm_zone=yes
7766 else
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <sys/types.h>
7777 #include <$ac_cv_struct_tm>
7781 main ()
7783 static struct tm ac_aggr;
7784 if (sizeof ac_aggr.tm_zone)
7785 return 0;
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_member_struct_tm_tm_zone=yes
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_member_struct_tm_tm_zone=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7822 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_STRUCT_TM_TM_ZONE 1
7826 _ACEOF
7831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7833 cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_TM_ZONE 1
7835 _ACEOF
7837 else
7838 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7839 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7840 if test "${ac_cv_have_decl_tzname+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <time.h>
7852 main ()
7854 #ifndef tzname
7855 (void) tzname;
7856 #endif
7859 return 0;
7861 _ACEOF
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
7879 ac_cv_have_decl_tzname=yes
7880 else
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 ac_cv_have_decl_tzname=no
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7890 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7891 if test $ac_cv_have_decl_tzname = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define HAVE_DECL_TZNAME 1
7895 _ACEOF
7898 else
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DECL_TZNAME 0
7901 _ACEOF
7907 { echo "$as_me:$LINENO: checking for tzname" >&5
7908 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7909 if test "${ac_cv_var_tzname+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 else
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7918 #include <time.h>
7919 #if !HAVE_DECL_TZNAME
7920 extern char *tzname[];
7921 #endif
7924 main ()
7926 return tzname[0][0];
7928 return 0;
7930 _ACEOF
7931 rm -f conftest.$ac_objext conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7933 case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936 esac
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest$ac_exeext &&
7948 $as_test_x conftest$ac_exeext; then
7949 ac_cv_var_tzname=yes
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_cv_var_tzname=no
7957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7958 conftest$ac_exeext conftest.$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7961 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7962 if test $ac_cv_var_tzname = yes; then
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_TZNAME 1
7966 _ACEOF
7971 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7972 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7973 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 #include <time.h>
7985 main ()
7987 static struct tm ac_aggr;
7988 if (ac_aggr.tm_gmtoff)
7989 return 0;
7991 return 0;
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7996 case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_member_struct_tm_tm_gmtoff=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <time.h>
8025 main ()
8027 static struct tm ac_aggr;
8028 if (sizeof ac_aggr.tm_gmtoff)
8029 return 0;
8031 return 0;
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_tm_tm_gmtoff=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 ac_cv_member_struct_tm_tm_gmtoff=no
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8066 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_TM_GMTOFF 1
8070 _ACEOF
8074 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8075 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8076 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079 cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h. */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8086 #if HAVE_SYS_SOCKET_H
8087 #include <sys/socket.h>
8088 #endif
8089 #if HAVE_NET_IF_H
8090 #include <net/if.h>
8091 #endif
8094 main ()
8096 static struct ifreq ac_aggr;
8097 if (ac_aggr.ifr_flags)
8098 return 0;
8100 return 0;
8102 _ACEOF
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8105 case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8120 ac_cv_member_struct_ifreq_ifr_flags=yes
8121 else
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8134 #endif
8135 #if HAVE_NET_IF_H
8136 #include <net/if.h>
8137 #endif
8140 main ()
8142 static struct ifreq ac_aggr;
8143 if (sizeof ac_aggr.ifr_flags)
8144 return 0;
8146 return 0;
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_flags=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_member_struct_ifreq_ifr_flags=no
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8180 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8181 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8183 cat >>confdefs.h <<_ACEOF
8184 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8185 _ACEOF
8189 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8190 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8191 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 else
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 #if HAVE_SYS_SOCKET_H
8202 #include <sys/socket.h>
8203 #endif
8204 #if HAVE_NET_IF_H
8205 #include <net/if.h>
8206 #endif
8209 main ()
8211 static struct ifreq ac_aggr;
8212 if (ac_aggr.ifr_hwaddr)
8213 return 0;
8215 return 0;
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8220 case "(($ac_try" in
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8223 esac
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_compile") 2>conftest.er1
8226 ac_status=$?
8227 grep -v '^ *+' conftest.er1 >conftest.err
8228 rm -f conftest.er1
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest.$ac_objext; then
8235 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8236 else
8237 echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8249 #endif
8250 #if HAVE_NET_IF_H
8251 #include <net/if.h>
8252 #endif
8255 main ()
8257 static struct ifreq ac_aggr;
8258 if (sizeof ac_aggr.ifr_hwaddr)
8259 return 0;
8261 return 0;
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8295 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8296 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8300 _ACEOF
8304 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8305 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8306 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 else
8309 cat >conftest.$ac_ext <<_ACEOF
8310 /* confdefs.h. */
8311 _ACEOF
8312 cat confdefs.h >>conftest.$ac_ext
8313 cat >>conftest.$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 $ac_includes_default
8316 #if HAVE_SYS_SOCKET_H
8317 #include <sys/socket.h>
8318 #endif
8319 #if HAVE_NET_IF_H
8320 #include <net/if.h>
8321 #endif
8324 main ()
8326 static struct ifreq ac_aggr;
8327 if (ac_aggr.ifr_netmask)
8328 return 0;
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_compile") 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } && {
8347 test -z "$ac_c_werror_flag" ||
8348 test ! -s conftest.err
8349 } && test -s conftest.$ac_objext; then
8350 ac_cv_member_struct_ifreq_ifr_netmask=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8364 #endif
8365 #if HAVE_NET_IF_H
8366 #include <net/if.h>
8367 #endif
8370 main ()
8372 static struct ifreq ac_aggr;
8373 if (sizeof ac_aggr.ifr_netmask)
8374 return 0;
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_netmask=yes
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ac_cv_member_struct_ifreq_ifr_netmask=no
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8410 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8411 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8415 _ACEOF
8419 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8420 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8421 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430 $ac_includes_default
8431 #if HAVE_SYS_SOCKET_H
8432 #include <sys/socket.h>
8433 #endif
8434 #if HAVE_NET_IF_H
8435 #include <net/if.h>
8436 #endif
8439 main ()
8441 static struct ifreq ac_aggr;
8442 if (ac_aggr.ifr_broadaddr)
8443 return 0;
8445 return 0;
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (ac_try="$ac_compile"
8450 case "(($ac_try" in
8451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8452 *) ac_try_echo=$ac_try;;
8453 esac
8454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8466 else
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8479 #endif
8480 #if HAVE_NET_IF_H
8481 #include <net/if.h>
8482 #endif
8485 main ()
8487 static struct ifreq ac_aggr;
8488 if (sizeof ac_aggr.ifr_broadaddr)
8489 return 0;
8491 return 0;
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8496 case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8525 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8526 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8528 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8530 _ACEOF
8534 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8535 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8536 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h>
8548 #endif
8549 #if HAVE_NET_IF_H
8550 #include <net/if.h>
8551 #endif
8554 main ()
8556 static struct ifreq ac_aggr;
8557 if (ac_aggr.ifr_addr)
8558 return 0;
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_cv_member_struct_ifreq_ifr_addr=yes
8581 else
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 #if HAVE_SYS_SOCKET_H
8593 #include <sys/socket.h>
8594 #endif
8595 #if HAVE_NET_IF_H
8596 #include <net/if.h>
8597 #endif
8600 main ()
8602 static struct ifreq ac_aggr;
8603 if (sizeof ac_aggr.ifr_addr)
8604 return 0;
8606 return 0;
8608 _ACEOF
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8611 case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_member_struct_ifreq_ifr_addr=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_member_struct_ifreq_ifr_addr=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8640 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8641 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8645 _ACEOF
8652 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8653 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8654 if test "$ac_cv_prog_cc_c89" != no; then
8655 { echo "$as_me:$LINENO: result: yes" >&5
8656 echo "${ECHO_T}yes" >&6; }
8658 cat >>confdefs.h <<\_ACEOF
8659 #define PROTOTYPES 1
8660 _ACEOF
8663 cat >>confdefs.h <<\_ACEOF
8664 #define __PROTOTYPES 1
8665 _ACEOF
8667 else
8668 { echo "$as_me:$LINENO: result: no" >&5
8669 echo "${ECHO_T}no" >&6; }
8672 { echo "$as_me:$LINENO: checking for working volatile" >&5
8673 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8674 if test "${ac_cv_c_volatile+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8685 main ()
8688 volatile int x;
8689 int * volatile y = (int *) 0;
8690 return !x && !y;
8692 return 0;
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (ac_try="$ac_compile"
8697 case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } && {
8709 test -z "$ac_c_werror_flag" ||
8710 test ! -s conftest.err
8711 } && test -s conftest.$ac_objext; then
8712 ac_cv_c_volatile=yes
8713 else
8714 echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8717 ac_cv_c_volatile=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8723 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8724 if test $ac_cv_c_volatile = no; then
8726 cat >>confdefs.h <<\_ACEOF
8727 #define volatile
8728 _ACEOF
8732 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8734 if test "${ac_cv_c_const+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8745 main ()
8747 /* FIXME: Include the comments suggested by Paul. */
8748 #ifndef __cplusplus
8749 /* Ultrix mips cc rejects this. */
8750 typedef int charset[2];
8751 const charset cs;
8752 /* SunOS 4.1.1 cc rejects this. */
8753 char const *const *pcpcc;
8754 char **ppc;
8755 /* NEC SVR4.0.2 mips cc rejects this. */
8756 struct point {int x, y;};
8757 static struct point const zero = {0,0};
8758 /* AIX XL C 1.02.0.0 rejects this.
8759 It does not let you subtract one const X* pointer from another in
8760 an arm of an if-expression whose if-part is not a constant
8761 expression */
8762 const char *g = "string";
8763 pcpcc = &g + (g ? g-g : 0);
8764 /* HPUX 7.0 cc rejects these. */
8765 ++pcpcc;
8766 ppc = (char**) pcpcc;
8767 pcpcc = (char const *const *) ppc;
8768 { /* SCO 3.2v4 cc rejects this. */
8769 char *t;
8770 char const *s = 0 ? (char *) 0 : (char const *) 0;
8772 *t++ = 0;
8773 if (s) return 0;
8775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8776 int x[] = {25, 17};
8777 const int *foo = &x[0];
8778 ++foo;
8780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8781 typedef const int *iptr;
8782 iptr p = 0;
8783 ++p;
8785 { /* AIX XL C 1.02.0.0 rejects this saying
8786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8787 struct s { int j; const int *ap[3]; };
8788 struct s *b; b->j = 5;
8790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8791 const int foo = 10;
8792 if (!foo) return 0;
8794 return !cs[0] && !zero.x;
8795 #endif
8798 return 0;
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.$ac_objext; then
8818 ac_cv_c_const=yes
8819 else
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8823 ac_cv_c_const=no
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8829 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8830 if test $ac_cv_c_const = no; then
8832 cat >>confdefs.h <<\_ACEOF
8833 #define const
8834 _ACEOF
8838 { echo "$as_me:$LINENO: checking for void * support" >&5
8839 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8840 if test "${emacs_cv_void_star+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8851 main ()
8853 void * foo;
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext
8859 if { (ac_try="$ac_compile"
8860 case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8875 emacs_cv_void_star=yes
8876 else
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 emacs_cv_void_star=no
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8886 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8887 if test $emacs_cv_void_star = yes; then
8888 cat >>confdefs.h <<\_ACEOF
8889 #define POINTER_TYPE void
8890 _ACEOF
8892 else
8893 cat >>confdefs.h <<\_ACEOF
8894 #define POINTER_TYPE char
8895 _ACEOF
8903 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8904 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8905 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8906 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 else
8909 cat >conftest.make <<\_ACEOF
8910 SHELL = /bin/sh
8911 all:
8912 @echo '@@@%%%=$(MAKE)=@@@%%%'
8913 _ACEOF
8914 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8916 *@@@%%%=?*=@@@%%%*)
8917 eval ac_cv_prog_make_${ac_make}_set=yes;;
8919 eval ac_cv_prog_make_${ac_make}_set=no;;
8920 esac
8921 rm -f conftest.make
8923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8924 { echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6; }
8926 SET_MAKE=
8927 else
8928 { echo "$as_me:$LINENO: result: no" >&5
8929 echo "${ECHO_T}no" >&6; }
8930 SET_MAKE="MAKE=${MAKE-make}"
8934 { echo "$as_me:$LINENO: checking for long file names" >&5
8935 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8936 if test "${ac_cv_sys_long_file_names+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 ac_cv_sys_long_file_names=yes
8940 # Test for long file names in all the places we know might matter:
8941 # . the current directory, where building will happen
8942 # $prefix/lib where we will be installing things
8943 # $exec_prefix/lib likewise
8944 # $TMPDIR if set, where it might want to write temporary files
8945 # /tmp where it might want to write temporary files
8946 # /var/tmp likewise
8947 # /usr/tmp likewise
8948 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8949 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8950 # in the usual case where exec_prefix is '${prefix}'.
8951 case $ac_dir in #(
8952 . | /* | ?:[\\/]*) ;; #(
8953 *) continue;;
8954 esac
8955 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8956 ac_xdir=$ac_dir/cf$$
8957 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8958 ac_tf1=$ac_xdir/conftest9012345
8959 ac_tf2=$ac_xdir/conftest9012346
8960 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8961 ac_cv_sys_long_file_names=no
8962 rm -f -r "$ac_xdir" 2>/dev/null
8963 test $ac_cv_sys_long_file_names = no && break
8964 done
8966 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8967 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8968 if test $ac_cv_sys_long_file_names = yes; then
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_LONG_FILE_NAMES 1
8972 _ACEOF
8977 #### Choose a window system.
8979 { echo "$as_me:$LINENO: checking for X" >&5
8980 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8983 # Check whether --with-x was given.
8984 if test "${with_x+set}" = set; then
8985 withval=$with_x;
8988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8989 if test "x$with_x" = xno; then
8990 # The user explicitly disabled X.
8991 have_x=disabled
8992 else
8993 case $x_includes,$x_libraries in #(
8994 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8995 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8996 { (exit 1); exit 1; }; };; #(
8997 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000 # One or both of the vars are not set, and there is no cached value.
9001 ac_x_includes=no ac_x_libraries=no
9002 rm -f -r conftest.dir
9003 if mkdir conftest.dir; then
9004 cd conftest.dir
9005 cat >Imakefile <<'_ACEOF'
9006 incroot:
9007 @echo incroot='${INCROOT}'
9008 usrlibdir:
9009 @echo usrlibdir='${USRLIBDIR}'
9010 libdir:
9011 @echo libdir='${LIBDIR}'
9012 _ACEOF
9013 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9014 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9015 for ac_var in incroot usrlibdir libdir; do
9016 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9017 done
9018 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9019 for ac_extension in a so sl; do
9020 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9021 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9022 ac_im_usrlibdir=$ac_im_libdir; break
9024 done
9025 # Screen out bogus values from the imake configuration. They are
9026 # bogus both because they are the default anyway, and because
9027 # using them would break gcc on systems where it needs fixed includes.
9028 case $ac_im_incroot in
9029 /usr/include) ac_x_includes= ;;
9030 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9031 esac
9032 case $ac_im_usrlibdir in
9033 /usr/lib | /lib) ;;
9034 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9035 esac
9037 cd ..
9038 rm -f -r conftest.dir
9041 # Standard set of common directories for X headers.
9042 # Check X11 before X11Rn because it is often a symlink to the current release.
9043 ac_x_header_dirs='
9044 /usr/X11/include
9045 /usr/X11R6/include
9046 /usr/X11R5/include
9047 /usr/X11R4/include
9049 /usr/include/X11
9050 /usr/include/X11R6
9051 /usr/include/X11R5
9052 /usr/include/X11R4
9054 /usr/local/X11/include
9055 /usr/local/X11R6/include
9056 /usr/local/X11R5/include
9057 /usr/local/X11R4/include
9059 /usr/local/include/X11
9060 /usr/local/include/X11R6
9061 /usr/local/include/X11R5
9062 /usr/local/include/X11R4
9064 /usr/X386/include
9065 /usr/x386/include
9066 /usr/XFree86/include/X11
9068 /usr/include
9069 /usr/local/include
9070 /usr/unsupported/include
9071 /usr/athena/include
9072 /usr/local/x11r5/include
9073 /usr/lpp/Xamples/include
9075 /usr/openwin/include
9076 /usr/openwin/share/include'
9078 if test "$ac_x_includes" = no; then
9079 # Guess where to find include files, by looking for Xlib.h.
9080 # First, try using that file with no special directory specified.
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 #include <X11/Xlib.h>
9088 _ACEOF
9089 if { (ac_try="$ac_cpp conftest.$ac_ext"
9090 case "(($ac_try" in
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9093 esac
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } >/dev/null && {
9102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9103 test ! -s conftest.err
9104 }; then
9105 # We can compile using X headers with no special include directory.
9106 ac_x_includes=
9107 else
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9111 for ac_dir in $ac_x_header_dirs; do
9112 if test -r "$ac_dir/X11/Xlib.h"; then
9113 ac_x_includes=$ac_dir
9114 break
9116 done
9119 rm -f conftest.err conftest.$ac_ext
9120 fi # $ac_x_includes = no
9122 if test "$ac_x_libraries" = no; then
9123 # Check for the libraries.
9124 # See if we find them without any special options.
9125 # Don't add to $LIBS permanently.
9126 ac_save_LIBS=$LIBS
9127 LIBS="-lX11 $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 #include <X11/Xlib.h>
9136 main ()
9138 XrmInitialize ()
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (ac_try="$ac_link"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_link") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest$ac_exeext &&
9160 $as_test_x conftest$ac_exeext; then
9161 LIBS=$ac_save_LIBS
9162 # We can link X programs with no special library path.
9163 ac_x_libraries=
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 LIBS=$ac_save_LIBS
9169 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9171 # Don't even attempt the hair of trying to link an X program!
9172 for ac_extension in a so sl; do
9173 if test -r "$ac_dir/libX11.$ac_extension"; then
9174 ac_x_libraries=$ac_dir
9175 break 2
9177 done
9178 done
9181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9182 conftest$ac_exeext conftest.$ac_ext
9183 fi # $ac_x_libraries = no
9185 case $ac_x_includes,$ac_x_libraries in #(
9186 no,* | *,no | *\'*)
9187 # Didn't find X, or a directory has "'" in its name.
9188 ac_cv_have_x="have_x=no";; #(
9190 # Record where we found X for the cache.
9191 ac_cv_have_x="have_x=yes\
9192 ac_x_includes='$ac_x_includes'\
9193 ac_x_libraries='$ac_x_libraries'"
9194 esac
9196 ;; #(
9197 *) have_x=yes;;
9198 esac
9199 eval "$ac_cv_have_x"
9200 fi # $with_x != no
9202 if test "$have_x" != yes; then
9203 { echo "$as_me:$LINENO: result: $have_x" >&5
9204 echo "${ECHO_T}$have_x" >&6; }
9205 no_x=yes
9206 else
9207 # If each of the values was on the command line, it overrides each guess.
9208 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9209 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9210 # Update the cache value to reflect the command line values.
9211 ac_cv_have_x="have_x=yes\
9212 ac_x_includes='$x_includes'\
9213 ac_x_libraries='$x_libraries'"
9214 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9215 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9218 if test "$no_x" = yes; then
9219 window_system=none
9220 else
9221 window_system=x11
9224 ## Workaround for bug in autoconf <= 2.62.
9225 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9226 ## No need to do anything special for these standard directories.
9227 ## This is an experiment, take it out if it causes problems.
9228 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9230 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9246 x_search_path="\
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9255 else
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9258 done
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9266 else
9267 # accumulate include directories that have X11 bitmap subdirectories
9268 bmd_acc="dummyval"
9269 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9276 done
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9282 HAVE_NS=no
9283 NS_IMPL_COCOA=no
9284 NS_IMPL_GNUSTEP=no
9285 tmp_CPPFLAGS="$CPPFLAGS"
9286 tmp_CFLAGS="$CFLAGS"
9287 CPPFLAGS="$CPPFLAGS -x objective-c"
9288 CFLAGS="$CFLAGS -x objective-c"
9289 if test "${with_ns}" != no; then
9290 if test "${opsys}" = darwin; then
9291 NS_IMPL_COCOA=yes
9292 ns_appdir=`pwd`/nextstep/Emacs.app
9293 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9294 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9295 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9296 elif test -f $GNUSTEP_CONFIG_FILE; then
9297 NS_IMPL_GNUSTEP=yes
9298 ns_appdir=`pwd`/nextstep/Emacs.app
9299 ns_appbindir=`pwd`/nextstep/Emacs.app
9300 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9301 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9302 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9303 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9304 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9305 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9306 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9307 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9308 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9310 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9311 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9312 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9313 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9317 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9318 else
9319 # Is the header compilable?
9320 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9321 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9322 cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h. */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9328 $ac_includes_default
9329 #include <AppKit/AppKit.h>
9330 _ACEOF
9331 rm -f conftest.$ac_objext
9332 if { (ac_try="$ac_compile"
9333 case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.$ac_objext; then
9348 ac_header_compiler=yes
9349 else
9350 echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_header_compiler=no
9356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9358 echo "${ECHO_T}$ac_header_compiler" >&6; }
9360 # Is the header present?
9361 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9362 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9363 cat >conftest.$ac_ext <<_ACEOF
9364 /* confdefs.h. */
9365 _ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <AppKit/AppKit.h>
9370 _ACEOF
9371 if { (ac_try="$ac_cpp conftest.$ac_ext"
9372 case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } >/dev/null && {
9384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 }; then
9387 ac_header_preproc=yes
9388 else
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_header_preproc=no
9395 rm -f conftest.err conftest.$ac_ext
9396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9397 echo "${ECHO_T}$ac_header_preproc" >&6; }
9399 # So? What about this header?
9400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9401 yes:no: )
9402 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9403 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9404 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9405 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9406 ac_header_preproc=yes
9408 no:yes:* )
9409 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9410 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9412 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9414 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9416 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9418 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9420 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9423 esac
9424 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9425 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9426 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9431 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9432 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9435 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9436 HAVE_NS=yes
9437 else
9438 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9439 files are missing or cannot be compiled." >&5
9440 echo "$as_me: error: \`--with-ns' was specified, but the include
9441 files are missing or cannot be compiled." >&2;}
9442 { (exit 1); exit 1; }; }
9446 NS_HAVE_NSINTEGER=yes
9447 cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h. */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 #include <Foundation/NSObjCRuntime.h>
9455 main ()
9457 NSInteger i;
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
9479 ns_have_nsinteger=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ns_have_nsinteger=no
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488 if test $ns_have_nsinteger = no; then
9489 NS_HAVE_NSINTEGER=no
9492 if test "${HAVE_NS}" = yes; then
9493 window_system=nextstep
9494 with_xft=no
9495 # set up packaging dirs
9496 exec_prefix=${ns_appbindir}
9497 libexecdir=${ns_appbindir}/libexec
9498 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9499 prefix=${ns_appresdir}
9502 CFLAGS="$tmp_CFLAGS"
9503 CPPFLAGS="$tmp_CPPFLAGS"
9505 case "${window_system}" in
9506 x11 )
9507 HAVE_X_WINDOWS=yes
9508 HAVE_X11=yes
9509 case "${with_x_toolkit}" in
9510 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9511 motif ) USE_X_TOOLKIT=MOTIF ;;
9512 gtk ) with_gtk=yes
9513 USE_X_TOOLKIT=none ;;
9514 no ) USE_X_TOOLKIT=none ;;
9515 * ) USE_X_TOOLKIT=maybe ;;
9516 esac
9518 nextstep | none )
9519 HAVE_X_WINDOWS=no
9520 HAVE_X11=no
9521 USE_X_TOOLKIT=none
9523 esac
9525 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9526 # Extract the first word of "X", so it can be a program name with args.
9527 set dummy X; ac_word=$2
9528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9530 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 else
9533 if test -n "$HAVE_XSERVER"; then
9534 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9535 else
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9543 ac_cv_prog_HAVE_XSERVER="true"
9544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 break 2
9547 done
9548 done
9549 IFS=$as_save_IFS
9551 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9554 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9555 if test -n "$HAVE_XSERVER"; then
9556 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9557 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9558 else
9559 { echo "$as_me:$LINENO: result: no" >&5
9560 echo "${ECHO_T}no" >&6; }
9564 if test "$HAVE_XSERVER" = true ||
9565 test -n "$DISPLAY" ||
9566 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9567 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9568 were found. You should install the relevant development files for X
9569 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9570 sure you have development files for image handling, i.e.
9571 tiff, gif, jpeg, png and xpm.
9572 If you are sure you want Emacs compiled without X window support, pass
9573 --without-x
9574 to configure." >&5
9575 echo "$as_me: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9581 --without-x
9582 to configure." >&2;}
9583 { (exit 1); exit 1; }; }
9587 ### If we're using X11, we should use the X menu package.
9588 HAVE_MENUS=no
9589 case ${HAVE_X11} in
9590 yes ) HAVE_MENUS=yes ;;
9591 esac
9593 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9594 # Assume not, until told otherwise.
9595 GNU_MALLOC=yes
9596 doug_lea_malloc=yes
9597 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9598 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define malloc_get_state innocuous_malloc_get_state
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char malloc_get_state (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9617 #ifdef __STDC__
9618 # include <limits.h>
9619 #else
9620 # include <assert.h>
9621 #endif
9623 #undef malloc_get_state
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char malloc_get_state ();
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9636 choke me
9637 #endif
9640 main ()
9642 return malloc_get_state ();
9644 return 0;
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (ac_try="$ac_link"
9649 case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652 esac
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_func_malloc_get_state=yes
9666 else
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_func_malloc_get_state=no
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9677 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9678 if test $ac_cv_func_malloc_get_state = yes; then
9680 else
9681 doug_lea_malloc=no
9684 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9685 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9686 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h. */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9697 #define malloc_set_state innocuous_malloc_set_state
9699 /* System header to define __stub macros and hopefully few prototypes,
9700 which can conflict with char malloc_set_state (); below.
9701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702 <limits.h> exists even on freestanding compilers. */
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9710 #undef malloc_set_state
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9715 #ifdef __cplusplus
9716 extern "C"
9717 #endif
9718 char malloc_set_state ();
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9723 choke me
9724 #endif
9727 main ()
9729 return malloc_set_state ();
9731 return 0;
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9742 ac_status=$?
9743 grep -v '^ *+' conftest.er1 >conftest.err
9744 rm -f conftest.er1
9745 cat conftest.err >&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext &&
9751 $as_test_x conftest$ac_exeext; then
9752 ac_cv_func_malloc_set_state=yes
9753 else
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_cv_func_malloc_set_state=no
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761 conftest$ac_exeext conftest.$ac_ext
9763 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9764 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9765 if test $ac_cv_func_malloc_set_state = yes; then
9767 else
9768 doug_lea_malloc=no
9771 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9772 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9773 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776 cat >conftest.$ac_ext <<_ACEOF
9777 /* confdefs.h. */
9778 _ACEOF
9779 cat confdefs.h >>conftest.$ac_ext
9780 cat >>conftest.$ac_ext <<_ACEOF
9781 /* end confdefs.h. */
9782 extern void (* __after_morecore_hook)();
9784 main ()
9786 __after_morecore_hook = 0
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest$ac_exeext &&
9808 $as_test_x conftest$ac_exeext; then
9809 emacs_cv_var___after_morecore_hook=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 emacs_cv_var___after_morecore_hook=no
9817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818 conftest$ac_exeext conftest.$ac_ext
9820 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9821 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9822 if test $emacs_cv_var___after_morecore_hook = no; then
9823 doug_lea_malloc=no
9825 if test "${system_malloc}" = "yes"; then
9826 GNU_MALLOC=no
9827 GNU_MALLOC_reason="
9828 (The GNU allocators don't work with this system configuration.)"
9830 if test "$doug_lea_malloc" = "yes" ; then
9831 if test "$GNU_MALLOC" = yes ; then
9832 GNU_MALLOC_reason="
9833 (Using Doug Lea's new malloc from the GNU C Library.)"
9836 cat >>confdefs.h <<\_ACEOF
9837 #define DOUG_LEA_MALLOC 1
9838 _ACEOF
9842 if test x"${REL_ALLOC}" = x; then
9843 REL_ALLOC=${GNU_MALLOC}
9849 for ac_header in stdlib.h unistd.h
9851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 ac_res=`eval echo '${'$as_ac_Header'}'`
9859 { echo "$as_me:$LINENO: result: $ac_res" >&5
9860 echo "${ECHO_T}$ac_res" >&6; }
9861 else
9862 # Is the header compilable?
9863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9865 cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h. */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 $ac_includes_default
9872 #include <$ac_header>
9873 _ACEOF
9874 rm -f conftest.$ac_objext
9875 if { (ac_try="$ac_compile"
9876 case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881 (eval "$ac_compile") 2>conftest.er1
9882 ac_status=$?
9883 grep -v '^ *+' conftest.er1 >conftest.err
9884 rm -f conftest.er1
9885 cat conftest.err >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); } && {
9888 test -z "$ac_c_werror_flag" ||
9889 test ! -s conftest.err
9890 } && test -s conftest.$ac_objext; then
9891 ac_header_compiler=yes
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_header_compiler=no
9899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9901 echo "${ECHO_T}$ac_header_compiler" >&6; }
9903 # Is the header present?
9904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 #include <$ac_header>
9913 _ACEOF
9914 if { (ac_try="$ac_cpp conftest.$ac_ext"
9915 case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9918 esac
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev/null && {
9927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9928 test ! -s conftest.err
9929 }; then
9930 ac_header_preproc=yes
9931 else
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_header_preproc=no
9938 rm -f conftest.err conftest.$ac_ext
9939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9940 echo "${ECHO_T}$ac_header_preproc" >&6; }
9942 # So? What about this header?
9943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9944 yes:no: )
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9949 ac_header_preproc=yes
9951 no:yes:* )
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9966 esac
9967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972 eval "$as_ac_Header=\$ac_header_preproc"
9974 ac_res=`eval echo '${'$as_ac_Header'}'`
9975 { echo "$as_me:$LINENO: result: $ac_res" >&5
9976 echo "${ECHO_T}$ac_res" >&6; }
9979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9982 _ACEOF
9986 done
9989 for ac_func in getpagesize
9991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10005 #define $ac_func innocuous_$ac_func
10007 /* System header to define __stub macros and hopefully few prototypes,
10008 which can conflict with char $ac_func (); below.
10009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010 <limits.h> exists even on freestanding compilers. */
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10018 #undef $ac_func
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char $ac_func ();
10027 /* The GNU C library defines this for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined __stub_$ac_func || defined __stub___$ac_func
10031 choke me
10032 #endif
10035 main ()
10037 return $ac_func ();
10039 return 0;
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 eval "$as_ac_var=yes"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 eval "$as_ac_var=no"
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10071 ac_res=`eval echo '${'$as_ac_var'}'`
10072 { echo "$as_me:$LINENO: result: $ac_res" >&5
10073 echo "${ECHO_T}$ac_res" >&6; }
10074 if test `eval echo '${'$as_ac_var'}'` = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 _ACEOF
10080 done
10082 { echo "$as_me:$LINENO: checking for working mmap" >&5
10083 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10084 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 if test "$cross_compiling" = yes; then
10088 ac_cv_func_mmap_fixed_mapped=no
10089 else
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 /* malloc might have been renamed as rpl_malloc. */
10098 #undef malloc
10100 /* Thanks to Mike Haertel and Jim Avera for this test.
10101 Here is a matrix of mmap possibilities:
10102 mmap private not fixed
10103 mmap private fixed at somewhere currently unmapped
10104 mmap private fixed at somewhere already mapped
10105 mmap shared not fixed
10106 mmap shared fixed at somewhere currently unmapped
10107 mmap shared fixed at somewhere already mapped
10108 For private mappings, we should verify that changes cannot be read()
10109 back from the file, nor mmap's back from the file at a different
10110 address. (There have been systems where private was not correctly
10111 implemented like the infamous i386 svr4.0, and systems where the
10112 VM page cache was not coherent with the file system buffer cache
10113 like early versions of FreeBSD and possibly contemporary NetBSD.)
10114 For shared mappings, we should conversely verify that changes get
10115 propagated back to all the places they're supposed to be.
10117 Grep wants private fixed already mapped.
10118 The main things grep needs to know about mmap are:
10119 * does it exist and is it safe to write into the mmap'd area
10120 * how to use it (BSD variants) */
10122 #include <fcntl.h>
10123 #include <sys/mman.h>
10125 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10126 char *malloc ();
10127 #endif
10129 /* This mess was copied from the GNU getpagesize.h. */
10130 #ifndef HAVE_GETPAGESIZE
10131 /* Assume that all systems that can run configure have sys/param.h. */
10132 # ifndef HAVE_SYS_PARAM_H
10133 # define HAVE_SYS_PARAM_H 1
10134 # endif
10136 # ifdef _SC_PAGESIZE
10137 # define getpagesize() sysconf(_SC_PAGESIZE)
10138 # else /* no _SC_PAGESIZE */
10139 # ifdef HAVE_SYS_PARAM_H
10140 # include <sys/param.h>
10141 # ifdef EXEC_PAGESIZE
10142 # define getpagesize() EXEC_PAGESIZE
10143 # else /* no EXEC_PAGESIZE */
10144 # ifdef NBPG
10145 # define getpagesize() NBPG * CLSIZE
10146 # ifndef CLSIZE
10147 # define CLSIZE 1
10148 # endif /* no CLSIZE */
10149 # else /* no NBPG */
10150 # ifdef NBPC
10151 # define getpagesize() NBPC
10152 # else /* no NBPC */
10153 # ifdef PAGESIZE
10154 # define getpagesize() PAGESIZE
10155 # endif /* PAGESIZE */
10156 # endif /* no NBPC */
10157 # endif /* no NBPG */
10158 # endif /* no EXEC_PAGESIZE */
10159 # else /* no HAVE_SYS_PARAM_H */
10160 # define getpagesize() 8192 /* punt totally */
10161 # endif /* no HAVE_SYS_PARAM_H */
10162 # endif /* no _SC_PAGESIZE */
10164 #endif /* no HAVE_GETPAGESIZE */
10167 main ()
10169 char *data, *data2, *data3;
10170 int i, pagesize;
10171 int fd;
10173 pagesize = getpagesize ();
10175 /* First, make a file with some known garbage in it. */
10176 data = (char *) malloc (pagesize);
10177 if (!data)
10178 return 1;
10179 for (i = 0; i < pagesize; ++i)
10180 *(data + i) = rand ();
10181 umask (0);
10182 fd = creat ("conftest.mmap", 0600);
10183 if (fd < 0)
10184 return 1;
10185 if (write (fd, data, pagesize) != pagesize)
10186 return 1;
10187 close (fd);
10189 /* Next, try to mmap the file at a fixed address which already has
10190 something else allocated at it. If we can, also make sure that
10191 we see the same garbage. */
10192 fd = open ("conftest.mmap", O_RDWR);
10193 if (fd < 0)
10194 return 1;
10195 data2 = (char *) malloc (2 * pagesize);
10196 if (!data2)
10197 return 1;
10198 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10199 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10200 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10201 return 1;
10202 for (i = 0; i < pagesize; ++i)
10203 if (*(data + i) != *(data2 + i))
10204 return 1;
10206 /* Finally, make sure that changes to the mapped area do not
10207 percolate back to the file as seen by read(). (This is a bug on
10208 some variants of i386 svr4.0.) */
10209 for (i = 0; i < pagesize; ++i)
10210 *(data2 + i) = *(data2 + i) + 1;
10211 data3 = (char *) malloc (pagesize);
10212 if (!data3)
10213 return 1;
10214 if (read (fd, data3, pagesize) != pagesize)
10215 return 1;
10216 for (i = 0; i < pagesize; ++i)
10217 if (*(data + i) != *(data3 + i))
10218 return 1;
10219 close (fd);
10220 return 0;
10222 _ACEOF
10223 rm -f conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10234 { (case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_func_mmap_fixed_mapped=yes
10244 else
10245 echo "$as_me: program exited with status $ac_status" >&5
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ( exit $ac_status )
10250 ac_cv_func_mmap_fixed_mapped=no
10252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10257 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10258 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10259 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10261 cat >>confdefs.h <<\_ACEOF
10262 #define HAVE_MMAP 1
10263 _ACEOF
10266 rm -f conftest.mmap
10268 if test $use_mmap_for_buffers = yes; then
10269 REL_ALLOC=no
10272 LIBS="$libsrc_libs $LIBS"
10275 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10276 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10277 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-ldnet $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. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char dnet_ntoa ();
10297 main ()
10299 return dnet_ntoa ();
10301 return 0;
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (ac_try="$ac_link"
10306 case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext &&
10321 $as_test_x conftest$ac_exeext; then
10322 ac_cv_lib_dnet_dnet_ntoa=yes
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10327 ac_cv_lib_dnet_dnet_ntoa=no
10330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10331 conftest$ac_exeext conftest.$ac_ext
10332 LIBS=$ac_check_lib_save_LIBS
10334 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10335 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10336 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_LIBDNET 1
10339 _ACEOF
10341 LIBS="-ldnet $LIBS"
10346 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10347 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10348 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 ac_check_lib_save_LIBS=$LIBS
10352 LIBS="-lXbsd $LIBS"
10353 cat >conftest.$ac_ext <<_ACEOF
10354 /* confdefs.h. */
10355 _ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10362 main ()
10364 return main ();
10366 return 0;
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (ac_try="$ac_link"
10371 case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374 esac
10375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10376 (eval "$ac_link") 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && {
10383 test -z "$ac_c_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest$ac_exeext &&
10386 $as_test_x conftest$ac_exeext; then
10387 ac_cv_lib_Xbsd_main=yes
10388 else
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10392 ac_cv_lib_Xbsd_main=no
10395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10396 conftest$ac_exeext conftest.$ac_ext
10397 LIBS=$ac_check_lib_save_LIBS
10399 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10400 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10401 if test $ac_cv_lib_Xbsd_main = yes; then
10402 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10407 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10408 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10409 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lpthreads $LIBS"
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10421 /* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
10424 #ifdef __cplusplus
10425 extern "C"
10426 #endif
10427 char cma_open ();
10429 main ()
10431 return cma_open ();
10433 return 0;
10435 _ACEOF
10436 rm -f conftest.$ac_objext conftest$ac_exeext
10437 if { (ac_try="$ac_link"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_link") 2>conftest.er1
10444 ac_status=$?
10445 grep -v '^ *+' conftest.er1 >conftest.err
10446 rm -f conftest.er1
10447 cat conftest.err >&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } && {
10450 test -z "$ac_c_werror_flag" ||
10451 test ! -s conftest.err
10452 } && test -s conftest$ac_exeext &&
10453 $as_test_x conftest$ac_exeext; then
10454 ac_cv_lib_pthreads_cma_open=yes
10455 else
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_cv_lib_pthreads_cma_open=no
10462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_lib_save_LIBS
10466 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10467 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10468 if test $ac_cv_lib_pthreads_cma_open = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_LIBPTHREADS 1
10471 _ACEOF
10473 LIBS="-lpthreads $LIBS"
10479 case ${host_os} in
10480 aix*)
10481 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10482 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10483 if test "${gdb_cv_bigtoc+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10487 case $GCC in
10488 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10489 *) gdb_cv_bigtoc=-bbigtoc ;;
10490 esac
10492 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10493 cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h. */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h. */
10501 main ()
10503 int i;
10505 return 0;
10507 _ACEOF
10508 rm -f conftest.$ac_objext conftest$ac_exeext
10509 if { (ac_try="$ac_link"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext &&
10525 $as_test_x conftest$ac_exeext; then
10527 else
10528 echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10531 gdb_cv_bigtoc=
10534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10535 conftest$ac_exeext conftest.$ac_ext
10538 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10539 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10541 esac
10543 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10544 # used for the tests that follow. We set them back to REAL_CFLAGS and
10545 # REAL_CPPFLAGS later on.
10547 REAL_CPPFLAGS="$CPPFLAGS"
10549 if test "${HAVE_X11}" = "yes"; then
10550 DEFS="$C_SWITCH_X_SITE $DEFS"
10551 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10552 LIBS="$LIBX $LIBS"
10553 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10554 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10556 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10557 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10558 # but it's more convenient here to set LD_RUN_PATH
10559 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10560 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10561 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10562 export LD_RUN_PATH
10565 if test "${opsys}" = "gnu-linux"; then
10566 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10567 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h. */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10576 main ()
10578 XOpenDisplay ("foo");
10580 return 0;
10582 _ACEOF
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && {
10597 test -z "$ac_c_werror_flag" ||
10598 test ! -s conftest.err
10599 } && test -s conftest$ac_exeext &&
10600 $as_test_x conftest$ac_exeext; then
10601 xlinux_first_failure=no
10602 else
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 xlinux_first_failure=yes
10609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10610 conftest$ac_exeext conftest.$ac_ext
10611 if test "${xlinux_first_failure}" = "yes"; then
10612 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10613 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10614 OLD_CPPFLAGS="$CPPFLAGS"
10615 OLD_LIBS="$LIBS"
10616 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10617 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10618 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10619 LIBS="$LIBS -b i486-linuxaout"
10620 cat >conftest.$ac_ext <<_ACEOF
10621 /* confdefs.h. */
10622 _ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10628 main ()
10630 XOpenDisplay ("foo");
10632 return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (ac_try="$ac_link"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_link") 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest$ac_exeext &&
10652 $as_test_x conftest$ac_exeext; then
10653 xlinux_second_failure=no
10654 else
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 xlinux_second_failure=yes
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10663 if test "${xlinux_second_failure}" = "yes"; then
10664 # If we get the same failure with -b, there is no use adding -b.
10665 # So take it out. This plays safe.
10666 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10667 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10668 CPPFLAGS="$OLD_CPPFLAGS"
10669 LIBS="$OLD_LIBS"
10670 { echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6; }
10672 else
10673 { echo "$as_me:$LINENO: result: yes" >&5
10674 echo "${ECHO_T}yes" >&6; }
10676 else
10677 { echo "$as_me:$LINENO: result: no" >&5
10678 echo "${ECHO_T}no" >&6; }
10682 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10683 # header files included from there.
10684 { echo "$as_me:$LINENO: checking for Xkb" >&5
10685 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h. */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 #include <X11/Xlib.h>
10693 #include <X11/XKBlib.h>
10695 main ()
10697 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10699 return 0;
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest$ac_exeext &&
10719 $as_test_x conftest$ac_exeext; then
10720 emacs_xkb=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 emacs_xkb=no
10728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10729 conftest$ac_exeext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10731 echo "${ECHO_T}$emacs_xkb" >&6; }
10732 if test $emacs_xkb = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_XKBGETKEYBOARD 1
10736 _ACEOF
10744 for ac_func in XrmSetDatabase XScreenResourceString \
10745 XScreenNumberOfScreen XSetWMProtocols
10747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761 #define $ac_func innocuous_$ac_func
10763 /* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char $ac_func (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10774 #undef $ac_func
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char $ac_func ();
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined __stub_$ac_func || defined __stub___$ac_func
10787 choke me
10788 #endif
10791 main ()
10793 return $ac_func ();
10795 return 0;
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext &&
10815 $as_test_x conftest$ac_exeext; then
10816 eval "$as_ac_var=yes"
10817 else
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 eval "$as_ac_var=no"
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10827 ac_res=`eval echo '${'$as_ac_var'}'`
10828 { echo "$as_me:$LINENO: result: $ac_res" >&5
10829 echo "${ECHO_T}$ac_res" >&6; }
10830 if test `eval echo '${'$as_ac_var'}'` = yes; then
10831 cat >>confdefs.h <<_ACEOF
10832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10833 _ACEOF
10836 done
10840 if test "${window_system}" = "x11"; then
10841 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10842 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10843 if test "${emacs_cv_x11_version_6+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h. */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 #include <X11/Xlib.h>
10854 main ()
10856 #if XlibSpecificationRelease < 6
10857 fail;
10858 #endif
10861 return 0;
10863 _ACEOF
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest$ac_exeext &&
10881 $as_test_x conftest$ac_exeext; then
10882 emacs_cv_x11_version_6=yes
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10887 emacs_cv_x11_version_6=no
10890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10894 if test $emacs_cv_x11_version_6 = yes; then
10895 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10896 echo "${ECHO_T}6 or newer" >&6; }
10898 cat >>confdefs.h <<\_ACEOF
10899 #define HAVE_X11R6 1
10900 _ACEOF
10902 else
10903 { echo "$as_me:$LINENO: result: before 6" >&5
10904 echo "${ECHO_T}before 6" >&6; }
10909 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10910 HAVE_RSVG=no
10911 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10912 if test "${with_rsvg}" != "no"; then
10913 RSVG_REQUIRED=2.11.0
10914 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10917 succeeded=no
10919 # Extract the first word of "pkg-config", so it can be a program name with args.
10920 set dummy pkg-config; ac_word=$2
10921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10923 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926 case $PKG_CONFIG in
10927 [\\/]* | ?:[\\/]*)
10928 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10944 IFS=$as_save_IFS
10946 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10948 esac
10950 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10951 if test -n "$PKG_CONFIG"; then
10952 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10953 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10954 else
10955 { echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6; }
10961 if test "$PKG_CONFIG" = "no" ; then
10963 else
10964 PKG_CONFIG_MIN_VERSION=0.9.0
10965 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10966 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10967 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10969 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10970 { echo "$as_me:$LINENO: result: yes" >&5
10971 echo "${ECHO_T}yes" >&6; }
10972 succeeded=yes
10974 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10975 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10976 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10977 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10978 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10980 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10981 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10982 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10983 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10984 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10985 else
10986 { echo "$as_me:$LINENO: result: no" >&5
10987 echo "${ECHO_T}no" >&6; }
10988 RSVG_CFLAGS=""
10989 RSVG_LIBS=""
10990 ## If we have a custom action on failure, don't print errors, but
10991 ## do set a variable so people can do so.
10992 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10998 else
10999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11000 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11004 if test $succeeded = yes; then
11006 else
11013 if test ".${RSVG_CFLAGS}" != "."; then
11014 HAVE_RSVG=yes
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_RSVG 1
11018 _ACEOF
11020 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11021 LIBS="$RSVG_LIBS $LIBS"
11027 HAVE_GTK=no
11028 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11029 GLIB_REQUIRED=2.6
11030 GTK_REQUIRED=2.6
11031 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11034 succeeded=no
11036 # Extract the first word of "pkg-config", so it can be a program name with args.
11037 set dummy pkg-config; ac_word=$2
11038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11040 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 else
11043 case $PKG_CONFIG in
11044 [\\/]* | ?:[\\/]*)
11045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11059 done
11060 done
11061 IFS=$as_save_IFS
11063 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11065 esac
11067 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11068 if test -n "$PKG_CONFIG"; then
11069 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11070 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11071 else
11072 { echo "$as_me:$LINENO: result: no" >&5
11073 echo "${ECHO_T}no" >&6; }
11078 if test "$PKG_CONFIG" = "no" ; then
11079 pkg_check_gtk=no
11080 else
11081 PKG_CONFIG_MIN_VERSION=0.9.0
11082 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11083 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11084 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11086 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11087 { echo "$as_me:$LINENO: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6; }
11089 succeeded=yes
11091 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11092 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11093 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11094 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11095 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11097 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11098 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11099 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11100 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11101 echo "${ECHO_T}$GTK_LIBS" >&6; }
11102 else
11103 { echo "$as_me:$LINENO: result: no" >&5
11104 echo "${ECHO_T}no" >&6; }
11105 GTK_CFLAGS=""
11106 GTK_LIBS=""
11107 ## If we have a custom action on failure, don't print errors, but
11108 ## do set a variable so people can do so.
11109 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11115 else
11116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11121 if test $succeeded = yes; then
11122 pkg_check_gtk=yes
11123 else
11124 pkg_check_gtk=no
11127 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11128 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11129 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11130 { (exit 1); exit 1; }; }
11135 if test x"$pkg_check_gtk" = xyes; then
11139 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11140 CFLAGS="$CFLAGS $GTK_CFLAGS"
11141 LIBS="$GTK_LIBS $LIBS"
11142 GTK_COMPILES=no
11144 for ac_func in gtk_main
11146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 cat >conftest.$ac_ext <<_ACEOF
11153 /* confdefs.h. */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11160 #define $ac_func innocuous_$ac_func
11162 /* System header to define __stub macros and hopefully few prototypes,
11163 which can conflict with char $ac_func (); below.
11164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11165 <limits.h> exists even on freestanding compilers. */
11167 #ifdef __STDC__
11168 # include <limits.h>
11169 #else
11170 # include <assert.h>
11171 #endif
11173 #undef $ac_func
11175 /* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
11178 #ifdef __cplusplus
11179 extern "C"
11180 #endif
11181 char $ac_func ();
11182 /* The GNU C library defines this for functions which it implements
11183 to always fail with ENOSYS. Some functions are actually named
11184 something starting with __ and the normal name is an alias. */
11185 #if defined __stub_$ac_func || defined __stub___$ac_func
11186 choke me
11187 #endif
11190 main ()
11192 return $ac_func ();
11194 return 0;
11196 _ACEOF
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (ac_try="$ac_link"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202 esac
11203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11204 (eval "$ac_link") 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && {
11211 test -z "$ac_c_werror_flag" ||
11212 test ! -s conftest.err
11213 } && test -s conftest$ac_exeext &&
11214 $as_test_x conftest$ac_exeext; then
11215 eval "$as_ac_var=yes"
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 eval "$as_ac_var=no"
11223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11224 conftest$ac_exeext conftest.$ac_ext
11226 ac_res=`eval echo '${'$as_ac_var'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228 echo "${ECHO_T}$ac_res" >&6; }
11229 if test `eval echo '${'$as_ac_var'}'` = yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 _ACEOF
11233 GTK_COMPILES=yes
11235 done
11237 if test "${GTK_COMPILES}" != "yes"; then
11238 if test "$USE_X_TOOLKIT" != "maybe"; then
11239 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11240 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11241 { (exit 1); exit 1; }; };
11243 else
11244 HAVE_GTK=yes
11246 cat >>confdefs.h <<\_ACEOF
11247 #define USE_GTK 1
11248 _ACEOF
11250 USE_X_TOOLKIT=none
11251 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11253 else
11254 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11255 closing open displays. This is no problem if you just use
11256 one display, but if you use more than one and close one of them
11257 Emacs may crash." >&5
11258 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11259 closing open displays. This is no problem if you just use
11260 one display, but if you use more than one and close one of them
11261 Emacs may crash." >&2;}
11262 sleep 3
11269 if test "${HAVE_GTK}" = "yes"; then
11271 if test "$with_toolkit_scroll_bars" != no; then
11272 with_toolkit_scroll_bars=yes
11275 HAVE_GTK_MULTIDISPLAY=no
11277 for ac_func in gdk_display_open
11279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285 cat >conftest.$ac_ext <<_ACEOF
11286 /* confdefs.h. */
11287 _ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11300 #ifdef __STDC__
11301 # include <limits.h>
11302 #else
11303 # include <assert.h>
11304 #endif
11306 #undef $ac_func
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char $ac_func ();
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11319 choke me
11320 #endif
11323 main ()
11325 return $ac_func ();
11327 return 0;
11329 _ACEOF
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest$ac_exeext &&
11347 $as_test_x conftest$ac_exeext; then
11348 eval "$as_ac_var=yes"
11349 else
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357 conftest$ac_exeext conftest.$ac_ext
11359 ac_res=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11366 HAVE_GTK_MULTIDISPLAY=yes
11368 done
11370 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define HAVE_GTK_MULTIDISPLAY 1
11374 _ACEOF
11378 HAVE_GTK_FILE_SELECTION=no
11379 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11380 echo $ECHO_N "checking whether GTK_TYPE_FILE_SELECTION is declared... $ECHO_C" >&6; }
11381 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 #include <gtk/gtk.h>
11394 main ()
11396 #ifndef GTK_TYPE_FILE_SELECTION
11397 (void) GTK_TYPE_FILE_SELECTION;
11398 #endif
11401 return 0;
11403 _ACEOF
11404 rm -f conftest.$ac_objext
11405 if { (ac_try="$ac_compile"
11406 case "(($ac_try" in
11407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_compile") 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.$ac_objext; then
11421 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11422 else
11423 echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11426 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11432 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11433 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11434 HAVE_GTK_FILE_SELECTION=yes
11435 else
11436 HAVE_GTK_FILE_SELECTION=no
11439 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11441 for ac_func in gtk_file_selection_new
11443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h. */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457 #define $ac_func innocuous_$ac_func
11459 /* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11464 #ifdef __STDC__
11465 # include <limits.h>
11466 #else
11467 # include <assert.h>
11468 #endif
11470 #undef $ac_func
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char $ac_func ();
11479 /* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
11482 #if defined __stub_$ac_func || defined __stub___$ac_func
11483 choke me
11484 #endif
11487 main ()
11489 return $ac_func ();
11491 return 0;
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (ac_try="$ac_link"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest$ac_exeext &&
11511 $as_test_x conftest$ac_exeext; then
11512 eval "$as_ac_var=yes"
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 eval "$as_ac_var=no"
11520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11521 conftest$ac_exeext conftest.$ac_ext
11523 ac_res=`eval echo '${'$as_ac_var'}'`
11524 { echo "$as_me:$LINENO: result: $ac_res" >&5
11525 echo "${ECHO_T}$ac_res" >&6; }
11526 if test `eval echo '${'$as_ac_var'}'` = yes; then
11527 cat >>confdefs.h <<_ACEOF
11528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11529 _ACEOF
11530 HAVE_GTK_FILE_SELECTION=yes
11531 else
11532 HAVE_GTK_FILE_SELECTION=no
11534 done
11538 HAVE_GTK_FILE_CHOOSER=no
11539 { echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11540 echo $ECHO_N "checking whether GTK_TYPE_FILE_CHOOSER is declared... $ECHO_C" >&6; }
11541 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <gtk/gtk.h>
11554 main ()
11556 #ifndef GTK_TYPE_FILE_CHOOSER
11557 (void) GTK_TYPE_FILE_CHOOSER;
11558 #endif
11561 return 0;
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (ac_try="$ac_compile"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_compile") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest.$ac_objext; then
11581 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
11582 else
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11591 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
11592 echo "${ECHO_T}$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
11593 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
11594 HAVE_GTK_FILE_CHOOSER=yes
11595 else
11596 HAVE_GTK_FILE_CHOOSER=no
11599 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11601 for ac_func in gtk_file_chooser_dialog_new
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11617 #define $ac_func innocuous_$ac_func
11619 /* System header to define __stub macros and hopefully few prototypes,
11620 which can conflict with char $ac_func (); below.
11621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11622 <limits.h> exists even on freestanding compilers. */
11624 #ifdef __STDC__
11625 # include <limits.h>
11626 #else
11627 # include <assert.h>
11628 #endif
11630 #undef $ac_func
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char $ac_func ();
11639 /* The GNU C library defines this for functions which it implements
11640 to always fail with ENOSYS. Some functions are actually named
11641 something starting with __ and the normal name is an alias. */
11642 #if defined __stub_$ac_func || defined __stub___$ac_func
11643 choke me
11644 #endif
11647 main ()
11649 return $ac_func ();
11651 return 0;
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_link") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest$ac_exeext &&
11671 $as_test_x conftest$ac_exeext; then
11672 eval "$as_ac_var=yes"
11673 else
11674 echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11677 eval "$as_ac_var=no"
11680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11681 conftest$ac_exeext conftest.$ac_ext
11683 ac_res=`eval echo '${'$as_ac_var'}'`
11684 { echo "$as_me:$LINENO: result: $ac_res" >&5
11685 echo "${ECHO_T}$ac_res" >&6; }
11686 if test `eval echo '${'$as_ac_var'}'` = yes; then
11687 cat >>confdefs.h <<_ACEOF
11688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11689 _ACEOF
11690 HAVE_GTK_FILE_CHOOSER=yes
11691 else
11692 HAVE_GTK_FILE_CHOOSER=no
11694 done
11698 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11699 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11701 cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_GTK_FILE_BOTH 1
11703 _ACEOF
11707 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11708 HAVE_GTK_AND_PTHREAD=no
11710 for ac_header in pthread.h
11712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 ac_res=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11722 else
11723 # Is the header compilable?
11724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 $ac_includes_default
11733 #include <$ac_header>
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest.$ac_objext; then
11752 ac_header_compiler=yes
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_header_compiler=no
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6; }
11764 # Is the header present?
11765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <$ac_header>
11774 _ACEOF
11775 if { (ac_try="$ac_cpp conftest.$ac_ext"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } >/dev/null && {
11788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 }; then
11791 ac_header_preproc=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_preproc=no
11799 rm -f conftest.err conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11801 echo "${ECHO_T}$ac_header_preproc" >&6; }
11803 # So? What about this header?
11804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11805 yes:no: )
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11810 ac_header_preproc=yes
11812 no:yes:* )
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11827 esac
11828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833 eval "$as_ac_Header=\$ac_header_preproc"
11835 ac_res=`eval echo '${'$as_ac_Header'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837 echo "${ECHO_T}$ac_res" >&6; }
11840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11843 _ACEOF
11847 done
11849 if test "$ac_cv_header_pthread_h"; then
11850 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11851 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11852 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lpthread $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char pthread_self ();
11872 main ()
11874 return pthread_self ();
11876 return 0;
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_pthread_pthread_self=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_lib_pthread_pthread_self=no
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11909 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11910 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11911 if test $ac_cv_lib_pthread_pthread_self = yes; then
11912 HAVE_GTK_AND_PTHREAD=yes
11916 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11917 case "${canonical}" in
11918 *-hpux*) ;;
11919 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11920 esac
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_GTK_AND_PTHREAD 1
11924 _ACEOF
11930 HAVE_DBUS=no
11931 if test "${with_dbus}" = "yes"; then
11933 succeeded=no
11935 # Extract the first word of "pkg-config", so it can be a program name with args.
11936 set dummy pkg-config; ac_word=$2
11937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942 case $PKG_CONFIG in
11943 [\\/]* | ?:[\\/]*)
11944 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948 for as_dir in $PATH
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11954 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 break 2
11958 done
11959 done
11960 IFS=$as_save_IFS
11962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11964 esac
11966 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11967 if test -n "$PKG_CONFIG"; then
11968 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11970 else
11971 { echo "$as_me:$LINENO: result: no" >&5
11972 echo "${ECHO_T}no" >&6; }
11977 if test "$PKG_CONFIG" = "no" ; then
11978 HAVE_DBUS=no
11979 else
11980 PKG_CONFIG_MIN_VERSION=0.9.0
11981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11982 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11983 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11985 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11986 { echo "$as_me:$LINENO: result: yes" >&5
11987 echo "${ECHO_T}yes" >&6; }
11988 succeeded=yes
11990 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11991 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11992 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11993 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11994 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11996 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11997 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11998 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11999 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12000 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12001 else
12002 { echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6; }
12004 DBUS_CFLAGS=""
12005 DBUS_LIBS=""
12006 ## If we have a custom action on failure, don't print errors, but
12007 ## do set a variable so people can do so.
12008 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12014 else
12015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12020 if test $succeeded = yes; then
12021 HAVE_DBUS=yes
12022 else
12023 HAVE_DBUS=no
12026 if test "$HAVE_DBUS" = yes; then
12028 cat >>confdefs.h <<\_ACEOF
12029 #define HAVE_DBUS 1
12030 _ACEOF
12035 HAVE_XAW3D=no
12036 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12037 if test "$with_xaw3d" != no; then
12038 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12039 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12040 if test "${emacs_cv_xaw3d+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include <X11/Intrinsic.h>
12051 #include <X11/Xaw3d/Simple.h>
12053 main ()
12057 return 0;
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest$ac_exeext &&
12077 $as_test_x conftest$ac_exeext; then
12078 emacs_cv_xaw3d=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 emacs_cv_xaw3d=no
12086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12087 conftest$ac_exeext conftest.$ac_ext
12090 else
12091 emacs_cv_xaw3d=no
12093 if test $emacs_cv_xaw3d = yes; then
12094 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12095 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12096 USE_X_TOOLKIT=LUCID
12097 HAVE_XAW3D=yes
12099 cat >>confdefs.h <<\_ACEOF
12100 #define HAVE_XAW3D 1
12101 _ACEOF
12103 else
12104 { echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6; }
12106 { echo "$as_me:$LINENO: checking for libXaw" >&5
12107 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12108 if test "${emacs_cv_xaw+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12118 #include <X11/Intrinsic.h>
12119 #include <X11/Xaw/Simple.h>
12121 main ()
12125 return 0;
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12146 emacs_cv_xaw=yes
12147 else
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 emacs_cv_xaw=no
12154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12155 conftest$ac_exeext conftest.$ac_ext
12158 if test $emacs_cv_xaw = yes; then
12159 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12160 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12161 USE_X_TOOLKIT=LUCID
12162 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12163 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12164 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12165 { (exit 1); exit 1; }; }
12166 else
12167 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12168 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12169 USE_X_TOOLKIT=none
12174 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12176 if test "${USE_X_TOOLKIT}" != "none"; then
12177 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12178 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12179 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 else
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 #include <X11/Intrinsic.h>
12190 main ()
12192 #if XtSpecificationRelease < 6
12193 fail;
12194 #endif
12197 return 0;
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest$ac_exeext &&
12217 $as_test_x conftest$ac_exeext; then
12218 emacs_cv_x11_toolkit_version_6=yes
12219 else
12220 echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12223 emacs_cv_x11_toolkit_version_6=no
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227 conftest$ac_exeext conftest.$ac_ext
12230 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12231 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12232 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12233 echo "${ECHO_T}6 or newer" >&6; }
12235 cat >>confdefs.h <<\_ACEOF
12236 #define HAVE_X11XTR6 1
12237 _ACEOF
12239 else
12240 { echo "$as_me:$LINENO: result: before 6" >&5
12241 echo "${ECHO_T}before 6" >&6; }
12244 OLDLIBS="$LIBS"
12245 if test x$HAVE_X11XTR6 = xyes; then
12246 LIBS="-lXt -lSM -lICE $LIBS"
12247 else
12248 LIBS="-lXt $LIBS"
12251 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12252 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12253 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lXmu $LIBS"
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 char XmuConvertStandardSelection ();
12273 main ()
12275 return XmuConvertStandardSelection ();
12277 return 0;
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (ac_try="$ac_link"
12282 case "(($ac_try" in
12283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12285 esac
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_link") 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest$ac_exeext &&
12297 $as_test_x conftest$ac_exeext; then
12298 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12299 else
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12307 conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12310 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12311 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12312 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12313 cat >>confdefs.h <<_ACEOF
12314 #define HAVE_LIBXMU 1
12315 _ACEOF
12317 LIBS="-lXmu $LIBS"
12321 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12324 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12325 if test "${HAVE_X11}" = "yes"; then
12326 if test "${USE_X_TOOLKIT}" != "none"; then
12328 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12329 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12330 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-lXext $LIBS"
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h. */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12342 /* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345 #ifdef __cplusplus
12346 extern "C"
12347 #endif
12348 char XShapeQueryExtension ();
12350 main ()
12352 return XShapeQueryExtension ();
12354 return 0;
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_link") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest$ac_exeext &&
12374 $as_test_x conftest$ac_exeext; then
12375 ac_cv_lib_Xext_XShapeQueryExtension=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12380 ac_cv_lib_Xext_XShapeQueryExtension=no
12383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12388 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12389 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_LIBXEXT 1
12392 _ACEOF
12394 LIBS="-lXext $LIBS"
12401 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12402 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12403 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12404 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <Xm/Xm.h>
12415 main ()
12417 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12418 int x = 5;
12419 #else
12420 Motif version prior to 2.1.
12421 #endif
12423 return 0;
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 emacs_cv_motif_version_2_1=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 emacs_cv_motif_version_2_1=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12454 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12455 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12456 if test $emacs_cv_motif_version_2_1 = yes; then
12457 HAVE_LIBXP=no
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_MOTIF_2_1 1
12461 _ACEOF
12463 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12464 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12465 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-lXp $LIBS"
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 char XpCreateContext ();
12485 main ()
12487 return XpCreateContext ();
12489 return 0;
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_link") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest$ac_exeext &&
12509 $as_test_x conftest$ac_exeext; then
12510 ac_cv_lib_Xp_XpCreateContext=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ac_cv_lib_Xp_XpCreateContext=no
12518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS=$ac_check_lib_save_LIBS
12522 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12523 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12524 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12525 HAVE_LIBXP=yes
12528 if test ${HAVE_LIBXP} = yes; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_LIBXP 1
12532 _ACEOF
12535 else
12536 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12537 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12538 if test "${emacs_cv_lesstif+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 else
12541 # We put this in CFLAGS temporarily to precede other -I options
12542 # that might be in CFLAGS temporarily.
12543 # We put this in CPPFLAGS where it precedes the other -I options.
12544 OLD_CPPFLAGS=$CPPFLAGS
12545 OLD_CFLAGS=$CFLAGS
12546 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12547 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12548 cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h. */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12554 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12556 main ()
12558 int x = 5;
12560 return 0;
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570 (eval "$ac_compile") 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
12579 } && test -s conftest.$ac_objext; then
12580 emacs_cv_lesstif=yes
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12585 emacs_cv_lesstif=no
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12591 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12592 if test $emacs_cv_lesstif = yes; then
12593 # Make sure this -I option remains in CPPFLAGS after it is set
12594 # back to REAL_CPPFLAGS.
12595 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12596 # have those other -I options anyway. Ultimately, having this
12597 # directory ultimately in CPPFLAGS will be enough.
12598 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12599 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12600 else
12601 CFLAGS=$OLD_CFLAGS
12602 CPPFLAGS=$OLD_CPPFLAGS
12609 USE_TOOLKIT_SCROLL_BARS=no
12610 if test "${with_toolkit_scroll_bars}" != "no"; then
12611 if test "${USE_X_TOOLKIT}" != "none"; then
12612 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12613 cat >>confdefs.h <<\_ACEOF
12614 #define USE_TOOLKIT_SCROLL_BARS 1
12615 _ACEOF
12617 HAVE_XAW3D=no
12618 USE_TOOLKIT_SCROLL_BARS=yes
12619 elif test "${HAVE_XAW3D}" = "yes"; then
12620 cat >>confdefs.h <<\_ACEOF
12621 #define USE_TOOLKIT_SCROLL_BARS 1
12622 _ACEOF
12624 USE_TOOLKIT_SCROLL_BARS=yes
12626 elif test "${HAVE_GTK}" = "yes"; then
12627 cat >>confdefs.h <<\_ACEOF
12628 #define USE_TOOLKIT_SCROLL_BARS 1
12629 _ACEOF
12631 USE_TOOLKIT_SCROLL_BARS=yes
12632 elif test "${HAVE_NS}" = "yes"; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define USE_TOOLKIT_SCROLL_BARS 1
12635 _ACEOF
12637 USE_TOOLKIT_SCROLL_BARS=yes
12641 cat >conftest.$ac_ext <<_ACEOF
12642 /* confdefs.h. */
12643 _ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 #include <X11/Xlib.h>
12649 #include <X11/Xresource.h>
12651 main ()
12653 XIMProc callback;
12655 return 0;
12657 _ACEOF
12658 rm -f conftest.$ac_objext
12659 if { (ac_try="$ac_compile"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12663 esac
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_compile") 2>conftest.er1
12666 ac_status=$?
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } && {
12672 test -z "$ac_c_werror_flag" ||
12673 test ! -s conftest.err
12674 } && test -s conftest.$ac_objext; then
12675 HAVE_XIM=yes
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_XIM 1
12679 _ACEOF
12681 else
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 HAVE_XIM=no
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 if test "${with_xim}" != "no"; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define USE_XIM 1
12695 _ACEOF
12700 if test "${HAVE_XIM}" != "no"; then
12701 late_CFLAGS=$CFLAGS
12702 if test "$GCC" = yes; then
12703 CFLAGS="$CFLAGS --pedantic-errors"
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12712 #include <X11/Xlib.h>
12713 #include <X11/Xresource.h>
12715 main ()
12717 Display *display;
12718 XrmDatabase db;
12719 char *res_name;
12720 char *res_class;
12721 XIMProc callback;
12722 XPointer *client_data;
12723 #ifndef __GNUC__
12724 /* If we're not using GCC, it's probably not XFree86, and this is
12725 probably right, but we can't use something like --pedantic-errors. */
12726 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12727 char*, XIMProc, XPointer*);
12728 #endif
12729 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12730 client_data);
12732 return 0;
12734 _ACEOF
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_compile") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest.$ac_objext; then
12752 emacs_cv_arg6_star=yes
12753 else
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 if test "$emacs_cv_arg6_star" = yes; then
12763 cat >>confdefs.h <<\_ACEOF
12764 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12765 _ACEOF
12767 else
12768 cat >>confdefs.h <<\_ACEOF
12769 #define XRegisterIMInstantiateCallback_arg6 XPointer
12770 _ACEOF
12773 CFLAGS=$late_CFLAGS
12776 ### Start of font-backend (under any platform) section.
12777 # (nothing here yet -- this is a placeholder)
12778 ### End of font-backend (under any platform) section.
12780 ### Start of font-backend (under X11) section.
12781 if test "${HAVE_X11}" = "yes"; then
12783 succeeded=no
12785 # Extract the first word of "pkg-config", so it can be a program name with args.
12786 set dummy pkg-config; ac_word=$2
12787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12789 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 else
12792 case $PKG_CONFIG in
12793 [\\/]* | ?:[\\/]*)
12794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12808 done
12809 done
12810 IFS=$as_save_IFS
12812 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12814 esac
12816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12817 if test -n "$PKG_CONFIG"; then
12818 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12819 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12820 else
12821 { echo "$as_me:$LINENO: result: no" >&5
12822 echo "${ECHO_T}no" >&6; }
12827 if test "$PKG_CONFIG" = "no" ; then
12828 HAVE_FC=no
12829 else
12830 PKG_CONFIG_MIN_VERSION=0.9.0
12831 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12832 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12833 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12835 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12836 { echo "$as_me:$LINENO: result: yes" >&5
12837 echo "${ECHO_T}yes" >&6; }
12838 succeeded=yes
12840 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12841 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12842 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12843 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12844 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12846 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12847 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12848 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12849 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12850 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12851 else
12852 { echo "$as_me:$LINENO: result: no" >&5
12853 echo "${ECHO_T}no" >&6; }
12854 FONTCONFIG_CFLAGS=""
12855 FONTCONFIG_LIBS=""
12856 ## If we have a custom action on failure, don't print errors, but
12857 ## do set a variable so people can do so.
12858 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12864 else
12865 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12866 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12870 if test $succeeded = yes; then
12871 HAVE_FC=yes
12872 else
12873 HAVE_FC=no
12877 ## Use -lXft if available, unless `--with-xft=no'.
12878 HAVE_XFT=maybe
12879 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12880 with_xft="no";
12882 if test "x${with_xft}" != "xno"; then
12885 succeeded=no
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config; ac_word=$2
12889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 case $PKG_CONFIG in
12895 [\\/]* | ?:[\\/]*)
12896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 break 2
12910 done
12911 done
12912 IFS=$as_save_IFS
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12916 esac
12918 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12922 else
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12929 if test "$PKG_CONFIG" = "no" ; then
12930 HAVE_XFT=no
12931 else
12932 PKG_CONFIG_MIN_VERSION=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12935 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12940 succeeded=yes
12942 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12943 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12944 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12946 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12949 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12950 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12952 echo "${ECHO_T}$XFT_LIBS" >&6; }
12953 else
12954 { echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6; }
12956 XFT_CFLAGS=""
12957 XFT_LIBS=""
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12966 else
12967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12972 if test $succeeded = yes; then
12974 else
12975 HAVE_XFT=no
12978 if test "$HAVE_XFT" != no; then
12979 OLD_CPPFLAGS="$CPPFLAGS"
12980 OLD_CFLAGS="$CFLAGS"
12981 OLD_LIBS="$LIBS"
12982 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12983 CFLAGS="$CFLAGS $XFT_CFLAGS"
12984 LIBS="$XFT_LIBS $LIBS"
12985 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12986 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12987 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12988 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12992 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12993 else
12994 # Is the header compilable?
12995 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12996 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12997 cat >conftest.$ac_ext <<_ACEOF
12998 /* confdefs.h. */
12999 _ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13004 #include <X11/Xft/Xft.h>
13005 _ACEOF
13006 rm -f conftest.$ac_objext
13007 if { (ac_try="$ac_compile"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011 esac
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_compile") 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } && {
13020 test -z "$ac_c_werror_flag" ||
13021 test ! -s conftest.err
13022 } && test -s conftest.$ac_objext; then
13023 ac_header_compiler=yes
13024 else
13025 echo "$as_me: failed program was:" >&5
13026 sed 's/^/| /' conftest.$ac_ext >&5
13028 ac_header_compiler=no
13031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13033 echo "${ECHO_T}$ac_header_compiler" >&6; }
13035 # Is the header present?
13036 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13037 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13038 cat >conftest.$ac_ext <<_ACEOF
13039 /* confdefs.h. */
13040 _ACEOF
13041 cat confdefs.h >>conftest.$ac_ext
13042 cat >>conftest.$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13044 #include <X11/Xft/Xft.h>
13045 _ACEOF
13046 if { (ac_try="$ac_cpp conftest.$ac_ext"
13047 case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050 esac
13051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null && {
13059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 }; then
13062 ac_header_preproc=yes
13063 else
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.$ac_ext >&5
13067 ac_header_preproc=no
13070 rm -f conftest.err conftest.$ac_ext
13071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072 echo "${ECHO_T}$ac_header_preproc" >&6; }
13074 # So? What about this header?
13075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 yes:no: )
13077 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13078 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13080 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13081 ac_header_preproc=yes
13083 no:yes:* )
13084 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13085 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13087 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13089 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13091 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13093 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13095 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13098 esac
13099 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13100 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13101 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13106 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13107 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13110 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13111 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13112 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13113 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lXft $XFT_LIBS $LIBS"
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char XftFontOpen ();
13133 main ()
13135 return XftFontOpen ();
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145 esac
13146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_link") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest$ac_exeext &&
13157 $as_test_x conftest$ac_exeext; then
13158 ac_cv_lib_Xft_XftFontOpen=yes
13159 else
13160 echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13163 ac_cv_lib_Xft_XftFontOpen=no
13166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13170 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13171 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13172 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13173 HAVE_XFT=yes
13180 if test "${HAVE_XFT}" = "yes"; then
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_XFT 1
13184 _ACEOF
13187 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13188 else
13189 CPPFLAGS="$OLD_CPPFLAGS"
13190 CFLAGS="$OLD_CFLAGS"
13191 LIBS="$OLD_LIBS"
13192 fi # "${HAVE_XFT}" = "yes"
13193 fi # "$HAVE_XFT" != no
13194 fi # "x${with_xft}" != "xno"
13196 if test "$HAVE_XFT" != "yes"; then
13197 HAVE_XFT=no
13201 HAVE_FREETYPE=no
13202 ## We used to allow building with FreeType and without Xft.
13203 ## However, the ftx font backend driver is not in good shape.
13204 if test "${HAVE_XFT}" = "yes"; then
13205 HAVE_FREETYPE=yes
13206 FONTCONFIG_CFLAGS=
13207 FONTCONFIG_LIBS=
13210 HAVE_LIBOTF=no
13211 if test "${HAVE_FREETYPE}" = "yes"; then
13213 cat >>confdefs.h <<\_ACEOF
13214 #define HAVE_FREETYPE 1
13215 _ACEOF
13217 if test "${with_libotf}" != "no"; then
13219 succeeded=no
13221 # Extract the first word of "pkg-config", so it can be a program name with args.
13222 set dummy pkg-config; ac_word=$2
13223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13225 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 case $PKG_CONFIG in
13229 [\\/]* | ?:[\\/]*)
13230 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13234 for as_dir in $PATH
13236 IFS=$as_save_IFS
13237 test -z "$as_dir" && as_dir=.
13238 for ac_exec_ext in '' $ac_executable_extensions; do
13239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13240 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13242 break 2
13244 done
13245 done
13246 IFS=$as_save_IFS
13248 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13250 esac
13252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13253 if test -n "$PKG_CONFIG"; then
13254 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13255 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13256 else
13257 { echo "$as_me:$LINENO: result: no" >&5
13258 echo "${ECHO_T}no" >&6; }
13263 if test "$PKG_CONFIG" = "no" ; then
13264 HAVE_LIBOTF=no
13265 else
13266 PKG_CONFIG_MIN_VERSION=0.9.0
13267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13268 { echo "$as_me:$LINENO: checking for libotf" >&5
13269 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13271 if $PKG_CONFIG --exists "libotf" 2>&5; then
13272 { echo "$as_me:$LINENO: result: yes" >&5
13273 echo "${ECHO_T}yes" >&6; }
13274 succeeded=yes
13276 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13277 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13278 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13279 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13280 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13282 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13283 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13284 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13285 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13286 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13287 else
13288 { echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6; }
13290 LIBOTF_CFLAGS=""
13291 LIBOTF_LIBS=""
13292 ## If we have a custom action on failure, don't print errors, but
13293 ## do set a variable so people can do so.
13294 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13300 else
13301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13306 if test $succeeded = yes; then
13307 HAVE_LIBOTF=yes
13308 else
13309 HAVE_LIBOTF=no
13312 if test "$HAVE_LIBOTF" = "yes"; then
13314 cat >>confdefs.h <<\_ACEOF
13315 #define HAVE_LIBOTF 1
13316 _ACEOF
13318 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13319 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13320 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323 ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lotf $LIBS"
13325 cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */
13332 /* Override any GCC internal prototype to avoid an error.
13333 Use char because int might match the return type of a GCC
13334 builtin and then its argument prototype would still apply. */
13335 #ifdef __cplusplus
13336 extern "C"
13337 #endif
13338 char OTF_get_variation_glyphs ();
13340 main ()
13342 return OTF_get_variation_glyphs ();
13344 return 0;
13346 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_link") 2>conftest.er1
13355 ac_status=$?
13356 grep -v '^ *+' conftest.er1 >conftest.err
13357 rm -f conftest.er1
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_c_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest$ac_exeext &&
13364 $as_test_x conftest$ac_exeext; then
13365 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13366 else
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13370 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13374 conftest$ac_exeext conftest.$ac_ext
13375 LIBS=$ac_check_lib_save_LIBS
13377 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13378 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13379 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13380 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13381 else
13382 HAVE_OTF_GET_VARIATION_GLYPHS=no
13385 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13387 cat >>confdefs.h <<\_ACEOF
13388 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13389 _ACEOF
13396 HAVE_M17N_FLT=no
13397 if test "${HAVE_LIBOTF}" = yes; then
13398 if test "${with_m17n_flt}" != "no"; then
13400 succeeded=no
13402 # Extract the first word of "pkg-config", so it can be a program name with args.
13403 set dummy pkg-config; ac_word=$2
13404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13406 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409 case $PKG_CONFIG in
13410 [\\/]* | ?:[\\/]*)
13411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13425 done
13426 done
13427 IFS=$as_save_IFS
13429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13431 esac
13433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13434 if test -n "$PKG_CONFIG"; then
13435 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13436 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13437 else
13438 { echo "$as_me:$LINENO: result: no" >&5
13439 echo "${ECHO_T}no" >&6; }
13444 if test "$PKG_CONFIG" = "no" ; then
13445 HAVE_M17N_FLT=no
13446 else
13447 PKG_CONFIG_MIN_VERSION=0.9.0
13448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13449 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13450 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13452 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13453 { echo "$as_me:$LINENO: result: yes" >&5
13454 echo "${ECHO_T}yes" >&6; }
13455 succeeded=yes
13457 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13458 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13459 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13460 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13461 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13463 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13464 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13465 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13466 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13467 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13468 else
13469 { echo "$as_me:$LINENO: result: no" >&5
13470 echo "${ECHO_T}no" >&6; }
13471 M17N_FLT_CFLAGS=""
13472 M17N_FLT_LIBS=""
13473 ## If we have a custom action on failure, don't print errors, but
13474 ## do set a variable so people can do so.
13475 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13481 else
13482 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13483 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13487 if test $succeeded = yes; then
13488 HAVE_M17N_FLT=yes
13489 else
13490 HAVE_M17N_FLT=no
13493 if test "$HAVE_M17N_FLT" = "yes"; then
13495 cat >>confdefs.h <<\_ACEOF
13496 #define HAVE_M17N_FLT 1
13497 _ACEOF
13502 else
13503 HAVE_XFT=no
13504 HAVE_FREETYPE=no
13505 HAVE_LIBOTF=no
13506 HAVE_M17N_FLT=no
13508 ### End of font-backend (under X11) section.
13519 ### Use -lXpm if available, unless `--with-xpm=no'.
13520 HAVE_XPM=no
13521 if test "${HAVE_X11}" = "yes"; then
13522 if test "${with_xpm}" != "no"; then
13523 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13524 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13525 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13530 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13531 else
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13534 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <X11/xpm.h>
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_header_compiler=no
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13575 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <X11/xpm.h>
13583 _ACEOF
13584 if { (ac_try="$ac_cpp conftest.$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } >/dev/null && {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 }; then
13600 ac_header_preproc=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_header_preproc=no
13608 rm -f conftest.err conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13614 yes:no: )
13615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13616 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13618 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13619 ac_header_preproc=yes
13621 no:yes:* )
13622 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13623 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13625 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13627 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13629 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13631 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13633 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13636 esac
13637 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13638 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13639 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 ac_cv_header_X11_xpm_h=$ac_header_preproc
13644 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13645 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13648 if test $ac_cv_header_X11_xpm_h = yes; then
13649 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13650 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13651 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-lXpm -lX11 $LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13657 /* confdefs.h. */
13658 _ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any GCC internal prototype to avoid an error.
13664 Use char because int might match the return type of a GCC
13665 builtin and then its argument prototype would still apply. */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char XpmReadFileToPixmap ();
13671 main ()
13673 return XpmReadFileToPixmap ();
13675 return 0;
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (ac_try="$ac_link"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_link") 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest$ac_exeext &&
13695 $as_test_x conftest$ac_exeext; then
13696 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13705 conftest$ac_exeext conftest.$ac_ext
13706 LIBS=$ac_check_lib_save_LIBS
13708 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13709 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13710 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13711 HAVE_XPM=yes
13717 if test "${HAVE_XPM}" = "yes"; then
13718 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13719 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13720 cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h. */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 #include "X11/xpm.h"
13727 #ifndef XpmReturnAllocPixels
13728 no_return_alloc_pixels
13729 #endif
13731 _ACEOF
13732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13733 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13734 HAVE_XPM=no
13735 else
13736 HAVE_XPM=yes
13738 rm -f conftest*
13741 if test "${HAVE_XPM}" = "yes"; then
13742 { echo "$as_me:$LINENO: result: yes" >&5
13743 echo "${ECHO_T}yes" >&6; }
13744 else
13745 { echo "$as_me:$LINENO: result: no" >&5
13746 echo "${ECHO_T}no" >&6; }
13751 if test "${HAVE_XPM}" = "yes"; then
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_XPM 1
13755 _ACEOF
13760 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13761 HAVE_JPEG=no
13762 if test "${HAVE_X11}" = "yes"; then
13763 if test "${with_jpeg}" != "no"; then
13764 if test "${ac_cv_header_jerror_h+set}" = set; then
13765 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13766 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13767 if test "${ac_cv_header_jerror_h+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13771 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13772 else
13773 # Is the header compilable?
13774 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13775 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h. */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 #include <jerror.h>
13784 _ACEOF
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_compile") 2>conftest.er1
13793 ac_status=$?
13794 grep -v '^ *+' conftest.er1 >conftest.err
13795 rm -f conftest.er1
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest.$ac_objext; then
13802 ac_header_compiler=yes
13803 else
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_header_compiler=no
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812 echo "${ECHO_T}$ac_header_compiler" >&6; }
13814 # Is the header present?
13815 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13816 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13818 /* confdefs.h. */
13819 _ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <jerror.h>
13824 _ACEOF
13825 if { (ac_try="$ac_cpp conftest.$ac_ext"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null && {
13838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 }; then
13841 ac_header_preproc=yes
13842 else
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13846 ac_header_preproc=no
13849 rm -f conftest.err conftest.$ac_ext
13850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13851 echo "${ECHO_T}$ac_header_preproc" >&6; }
13853 # So? What about this header?
13854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13855 yes:no: )
13856 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13857 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13859 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13860 ac_header_preproc=yes
13862 no:yes:* )
13863 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13864 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13866 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13868 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13870 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13872 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13874 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13877 esac
13878 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13879 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13880 if test "${ac_cv_header_jerror_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 else
13883 ac_cv_header_jerror_h=$ac_header_preproc
13885 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13886 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13889 if test $ac_cv_header_jerror_h = yes; then
13890 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13891 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13892 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895 ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-ljpeg $LIBS"
13897 cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h. */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13904 /* Override any GCC internal prototype to avoid an error.
13905 Use char because int might match the return type of a GCC
13906 builtin and then its argument prototype would still apply. */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 char jpeg_destroy_compress ();
13912 main ()
13914 return jpeg_destroy_compress ();
13916 return 0;
13918 _ACEOF
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (ac_try="$ac_link"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_link") 2>conftest.er1
13927 ac_status=$?
13928 grep -v '^ *+' conftest.er1 >conftest.err
13929 rm -f conftest.er1
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest$ac_exeext &&
13936 $as_test_x conftest$ac_exeext; then
13937 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13938 else
13939 echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13942 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13946 conftest$ac_exeext conftest.$ac_ext
13947 LIBS=$ac_check_lib_save_LIBS
13949 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13950 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13951 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13952 HAVE_JPEG=yes
13961 if test "${HAVE_JPEG}" = "yes"; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_JPEG 1
13964 _ACEOF
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include <jpeglib.h>
13973 version=JPEG_LIB_VERSION
13975 _ACEOF
13976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13977 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13978 cat >>confdefs.h <<\_ACEOF
13979 #define HAVE_JPEG 1
13980 _ACEOF
13982 else
13983 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13984 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13985 HAVE_JPEG=no
13987 rm -f conftest*
13992 ### Use -lpng if available, unless `--with-png=no'.
13993 HAVE_PNG=no
13994 if test "${HAVE_X11}" = "yes"; then
13995 if test "${with_png}" != "no"; then
13996 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13997 # in /usr/include/libpng.
14000 for ac_header in png.h libpng/png.h
14002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 ac_res=`eval echo '${'$as_ac_Header'}'`
14010 { echo "$as_me:$LINENO: result: $ac_res" >&5
14011 echo "${ECHO_T}$ac_res" >&6; }
14012 else
14013 # Is the header compilable?
14014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <$ac_header>
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030 esac
14031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_compile") 2>conftest.er1
14033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } && {
14039 test -z "$ac_c_werror_flag" ||
14040 test ! -s conftest.err
14041 } && test -s conftest.$ac_objext; then
14042 ac_header_compiler=yes
14043 else
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_header_compiler=no
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14052 echo "${ECHO_T}$ac_header_compiler" >&6; }
14054 # Is the header present?
14055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h. */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 #include <$ac_header>
14064 _ACEOF
14065 if { (ac_try="$ac_cpp conftest.$ac_ext"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14080 }; then
14081 ac_header_preproc=yes
14082 else
14083 echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14089 rm -f conftest.err conftest.$ac_ext
14090 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14091 echo "${ECHO_T}$ac_header_preproc" >&6; }
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 yes:no: )
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14100 ac_header_preproc=yes
14102 no:yes:* )
14103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14117 esac
14118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123 eval "$as_ac_Header=\$ac_header_preproc"
14125 ac_res=`eval echo '${'$as_ac_Header'}'`
14126 { echo "$as_me:$LINENO: result: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133 _ACEOF
14137 done
14139 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14140 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14141 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14142 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 ac_check_lib_save_LIBS=$LIBS
14146 LIBS="-lpng -lz -lm $LIBS"
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14154 /* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14157 #ifdef __cplusplus
14158 extern "C"
14159 #endif
14160 char png_get_channels ();
14162 main ()
14164 return png_get_channels ();
14166 return 0;
14168 _ACEOF
14169 rm -f conftest.$ac_objext conftest$ac_exeext
14170 if { (ac_try="$ac_link"
14171 case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_link") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest$ac_exeext &&
14186 $as_test_x conftest$ac_exeext; then
14187 ac_cv_lib_png_png_get_channels=yes
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_lib_png_png_get_channels=no
14195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14196 conftest$ac_exeext conftest.$ac_ext
14197 LIBS=$ac_check_lib_save_LIBS
14199 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14200 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14201 if test $ac_cv_lib_png_png_get_channels = yes; then
14202 HAVE_PNG=yes
14208 if test "${HAVE_PNG}" = "yes"; then
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_PNG 1
14212 _ACEOF
14217 ### Use -ltiff if available, unless `--with-tiff=no'.
14218 HAVE_TIFF=no
14219 if test "${HAVE_X11}" = "yes"; then
14220 if test "${with_tiff}" != "no"; then
14221 if test "${ac_cv_header_tiffio_h+set}" = set; then
14222 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14223 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14224 if test "${ac_cv_header_tiffio_h+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14228 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14229 else
14230 # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14232 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <tiffio.h>
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249 (eval "$ac_compile") 2>conftest.er1
14250 ac_status=$?
14251 grep -v '^ *+' conftest.er1 >conftest.err
14252 rm -f conftest.er1
14253 cat conftest.err >&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } && {
14256 test -z "$ac_c_werror_flag" ||
14257 test ! -s conftest.err
14258 } && test -s conftest.$ac_objext; then
14259 ac_header_compiler=yes
14260 else
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_header_compiler=no
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14273 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h. */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 #include <tiffio.h>
14281 _ACEOF
14282 if { (ac_try="$ac_cpp conftest.$ac_ext"
14283 case "(($ac_try" in
14284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285 *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } >/dev/null && {
14295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 }; then
14298 ac_header_preproc=yes
14299 else
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_header_preproc=no
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14310 # So? What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312 yes:no: )
14313 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14317 ac_header_preproc=yes
14319 no:yes:* )
14320 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14334 esac
14335 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14336 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14337 if test "${ac_cv_header_tiffio_h+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 ac_cv_header_tiffio_h=$ac_header_preproc
14342 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14343 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14346 if test $ac_cv_header_tiffio_h = yes; then
14347 tifflibs="-lz -lm"
14348 # At least one tiff package requires the jpeg library.
14349 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14350 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14351 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14352 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 else
14355 ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-ltiff $tifflibs $LIBS"
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14364 /* Override any GCC internal prototype to avoid an error.
14365 Use char because int might match the return type of a GCC
14366 builtin and then its argument prototype would still apply. */
14367 #ifdef __cplusplus
14368 extern "C"
14369 #endif
14370 char TIFFGetVersion ();
14372 main ()
14374 return TIFFGetVersion ();
14376 return 0;
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14397 ac_cv_lib_tiff_TIFFGetVersion=yes
14398 else
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14402 ac_cv_lib_tiff_TIFFGetVersion=no
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14406 conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14409 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14410 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14411 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14412 HAVE_TIFF=yes
14420 if test "${HAVE_TIFF}" = "yes"; then
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_TIFF 1
14424 _ACEOF
14429 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14430 HAVE_GIF=no
14431 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14432 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14433 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14434 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14435 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14438 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14439 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14440 else
14441 # Is the header compilable?
14442 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14443 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 $ac_includes_default
14451 #include <gif_lib.h>
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_header_compiler=yes
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_header_compiler=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14484 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <gif_lib.h>
14492 _ACEOF
14493 if { (ac_try="$ac_cpp conftest.$ac_ext"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 }; then
14509 ac_header_preproc=yes
14510 else
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_preproc=no
14517 rm -f conftest.err conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 echo "${ECHO_T}$ac_header_preproc" >&6; }
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14523 yes:no: )
14524 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14525 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14527 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14528 ac_header_preproc=yes
14530 no:yes:* )
14531 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14532 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14534 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14536 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14538 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14540 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14542 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14545 esac
14546 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14547 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14548 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 ac_cv_header_gif_lib_h=$ac_header_preproc
14553 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14554 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14557 if test $ac_cv_header_gif_lib_h = yes; then
14558 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14559 # Earlier versions can crash Emacs.
14560 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14561 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14562 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 ac_check_lib_save_LIBS=$LIBS
14566 LIBS="-lgif $LIBS"
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h. */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14574 /* Override any GCC internal prototype to avoid an error.
14575 Use char because int might match the return type of a GCC
14576 builtin and then its argument prototype would still apply. */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 char EGifPutExtensionLast ();
14582 main ()
14584 return EGifPutExtensionLast ();
14586 return 0;
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_link") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest$ac_exeext &&
14606 $as_test_x conftest$ac_exeext; then
14607 ac_cv_lib_gif_EGifPutExtensionLast=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_cv_lib_gif_EGifPutExtensionLast=no
14615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14616 conftest$ac_exeext conftest.$ac_ext
14617 LIBS=$ac_check_lib_save_LIBS
14619 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14620 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14621 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14622 HAVE_GIF=yes
14623 else
14624 try_libungif=yes
14631 if test "$HAVE_GIF" = yes; then
14632 ac_gif_lib_name="-lgif"
14635 # If gif_lib.h but no libgif, try libungif.
14636 if test x"$try_libungif" = xyes; then
14637 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14638 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14639 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 else
14642 ac_check_lib_save_LIBS=$LIBS
14643 LIBS="-lungif $LIBS"
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 /* Override any GCC internal prototype to avoid an error.
14652 Use char because int might match the return type of a GCC
14653 builtin and then its argument prototype would still apply. */
14654 #ifdef __cplusplus
14655 extern "C"
14656 #endif
14657 char EGifPutExtensionLast ();
14659 main ()
14661 return EGifPutExtensionLast ();
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_lib_ungif_EGifPutExtensionLast=no
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS=$ac_check_lib_save_LIBS
14696 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14697 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14698 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14699 HAVE_GIF=yes
14703 if test "$HAVE_GIF" = yes; then
14705 cat >>confdefs.h <<\_ACEOF
14706 #define LIBGIF -lungif
14707 _ACEOF
14709 ac_gif_lib_name="-lungif"
14713 if test "${HAVE_GIF}" = "yes"; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_GIF 1
14717 _ACEOF
14722 if test "${HAVE_X11}" = "yes"; then
14723 MISSING=""
14724 WITH_NO=""
14725 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14726 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14727 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14728 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14729 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14730 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14731 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14732 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14733 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14734 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14736 if test "X${MISSING}" != X; then
14737 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14738 $MISSING
14739 Maybe some development libraries/packages are missing?
14740 If you don't want to link with them give
14741 $WITH_NO
14742 as options to configure" >&5
14743 echo "$as_me: error: The following required libraries were not found:
14744 $MISSING
14745 Maybe some development libraries/packages are missing?
14746 If you don't want to link with them give
14747 $WITH_NO
14748 as options to configure" >&2;}
14749 { (exit 1); exit 1; }; }
14753 ### Use -lgpm if available, unless `--with-gpm=no'.
14754 HAVE_GPM=no
14755 if test "${with_gpm}" != "no"; then
14756 if test "${ac_cv_header_gpm_h+set}" = set; then
14757 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14758 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_header_gpm_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14763 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14764 else
14765 # Is the header compilable?
14766 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14767 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14775 #include <gpm.h>
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
14794 ac_header_compiler=yes
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_header_compiler=no
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14804 echo "${ECHO_T}$ac_header_compiler" >&6; }
14806 # Is the header present?
14807 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14808 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h. */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <gpm.h>
14816 _ACEOF
14817 if { (ac_try="$ac_cpp conftest.$ac_ext"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } >/dev/null && {
14830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14832 }; then
14833 ac_header_preproc=yes
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 ac_header_preproc=no
14841 rm -f conftest.err conftest.$ac_ext
14842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14843 echo "${ECHO_T}$ac_header_preproc" >&6; }
14845 # So? What about this header?
14846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14847 yes:no: )
14848 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14849 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14851 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14852 ac_header_preproc=yes
14854 no:yes:* )
14855 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14856 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14858 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14860 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14862 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14864 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14865 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14866 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14869 esac
14870 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14871 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14872 if test "${ac_cv_header_gpm_h+set}" = set; then
14873 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 else
14875 ac_cv_header_gpm_h=$ac_header_preproc
14877 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14878 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14881 if test $ac_cv_header_gpm_h = yes; then
14882 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14883 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14884 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887 ac_check_lib_save_LIBS=$LIBS
14888 LIBS="-lgpm $LIBS"
14889 cat >conftest.$ac_ext <<_ACEOF
14890 /* confdefs.h. */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h. */
14896 /* Override any GCC internal prototype to avoid an error.
14897 Use char because int might match the return type of a GCC
14898 builtin and then its argument prototype would still apply. */
14899 #ifdef __cplusplus
14900 extern "C"
14901 #endif
14902 char Gpm_Open ();
14904 main ()
14906 return Gpm_Open ();
14908 return 0;
14910 _ACEOF
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (ac_try="$ac_link"
14913 case "(($ac_try" in
14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14916 esac
14917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14918 (eval "$ac_link") 2>conftest.er1
14919 ac_status=$?
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } && {
14925 test -z "$ac_c_werror_flag" ||
14926 test ! -s conftest.err
14927 } && test -s conftest$ac_exeext &&
14928 $as_test_x conftest$ac_exeext; then
14929 ac_cv_lib_gpm_Gpm_Open=yes
14930 else
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_lib_gpm_Gpm_Open=no
14937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14938 conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14941 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14942 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14943 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14944 HAVE_GPM=yes
14952 if test "${HAVE_GPM}" = "yes"; then
14954 cat >>confdefs.h <<\_ACEOF
14955 #define HAVE_GPM 1
14956 _ACEOF
14960 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14961 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14962 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14963 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14967 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14968 else
14969 # Is the header compilable?
14970 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14971 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14972 cat >conftest.$ac_ext <<_ACEOF
14973 /* confdefs.h. */
14974 _ACEOF
14975 cat confdefs.h >>conftest.$ac_ext
14976 cat >>conftest.$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 $ac_includes_default
14979 #include <malloc/malloc.h>
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (ac_try="$ac_compile"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_compile") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } && {
14995 test -z "$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 } && test -s conftest.$ac_objext; then
14998 ac_header_compiler=yes
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 ac_header_compiler=no
15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15008 echo "${ECHO_T}$ac_header_compiler" >&6; }
15010 # Is the header present?
15011 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15012 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h. */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h. */
15019 #include <malloc/malloc.h>
15020 _ACEOF
15021 if { (ac_try="$ac_cpp conftest.$ac_ext"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } >/dev/null && {
15034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 }; then
15037 ac_header_preproc=yes
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_preproc=no
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15049 # So? What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15051 yes:no: )
15052 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15053 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15055 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15056 ac_header_preproc=yes
15058 no:yes:* )
15059 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15060 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15062 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15064 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15066 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15068 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15070 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15073 esac
15074 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15075 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15076 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 else
15079 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15081 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15082 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15085 if test $ac_cv_header_malloc_malloc_h = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_MALLOC_MALLOC_H 1
15089 _ACEOF
15095 ### Use NeXTstep API to implement GUI.
15096 if test "${HAVE_NS}" = "yes"; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define HAVE_NS 1
15100 _ACEOF
15102 if test "${NS_IMPL_COCOA}" = "yes"; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define NS_IMPL_COCOA 1
15106 _ACEOF
15108 GNU_OBJC_CFLAGS=
15110 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15112 cat >>confdefs.h <<\_ACEOF
15113 #define NS_IMPL_GNUSTEP 1
15114 _ACEOF
15116 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15118 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define NS_HAVE_NSINTEGER 1
15122 _ACEOF
15125 # We also have mouse menus.
15126 HAVE_MENUS=yes
15130 ### Use session management (-lSM -lICE) if available
15131 HAVE_X_SM=no
15132 if test "${HAVE_X11}" = "yes"; then
15133 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15134 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15135 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15136 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15140 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15141 else
15142 # Is the header compilable?
15143 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15144 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 $ac_includes_default
15152 #include <X11/SM/SMlib.h>
15153 _ACEOF
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest.$ac_objext; then
15171 ac_header_compiler=yes
15172 else
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_compiler=no
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6; }
15183 # Is the header present?
15184 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15185 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h. */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <X11/SM/SMlib.h>
15193 _ACEOF
15194 if { (ac_try="$ac_cpp conftest.$ac_ext"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198 esac
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15201 ac_status=$?
15202 grep -v '^ *+' conftest.er1 >conftest.err
15203 rm -f conftest.er1
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } >/dev/null && {
15207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 }; then
15210 ac_header_preproc=yes
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15224 yes:no: )
15225 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15231 no:yes:* )
15232 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15246 esac
15247 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15248 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15249 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15254 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15255 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15258 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15259 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15260 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15261 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264 ac_check_lib_save_LIBS=$LIBS
15265 LIBS="-lSM -lICE $LIBS"
15266 cat >conftest.$ac_ext <<_ACEOF
15267 /* confdefs.h. */
15268 _ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 char SmcOpenConnection ();
15281 main ()
15283 return SmcOpenConnection ();
15285 return 0;
15287 _ACEOF
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293 esac
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext &&
15305 $as_test_x conftest$ac_exeext; then
15306 ac_cv_lib_SM_SmcOpenConnection=yes
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 ac_cv_lib_SM_SmcOpenConnection=no
15314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15315 conftest$ac_exeext conftest.$ac_ext
15316 LIBS=$ac_check_lib_save_LIBS
15318 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15319 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15320 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15321 HAVE_X_SM=yes
15328 if test "${HAVE_X_SM}" = "yes"; then
15330 cat >>confdefs.h <<\_ACEOF
15331 #define HAVE_X_SM 1
15332 _ACEOF
15334 case "$LIBS" in
15335 *-lSM*) ;;
15336 *) LIBS="-lSM -lICE $LIBS" ;;
15337 esac
15341 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15342 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15343 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15344 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 /* confdefs.h. */
15349 _ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <netdb.h>
15355 main ()
15357 return h_errno;
15359 return 0;
15361 _ACEOF
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 emacs_cv_netdb_declares_h_errno=yes
15381 else
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 emacs_cv_netdb_declares_h_errno=no
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15392 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15393 if test $emacs_cv_netdb_declares_h_errno = yes; then
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_H_ERRNO 1
15397 _ACEOF
15401 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15402 # for constant arguments. Useless!
15403 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15404 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15405 if test "${ac_cv_working_alloca_h+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h. */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 #include <alloca.h>
15416 main ()
15418 char *p = (char *) alloca (2 * sizeof (int));
15419 if (p) return 0;
15421 return 0;
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext &&
15441 $as_test_x conftest$ac_exeext; then
15442 ac_cv_working_alloca_h=yes
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_cv_working_alloca_h=no
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15454 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15455 if test $ac_cv_working_alloca_h = yes; then
15457 cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_ALLOCA_H 1
15459 _ACEOF
15463 { echo "$as_me:$LINENO: checking for alloca" >&5
15464 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15465 if test "${ac_cv_func_alloca_works+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #ifdef __GNUC__
15475 # define alloca __builtin_alloca
15476 #else
15477 # ifdef _MSC_VER
15478 # include <malloc.h>
15479 # define alloca _alloca
15480 # else
15481 # ifdef HAVE_ALLOCA_H
15482 # include <alloca.h>
15483 # else
15484 # ifdef _AIX
15485 #pragma alloca
15486 # else
15487 # ifndef alloca /* predefined by HP cc +Olibcalls */
15488 char *alloca ();
15489 # endif
15490 # endif
15491 # endif
15492 # endif
15493 #endif
15496 main ()
15498 char *p = (char *) alloca (1);
15499 if (p) return 0;
15501 return 0;
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>conftest.er1
15512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest$ac_exeext &&
15521 $as_test_x conftest$ac_exeext; then
15522 ac_cv_func_alloca_works=yes
15523 else
15524 echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15527 ac_cv_func_alloca_works=no
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531 conftest$ac_exeext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15534 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15536 if test $ac_cv_func_alloca_works = yes; then
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_ALLOCA 1
15540 _ACEOF
15542 else
15543 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15544 # that cause trouble. Some versions do not even contain alloca or
15545 # contain a buggy version. If you still want to use their alloca,
15546 # use ar to extract alloca.o from them instead of compiling alloca.c.
15548 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15550 cat >>confdefs.h <<\_ACEOF
15551 #define C_ALLOCA 1
15552 _ACEOF
15555 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15556 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15557 if test "${ac_cv_os_cray+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 #if defined CRAY && ! defined CRAY2
15567 webecray
15568 #else
15569 wenotbecray
15570 #endif
15572 _ACEOF
15573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15574 $EGREP "webecray" >/dev/null 2>&1; then
15575 ac_cv_os_cray=yes
15576 else
15577 ac_cv_os_cray=no
15579 rm -f conftest*
15582 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15583 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15584 if test $ac_cv_os_cray = yes; then
15585 for ac_func in _getb67 GETB67 getb67; do
15586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15600 #define $ac_func innocuous_$ac_func
15602 /* System header to define __stub macros and hopefully few prototypes,
15603 which can conflict with char $ac_func (); below.
15604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15605 <limits.h> exists even on freestanding compilers. */
15607 #ifdef __STDC__
15608 # include <limits.h>
15609 #else
15610 # include <assert.h>
15611 #endif
15613 #undef $ac_func
15615 /* Override any GCC internal prototype to avoid an error.
15616 Use char because int might match the return type of a GCC
15617 builtin and then its argument prototype would still apply. */
15618 #ifdef __cplusplus
15619 extern "C"
15620 #endif
15621 char $ac_func ();
15622 /* The GNU C library defines this for functions which it implements
15623 to always fail with ENOSYS. Some functions are actually named
15624 something starting with __ and the normal name is an alias. */
15625 #if defined __stub_$ac_func || defined __stub___$ac_func
15626 choke me
15627 #endif
15630 main ()
15632 return $ac_func ();
15634 return 0;
15636 _ACEOF
15637 rm -f conftest.$ac_objext conftest$ac_exeext
15638 if { (ac_try="$ac_link"
15639 case "(($ac_try" in
15640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15641 *) ac_try_echo=$ac_try;;
15642 esac
15643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15644 (eval "$ac_link") 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && {
15651 test -z "$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15653 } && test -s conftest$ac_exeext &&
15654 $as_test_x conftest$ac_exeext; then
15655 eval "$as_ac_var=yes"
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 eval "$as_ac_var=no"
15663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15664 conftest$ac_exeext conftest.$ac_ext
15666 ac_res=`eval echo '${'$as_ac_var'}'`
15667 { echo "$as_me:$LINENO: result: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15669 if test `eval echo '${'$as_ac_var'}'` = yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define CRAY_STACKSEG_END $ac_func
15673 _ACEOF
15675 break
15678 done
15681 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15682 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15683 if test "${ac_cv_c_stack_direction+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686 if test "$cross_compiling" = yes; then
15687 ac_cv_c_stack_direction=0
15688 else
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h. */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 $ac_includes_default
15697 find_stack_direction ()
15699 static char *addr = 0;
15700 auto char dummy;
15701 if (addr == 0)
15703 addr = &dummy;
15704 return find_stack_direction ();
15706 else
15707 return (&dummy > addr) ? 1 : -1;
15711 main ()
15713 return find_stack_direction () < 0;
15715 _ACEOF
15716 rm -f conftest$ac_exeext
15717 if { (ac_try="$ac_link"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_link") 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15727 { (case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_try") 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_c_stack_direction=1
15737 else
15738 echo "$as_me: program exited with status $ac_status" >&5
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ( exit $ac_status )
15743 ac_cv_c_stack_direction=-1
15745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15750 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15751 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15753 cat >>confdefs.h <<_ACEOF
15754 #define STACK_DIRECTION $ac_cv_c_stack_direction
15755 _ACEOF
15761 if test x"$ac_cv_func_alloca_works" != xyes; then
15762 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15763 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15764 { (exit 1); exit 1; }; }
15767 # fmod, logb, and frexp are found in -lm on most systems.
15768 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15770 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15771 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15772 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 ac_check_lib_save_LIBS=$LIBS
15776 LIBS="-lm $LIBS"
15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h. */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15784 /* Override any GCC internal prototype to avoid an error.
15785 Use char because int might match the return type of a GCC
15786 builtin and then its argument prototype would still apply. */
15787 #ifdef __cplusplus
15788 extern "C"
15789 #endif
15790 char sqrt ();
15792 main ()
15794 return sqrt ();
15796 return 0;
15798 _ACEOF
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_link") 2>conftest.er1
15807 ac_status=$?
15808 grep -v '^ *+' conftest.er1 >conftest.err
15809 rm -f conftest.er1
15810 cat conftest.err >&5
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); } && {
15813 test -z "$ac_c_werror_flag" ||
15814 test ! -s conftest.err
15815 } && test -s conftest$ac_exeext &&
15816 $as_test_x conftest$ac_exeext; then
15817 ac_cv_lib_m_sqrt=yes
15818 else
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_cv_lib_m_sqrt=no
15825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15829 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15830 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15831 if test $ac_cv_lib_m_sqrt = yes; then
15832 cat >>confdefs.h <<_ACEOF
15833 #define HAVE_LIBM 1
15834 _ACEOF
15836 LIBS="-lm $LIBS"
15841 # Check for mail-locking functions in a "mail" library. Probably this should
15842 # have the same check as for liblockfile below.
15844 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15845 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15846 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849 ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lmail $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15858 /* Override any GCC internal prototype to avoid an error.
15859 Use char because int might match the return type of a GCC
15860 builtin and then its argument prototype would still apply. */
15861 #ifdef __cplusplus
15862 extern "C"
15863 #endif
15864 char maillock ();
15866 main ()
15868 return maillock ();
15870 return 0;
15872 _ACEOF
15873 rm -f conftest.$ac_objext conftest$ac_exeext
15874 if { (ac_try="$ac_link"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878 esac
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_link") 2>conftest.er1
15881 ac_status=$?
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest$ac_exeext &&
15890 $as_test_x conftest$ac_exeext; then
15891 ac_cv_lib_mail_maillock=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_cv_lib_mail_maillock=no
15899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15903 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15904 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15905 if test $ac_cv_lib_mail_maillock = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_LIBMAIL 1
15908 _ACEOF
15910 LIBS="-lmail $LIBS"
15915 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15916 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15917 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 else
15920 ac_check_lib_save_LIBS=$LIBS
15921 LIBS="-llockfile $LIBS"
15922 cat >conftest.$ac_ext <<_ACEOF
15923 /* confdefs.h. */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15929 /* Override any GCC internal prototype to avoid an error.
15930 Use char because int might match the return type of a GCC
15931 builtin and then its argument prototype would still apply. */
15932 #ifdef __cplusplus
15933 extern "C"
15934 #endif
15935 char maillock ();
15937 main ()
15939 return maillock ();
15941 return 0;
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } && {
15958 test -z "$ac_c_werror_flag" ||
15959 test ! -s conftest.err
15960 } && test -s conftest$ac_exeext &&
15961 $as_test_x conftest$ac_exeext; then
15962 ac_cv_lib_lockfile_maillock=yes
15963 else
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_cv_lib_lockfile_maillock=no
15970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_check_lib_save_LIBS
15974 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15975 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15976 if test $ac_cv_lib_lockfile_maillock = yes; then
15977 cat >>confdefs.h <<_ACEOF
15978 #define HAVE_LIBLOCKFILE 1
15979 _ACEOF
15981 LIBS="-llockfile $LIBS"
15985 # If we have the shared liblockfile, assume we must use it for mail
15986 # locking (e.g. Debian). If we couldn't link against liblockfile
15987 # (no liblockfile.a installed), ensure that we don't need to.
15988 if test "$ac_cv_lib_lockfile_maillock" = no; then
15989 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15990 set dummy liblockfile.so; ac_word=$2
15991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15993 if test "${ac_cv_prog_liblockfile+set}" = set; then
15994 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996 if test -n "$liblockfile"; then
15997 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15998 else
15999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16000 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16001 for as_dir in $as_dummy
16003 IFS=$as_save_IFS
16004 test -z "$as_dir" && as_dir=.
16005 for ac_exec_ext in '' $ac_executable_extensions; do
16006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16007 ac_cv_prog_liblockfile="yes"
16008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16009 break 2
16011 done
16012 done
16013 IFS=$as_save_IFS
16015 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16018 liblockfile=$ac_cv_prog_liblockfile
16019 if test -n "$liblockfile"; then
16020 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16021 echo "${ECHO_T}$liblockfile" >&6; }
16022 else
16023 { echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6; }
16028 if test $ac_cv_prog_liblockfile = yes; then
16029 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16030 This probably means that movemail could lose mail.
16031 There may be a \`development' package to install containing liblockfile." >&5
16032 echo "$as_me: error: Shared liblockfile found but can't link against it.
16033 This probably means that movemail could lose mail.
16034 There may be a \`development' package to install containing liblockfile." >&2;}
16035 { (exit 1); exit 1; }; }
16036 else :
16040 for ac_func in touchlock
16042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16056 #define $ac_func innocuous_$ac_func
16058 /* System header to define __stub macros and hopefully few prototypes,
16059 which can conflict with char $ac_func (); below.
16060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16061 <limits.h> exists even on freestanding compilers. */
16063 #ifdef __STDC__
16064 # include <limits.h>
16065 #else
16066 # include <assert.h>
16067 #endif
16069 #undef $ac_func
16071 /* Override any GCC internal prototype to avoid an error.
16072 Use char because int might match the return type of a GCC
16073 builtin and then its argument prototype would still apply. */
16074 #ifdef __cplusplus
16075 extern "C"
16076 #endif
16077 char $ac_func ();
16078 /* The GNU C library defines this for functions which it implements
16079 to always fail with ENOSYS. Some functions are actually named
16080 something starting with __ and the normal name is an alias. */
16081 #if defined __stub_$ac_func || defined __stub___$ac_func
16082 choke me
16083 #endif
16086 main ()
16088 return $ac_func ();
16090 return 0;
16092 _ACEOF
16093 rm -f conftest.$ac_objext conftest$ac_exeext
16094 if { (ac_try="$ac_link"
16095 case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098 esac
16099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_link") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest$ac_exeext &&
16110 $as_test_x conftest$ac_exeext; then
16111 eval "$as_ac_var=yes"
16112 else
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16116 eval "$as_ac_var=no"
16119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16120 conftest$ac_exeext conftest.$ac_ext
16122 ac_res=`eval echo '${'$as_ac_var'}'`
16123 { echo "$as_me:$LINENO: result: $ac_res" >&5
16124 echo "${ECHO_T}$ac_res" >&6; }
16125 if test `eval echo '${'$as_ac_var'}'` = yes; then
16126 cat >>confdefs.h <<_ACEOF
16127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16128 _ACEOF
16131 done
16134 for ac_header in maillock.h
16136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_res=`eval echo '${'$as_ac_Header'}'`
16144 { echo "$as_me:$LINENO: result: $ac_res" >&5
16145 echo "${ECHO_T}$ac_res" >&6; }
16146 else
16147 # Is the header compilable?
16148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 $ac_includes_default
16157 #include <$ac_header>
16158 _ACEOF
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164 esac
16165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_compile") 2>conftest.er1
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } && {
16173 test -z "$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 } && test -s conftest.$ac_objext; then
16176 ac_header_compiler=yes
16177 else
16178 echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_compiler=no
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <$ac_header>
16198 _ACEOF
16199 if { (ac_try="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } >/dev/null && {
16212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 }; then
16215 ac_header_preproc=yes
16216 else
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_preproc=no
16223 rm -f conftest.err conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16225 echo "${ECHO_T}$ac_header_preproc" >&6; }
16227 # So? What about this header?
16228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16229 yes:no: )
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16234 ac_header_preproc=yes
16236 no:yes:* )
16237 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16239 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16240 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16241 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16243 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16244 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16251 esac
16252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 eval "$as_ac_Header=\$ac_header_preproc"
16259 ac_res=`eval echo '${'$as_ac_Header'}'`
16260 { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265 cat >>confdefs.h <<_ACEOF
16266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16267 _ACEOF
16271 done
16345 for ac_func in gethostname getdomainname dup2 \
16346 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16347 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16348 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16349 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16350 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16351 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16352 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16353 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16354 cfmakeraw cfsetspeed
16356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h. */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16370 #define $ac_func innocuous_$ac_func
16372 /* System header to define __stub macros and hopefully few prototypes,
16373 which can conflict with char $ac_func (); below.
16374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375 <limits.h> exists even on freestanding compilers. */
16377 #ifdef __STDC__
16378 # include <limits.h>
16379 #else
16380 # include <assert.h>
16381 #endif
16383 #undef $ac_func
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16388 #ifdef __cplusplus
16389 extern "C"
16390 #endif
16391 char $ac_func ();
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined __stub_$ac_func || defined __stub___$ac_func
16396 choke me
16397 #endif
16400 main ()
16402 return $ac_func ();
16404 return 0;
16406 _ACEOF
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest$ac_exeext &&
16424 $as_test_x conftest$ac_exeext; then
16425 eval "$as_ac_var=yes"
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 eval "$as_ac_var=no"
16433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16434 conftest$ac_exeext conftest.$ac_ext
16436 ac_res=`eval echo '${'$as_ac_var'}'`
16437 { echo "$as_me:$LINENO: result: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16439 if test `eval echo '${'$as_ac_var'}'` = yes; then
16440 cat >>confdefs.h <<_ACEOF
16441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16442 _ACEOF
16445 done
16449 for ac_header in sys/un.h
16451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 ac_res=`eval echo '${'$as_ac_Header'}'`
16459 { echo "$as_me:$LINENO: result: $ac_res" >&5
16460 echo "${ECHO_T}$ac_res" >&6; }
16461 else
16462 # Is the header compilable?
16463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16465 cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h. */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 $ac_includes_default
16472 #include <$ac_header>
16473 _ACEOF
16474 rm -f conftest.$ac_objext
16475 if { (ac_try="$ac_compile"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_compile") 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } && {
16488 test -z "$ac_c_werror_flag" ||
16489 test ! -s conftest.err
16490 } && test -s conftest.$ac_objext; then
16491 ac_header_compiler=yes
16492 else
16493 echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_header_compiler=no
16499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16501 echo "${ECHO_T}$ac_header_compiler" >&6; }
16503 # Is the header present?
16504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16507 /* confdefs.h. */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 #include <$ac_header>
16513 _ACEOF
16514 if { (ac_try="$ac_cpp conftest.$ac_ext"
16515 case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16521 ac_status=$?
16522 grep -v '^ *+' conftest.er1 >conftest.err
16523 rm -f conftest.er1
16524 cat conftest.err >&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } >/dev/null && {
16527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16528 test ! -s conftest.err
16529 }; then
16530 ac_header_preproc=yes
16531 else
16532 echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_header_preproc=no
16538 rm -f conftest.err conftest.$ac_ext
16539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16540 echo "${ECHO_T}$ac_header_preproc" >&6; }
16542 # So? What about this header?
16543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16544 yes:no: )
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16549 ac_header_preproc=yes
16551 no:yes:* )
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16566 esac
16567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572 eval "$as_ac_Header=\$ac_header_preproc"
16574 ac_res=`eval echo '${'$as_ac_Header'}'`
16575 { echo "$as_me:$LINENO: result: $ac_res" >&5
16576 echo "${ECHO_T}$ac_res" >&6; }
16579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16580 cat >>confdefs.h <<_ACEOF
16581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16582 _ACEOF
16586 done
16593 for ac_header in $ac_header_list
16595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16605 else
16606 # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16616 #include <$ac_header>
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623 esac
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } && {
16632 test -z "$ac_c_werror_flag" ||
16633 test ! -s conftest.err
16634 } && test -s conftest.$ac_objext; then
16635 ac_header_compiler=yes
16636 else
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16640 ac_header_compiler=no
16643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16645 echo "${ECHO_T}$ac_header_compiler" >&6; }
16647 # Is the header present?
16648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h. */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 #include <$ac_header>
16657 _ACEOF
16658 if { (ac_try="$ac_cpp conftest.$ac_ext"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } >/dev/null && {
16671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 }; then
16674 ac_header_preproc=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_header_preproc=no
16682 rm -f conftest.err conftest.$ac_ext
16683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16684 echo "${ECHO_T}$ac_header_preproc" >&6; }
16686 # So? What about this header?
16687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16688 yes:no: )
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16693 ac_header_preproc=yes
16695 no:yes:* )
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16710 esac
16711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 else
16716 eval "$as_ac_Header=\$ac_header_preproc"
16718 ac_res=`eval echo '${'$as_ac_Header'}'`
16719 { echo "$as_me:$LINENO: result: $ac_res" >&5
16720 echo "${ECHO_T}$ac_res" >&6; }
16723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16726 _ACEOF
16730 done
16740 for ac_func in $ac_func_list
16742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16756 #define $ac_func innocuous_$ac_func
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char $ac_func (); below.
16760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761 <limits.h> exists even on freestanding compilers. */
16763 #ifdef __STDC__
16764 # include <limits.h>
16765 #else
16766 # include <assert.h>
16767 #endif
16769 #undef $ac_func
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 char $ac_func ();
16778 /* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
16781 #if defined __stub_$ac_func || defined __stub___$ac_func
16782 choke me
16783 #endif
16786 main ()
16788 return $ac_func ();
16790 return 0;
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (ac_try="$ac_link"
16795 case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_link") 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest$ac_exeext &&
16810 $as_test_x conftest$ac_exeext; then
16811 eval "$as_ac_var=yes"
16812 else
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 eval "$as_ac_var=no"
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16822 ac_res=`eval echo '${'$as_ac_var'}'`
16823 { echo "$as_me:$LINENO: result: $ac_res" >&5
16824 echo "${ECHO_T}$ac_res" >&6; }
16825 if test `eval echo '${'$as_ac_var'}'` = yes; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16828 _ACEOF
16831 done
16849 { echo "$as_me:$LINENO: checking for working mktime" >&5
16850 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16851 if test "${ac_cv_func_working_mktime+set}" = set; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854 if test "$cross_compiling" = yes; then
16855 ac_cv_func_working_mktime=no
16856 else
16857 cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863 /* Test program from Paul Eggert and Tony Leneis. */
16864 #ifdef TIME_WITH_SYS_TIME
16865 # include <sys/time.h>
16866 # include <time.h>
16867 #else
16868 # ifdef HAVE_SYS_TIME_H
16869 # include <sys/time.h>
16870 # else
16871 # include <time.h>
16872 # endif
16873 #endif
16875 #include <limits.h>
16876 #include <stdlib.h>
16878 #ifdef HAVE_UNISTD_H
16879 # include <unistd.h>
16880 #endif
16882 #ifndef HAVE_ALARM
16883 # define alarm(X) /* empty */
16884 #endif
16886 /* Work around redefinition to rpl_putenv by other config tests. */
16887 #undef putenv
16889 static time_t time_t_max;
16890 static time_t time_t_min;
16892 /* Values we'll use to set the TZ environment variable. */
16893 static char *tz_strings[] = {
16894 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16895 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16897 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16899 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16900 Based on a problem report from Andreas Jaeger. */
16901 static int
16902 spring_forward_gap ()
16904 /* glibc (up to about 1998-10-07) failed this test. */
16905 struct tm tm;
16907 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16908 instead of "TZ=America/Vancouver" in order to detect the bug even
16909 on systems that don't support the Olson extension, or don't have the
16910 full zoneinfo tables installed. */
16911 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16913 tm.tm_year = 98;
16914 tm.tm_mon = 3;
16915 tm.tm_mday = 5;
16916 tm.tm_hour = 2;
16917 tm.tm_min = 0;
16918 tm.tm_sec = 0;
16919 tm.tm_isdst = -1;
16920 return mktime (&tm) != (time_t) -1;
16923 static int
16924 mktime_test1 (now)
16925 time_t now;
16927 struct tm *lt;
16928 return ! (lt = localtime (&now)) || mktime (lt) == now;
16931 static int
16932 mktime_test (now)
16933 time_t now;
16935 return (mktime_test1 (now)
16936 && mktime_test1 ((time_t) (time_t_max - now))
16937 && mktime_test1 ((time_t) (time_t_min + now)));
16940 static int
16941 irix_6_4_bug ()
16943 /* Based on code from Ariel Faigon. */
16944 struct tm tm;
16945 tm.tm_year = 96;
16946 tm.tm_mon = 3;
16947 tm.tm_mday = 0;
16948 tm.tm_hour = 0;
16949 tm.tm_min = 0;
16950 tm.tm_sec = 0;
16951 tm.tm_isdst = -1;
16952 mktime (&tm);
16953 return tm.tm_mon == 2 && tm.tm_mday == 31;
16956 static int
16957 bigtime_test (j)
16958 int j;
16960 struct tm tm;
16961 time_t now;
16962 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16963 now = mktime (&tm);
16964 if (now != (time_t) -1)
16966 struct tm *lt = localtime (&now);
16967 if (! (lt
16968 && lt->tm_year == tm.tm_year
16969 && lt->tm_mon == tm.tm_mon
16970 && lt->tm_mday == tm.tm_mday
16971 && lt->tm_hour == tm.tm_hour
16972 && lt->tm_min == tm.tm_min
16973 && lt->tm_sec == tm.tm_sec
16974 && lt->tm_yday == tm.tm_yday
16975 && lt->tm_wday == tm.tm_wday
16976 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16977 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16978 return 0;
16980 return 1;
16983 static int
16984 year_2050_test ()
16986 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16987 ignoring leap seconds. */
16988 unsigned long int answer = 2527315200UL;
16990 struct tm tm;
16991 time_t t;
16992 tm.tm_year = 2050 - 1900;
16993 tm.tm_mon = 2 - 1;
16994 tm.tm_mday = 1;
16995 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16996 tm.tm_isdst = -1;
16998 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16999 instead of "TZ=America/Vancouver" in order to detect the bug even
17000 on systems that don't support the Olson extension, or don't have the
17001 full zoneinfo tables installed. */
17002 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17004 t = mktime (&tm);
17006 /* Check that the result is either a failure, or close enough
17007 to the correct answer that we can assume the discrepancy is
17008 due to leap seconds. */
17009 return (t == (time_t) -1
17010 || (0 < t && answer - 120 <= t && t <= answer + 120));
17014 main ()
17016 time_t t, delta;
17017 int i, j;
17019 /* This test makes some buggy mktime implementations loop.
17020 Give up after 60 seconds; a mktime slower than that
17021 isn't worth using anyway. */
17022 alarm (60);
17024 for (;;)
17026 t = (time_t_max << 1) + 1;
17027 if (t <= time_t_max)
17028 break;
17029 time_t_max = t;
17031 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17033 delta = time_t_max / 997; /* a suitable prime number */
17034 for (i = 0; i < N_STRINGS; i++)
17036 if (tz_strings[i])
17037 putenv (tz_strings[i]);
17039 for (t = 0; t <= time_t_max - delta; t += delta)
17040 if (! mktime_test (t))
17041 return 1;
17042 if (! (mktime_test ((time_t) 1)
17043 && mktime_test ((time_t) (60 * 60))
17044 && mktime_test ((time_t) (60 * 60 * 24))))
17045 return 1;
17047 for (j = 1; ; j <<= 1)
17048 if (! bigtime_test (j))
17049 return 1;
17050 else if (INT_MAX / 2 < j)
17051 break;
17052 if (! bigtime_test (INT_MAX))
17053 return 1;
17055 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17057 _ACEOF
17058 rm -f conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17069 { (case "(($ac_try" in
17070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17071 *) ac_try_echo=$ac_try;;
17072 esac
17073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17074 (eval "$ac_try") 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
17078 ac_cv_func_working_mktime=yes
17079 else
17080 echo "$as_me: program exited with status $ac_status" >&5
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ( exit $ac_status )
17085 ac_cv_func_working_mktime=no
17087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17092 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17093 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17094 if test $ac_cv_func_working_mktime = no; then
17095 case " $LIBOBJS " in
17096 *" mktime.$ac_objext "* ) ;;
17097 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17099 esac
17103 if test "$ac_cv_func_working_mktime" = no; then
17105 cat >>confdefs.h <<\_ACEOF
17106 #define BROKEN_MKTIME 1
17107 _ACEOF
17111 ac_have_func=no # yes means we've found a way to get the load average.
17113 # Make sure getloadavg.c is where it belongs, at configure-time.
17114 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17115 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17116 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17117 { (exit 1); exit 1; }; }
17119 ac_save_LIBS=$LIBS
17121 # Check for getloadavg, but be sure not to touch the cache variable.
17122 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17123 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17124 if test "${ac_cv_func_getloadavg+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17135 #define getloadavg innocuous_getloadavg
17137 /* System header to define __stub macros and hopefully few prototypes,
17138 which can conflict with char getloadavg (); below.
17139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17140 <limits.h> exists even on freestanding compilers. */
17142 #ifdef __STDC__
17143 # include <limits.h>
17144 #else
17145 # include <assert.h>
17146 #endif
17148 #undef getloadavg
17150 /* Override any GCC internal prototype to avoid an error.
17151 Use char because int might match the return type of a GCC
17152 builtin and then its argument prototype would still apply. */
17153 #ifdef __cplusplus
17154 extern "C"
17155 #endif
17156 char getloadavg ();
17157 /* The GNU C library defines this for functions which it implements
17158 to always fail with ENOSYS. Some functions are actually named
17159 something starting with __ and the normal name is an alias. */
17160 #if defined __stub_getloadavg || defined __stub___getloadavg
17161 choke me
17162 #endif
17165 main ()
17167 return getloadavg ();
17169 return 0;
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>conftest.er1
17180 ac_status=$?
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest$ac_exeext &&
17189 $as_test_x conftest$ac_exeext; then
17190 ac_cv_func_getloadavg=yes
17191 else
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_cv_func_getloadavg=no
17198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17199 conftest$ac_exeext conftest.$ac_ext
17201 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17202 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17203 if test $ac_cv_func_getloadavg = yes; then
17204 exit 0
17205 else
17206 exit 1
17208 ) && ac_have_func=yes
17210 # On HPUX9, an unprivileged user can get load averages through this function.
17212 for ac_func in pstat_getdynamic
17214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228 #define $ac_func innocuous_$ac_func
17230 /* System header to define __stub macros and hopefully few prototypes,
17231 which can conflict with char $ac_func (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
17235 #ifdef __STDC__
17236 # include <limits.h>
17237 #else
17238 # include <assert.h>
17239 #endif
17241 #undef $ac_func
17243 /* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
17246 #ifdef __cplusplus
17247 extern "C"
17248 #endif
17249 char $ac_func ();
17250 /* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
17253 #if defined __stub_$ac_func || defined __stub___$ac_func
17254 choke me
17255 #endif
17258 main ()
17260 return $ac_func ();
17262 return 0;
17264 _ACEOF
17265 rm -f conftest.$ac_objext conftest$ac_exeext
17266 if { (ac_try="$ac_link"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270 esac
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest$ac_exeext &&
17282 $as_test_x conftest$ac_exeext; then
17283 eval "$as_ac_var=yes"
17284 else
17285 echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 eval "$as_ac_var=no"
17291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17292 conftest$ac_exeext conftest.$ac_ext
17294 ac_res=`eval echo '${'$as_ac_var'}'`
17295 { echo "$as_me:$LINENO: result: $ac_res" >&5
17296 echo "${ECHO_T}$ac_res" >&6; }
17297 if test `eval echo '${'$as_ac_var'}'` = yes; then
17298 cat >>confdefs.h <<_ACEOF
17299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17300 _ACEOF
17303 done
17306 # Solaris has libkstat which does not require root.
17308 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17309 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17310 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lkstat $LIBS"
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char kstat_open ();
17330 main ()
17332 return kstat_open ();
17334 return 0;
17336 _ACEOF
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (ac_try="$ac_link"
17339 case "(($ac_try" in
17340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17341 *) ac_try_echo=$ac_try;;
17342 esac
17343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17344 (eval "$ac_link") 2>conftest.er1
17345 ac_status=$?
17346 grep -v '^ *+' conftest.er1 >conftest.err
17347 rm -f conftest.er1
17348 cat conftest.err >&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && {
17351 test -z "$ac_c_werror_flag" ||
17352 test ! -s conftest.err
17353 } && test -s conftest$ac_exeext &&
17354 $as_test_x conftest$ac_exeext; then
17355 ac_cv_lib_kstat_kstat_open=yes
17356 else
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_cv_lib_kstat_kstat_open=no
17363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17364 conftest$ac_exeext conftest.$ac_ext
17365 LIBS=$ac_check_lib_save_LIBS
17367 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17368 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17369 if test $ac_cv_lib_kstat_kstat_open = yes; then
17370 cat >>confdefs.h <<_ACEOF
17371 #define HAVE_LIBKSTAT 1
17372 _ACEOF
17374 LIBS="-lkstat $LIBS"
17378 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17380 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17381 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17382 # to get the right answer into the cache.
17383 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17384 if test $ac_have_func = no; then
17385 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17386 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17387 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17388 echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390 ac_check_lib_save_LIBS=$LIBS
17391 LIBS="-lelf $LIBS"
17392 cat >conftest.$ac_ext <<_ACEOF
17393 /* confdefs.h. */
17394 _ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17402 #ifdef __cplusplus
17403 extern "C"
17404 #endif
17405 char elf_begin ();
17407 main ()
17409 return elf_begin ();
17411 return 0;
17413 _ACEOF
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_link") 2>conftest.er1
17422 ac_status=$?
17423 grep -v '^ *+' conftest.er1 >conftest.err
17424 rm -f conftest.er1
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext &&
17431 $as_test_x conftest$ac_exeext; then
17432 ac_cv_lib_elf_elf_begin=yes
17433 else
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_lib_elf_elf_begin=no
17440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17445 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17446 if test $ac_cv_lib_elf_elf_begin = yes; then
17447 LIBS="-lelf $LIBS"
17451 if test $ac_have_func = no; then
17452 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17453 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17454 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 else
17457 ac_check_lib_save_LIBS=$LIBS
17458 LIBS="-lkvm $LIBS"
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char kvm_open ();
17474 main ()
17476 return kvm_open ();
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest$ac_exeext &&
17498 $as_test_x conftest$ac_exeext; then
17499 ac_cv_lib_kvm_kvm_open=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_cv_lib_kvm_kvm_open=no
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LIBS=$ac_check_lib_save_LIBS
17511 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17512 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17513 if test $ac_cv_lib_kvm_kvm_open = yes; then
17514 LIBS="-lkvm $LIBS"
17517 # Check for the 4.4BSD definition of getloadavg.
17518 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17519 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17520 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523 ac_check_lib_save_LIBS=$LIBS
17524 LIBS="-lutil $LIBS"
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17532 /* Override any GCC internal prototype to avoid an error.
17533 Use char because int might match the return type of a GCC
17534 builtin and then its argument prototype would still apply. */
17535 #ifdef __cplusplus
17536 extern "C"
17537 #endif
17538 char getloadavg ();
17540 main ()
17542 return getloadavg ();
17544 return 0;
17546 _ACEOF
17547 rm -f conftest.$ac_objext conftest$ac_exeext
17548 if { (ac_try="$ac_link"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17552 esac
17553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_link") 2>conftest.er1
17555 ac_status=$?
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } && {
17561 test -z "$ac_c_werror_flag" ||
17562 test ! -s conftest.err
17563 } && test -s conftest$ac_exeext &&
17564 $as_test_x conftest$ac_exeext; then
17565 ac_cv_lib_util_getloadavg=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_lib_util_getloadavg=no
17573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS
17577 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17578 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17579 if test $ac_cv_lib_util_getloadavg = yes; then
17580 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17585 if test $ac_have_func = no; then
17586 # There is a commonly available library for RS/6000 AIX.
17587 # Since it is not a standard part of AIX, it might be installed locally.
17588 ac_getloadavg_LIBS=$LIBS
17589 LIBS="-L/usr/local/lib $LIBS"
17590 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17591 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17592 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595 ac_check_lib_save_LIBS=$LIBS
17596 LIBS="-lgetloadavg $LIBS"
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17607 #ifdef __cplusplus
17608 extern "C"
17609 #endif
17610 char getloadavg ();
17612 main ()
17614 return getloadavg ();
17616 return 0;
17618 _ACEOF
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_link") 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest$ac_exeext &&
17636 $as_test_x conftest$ac_exeext; then
17637 ac_cv_lib_getloadavg_getloadavg=yes
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_lib_getloadavg_getloadavg=no
17645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17646 conftest$ac_exeext conftest.$ac_ext
17647 LIBS=$ac_check_lib_save_LIBS
17649 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17650 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17651 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17652 LIBS="-lgetloadavg $LIBS"
17653 else
17654 LIBS=$ac_getloadavg_LIBS
17659 # Make sure it is really in the library, if we think we found it,
17660 # otherwise set up the replacement function.
17662 for ac_func in getloadavg
17664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h. */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h. */
17676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17678 #define $ac_func innocuous_$ac_func
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func (); below.
17682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683 <limits.h> exists even on freestanding compilers. */
17685 #ifdef __STDC__
17686 # include <limits.h>
17687 #else
17688 # include <assert.h>
17689 #endif
17691 #undef $ac_func
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 char $ac_func ();
17700 /* The GNU C library defines this for functions which it implements
17701 to always fail with ENOSYS. Some functions are actually named
17702 something starting with __ and the normal name is an alias. */
17703 #if defined __stub_$ac_func || defined __stub___$ac_func
17704 choke me
17705 #endif
17708 main ()
17710 return $ac_func ();
17712 return 0;
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_link") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest$ac_exeext &&
17732 $as_test_x conftest$ac_exeext; then
17733 eval "$as_ac_var=yes"
17734 else
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 eval "$as_ac_var=no"
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17744 ac_res=`eval echo '${'$as_ac_var'}'`
17745 { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17747 if test `eval echo '${'$as_ac_var'}'` = yes; then
17748 cat >>confdefs.h <<_ACEOF
17749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17750 _ACEOF
17752 else
17753 case " $LIBOBJS " in
17754 *" getloadavg.$ac_objext "* ) ;;
17755 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17757 esac
17760 cat >>confdefs.h <<\_ACEOF
17761 #define C_GETLOADAVG 1
17762 _ACEOF
17764 # Figure out what our getloadavg.c needs.
17765 ac_have_func=no
17766 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17767 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17768 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17769 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17774 else
17775 # Is the header compilable?
17776 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17777 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17778 cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h. */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 $ac_includes_default
17785 #include <sys/dg_sys_info.h>
17786 _ACEOF
17787 rm -f conftest.$ac_objext
17788 if { (ac_try="$ac_compile"
17789 case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17792 esac
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_compile") 2>conftest.er1
17795 ac_status=$?
17796 grep -v '^ *+' conftest.er1 >conftest.err
17797 rm -f conftest.er1
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } && {
17801 test -z "$ac_c_werror_flag" ||
17802 test ! -s conftest.err
17803 } && test -s conftest.$ac_objext; then
17804 ac_header_compiler=yes
17805 else
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17809 ac_header_compiler=no
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17814 echo "${ECHO_T}$ac_header_compiler" >&6; }
17816 # Is the header present?
17817 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17818 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17819 cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h. */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17825 #include <sys/dg_sys_info.h>
17826 _ACEOF
17827 if { (ac_try="$ac_cpp conftest.$ac_ext"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } >/dev/null && {
17840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17842 }; then
17843 ac_header_preproc=yes
17844 else
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 ac_header_preproc=no
17851 rm -f conftest.err conftest.$ac_ext
17852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17853 echo "${ECHO_T}$ac_header_preproc" >&6; }
17855 # So? What about this header?
17856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17857 yes:no: )
17858 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17859 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17861 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17862 ac_header_preproc=yes
17864 no:yes:* )
17865 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17866 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17867 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17868 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17869 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17870 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17871 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17872 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17873 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17874 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17875 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17876 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17879 esac
17880 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17881 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17884 else
17885 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17887 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17891 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17892 ac_have_func=yes
17894 cat >>confdefs.h <<\_ACEOF
17895 #define DGUX 1
17896 _ACEOF
17899 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17900 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17901 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 ac_check_lib_save_LIBS=$LIBS
17905 LIBS="-ldgc $LIBS"
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17916 #ifdef __cplusplus
17917 extern "C"
17918 #endif
17919 char dg_sys_info ();
17921 main ()
17923 return dg_sys_info ();
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_link") 2>conftest.er1
17936 ac_status=$?
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } && {
17942 test -z "$ac_c_werror_flag" ||
17943 test ! -s conftest.err
17944 } && test -s conftest$ac_exeext &&
17945 $as_test_x conftest$ac_exeext; then
17946 ac_cv_lib_dgc_dg_sys_info=yes
17947 else
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17951 ac_cv_lib_dgc_dg_sys_info=no
17954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17955 conftest$ac_exeext conftest.$ac_ext
17956 LIBS=$ac_check_lib_save_LIBS
17958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17959 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17960 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17961 cat >>confdefs.h <<_ACEOF
17962 #define HAVE_LIBDGC 1
17963 _ACEOF
17965 LIBS="-ldgc $LIBS"
17973 if test "${ac_cv_header_locale_h+set}" = set; then
17974 { echo "$as_me:$LINENO: checking for locale.h" >&5
17975 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17976 if test "${ac_cv_header_locale_h+set}" = set; then
17977 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17980 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17981 else
17982 # Is the header compilable?
17983 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17984 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 $ac_includes_default
17992 #include <locale.h>
17993 _ACEOF
17994 rm -f conftest.$ac_objext
17995 if { (ac_try="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_header_compiler=yes
18012 else
18013 echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_header_compiler=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18021 echo "${ECHO_T}$ac_header_compiler" >&6; }
18023 # Is the header present?
18024 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18025 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <locale.h>
18033 _ACEOF
18034 if { (ac_try="$ac_cpp conftest.$ac_ext"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18041 ac_status=$?
18042 grep -v '^ *+' conftest.er1 >conftest.err
18043 rm -f conftest.er1
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } >/dev/null && {
18047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18049 }; then
18050 ac_header_preproc=yes
18051 else
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_header_preproc=no
18058 rm -f conftest.err conftest.$ac_ext
18059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18060 echo "${ECHO_T}$ac_header_preproc" >&6; }
18062 # So? What about this header?
18063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18064 yes:no: )
18065 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18066 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18067 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18068 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18069 ac_header_preproc=yes
18071 no:yes:* )
18072 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18073 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18075 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18076 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18077 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18078 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18079 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18080 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18081 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18083 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18086 esac
18087 { echo "$as_me:$LINENO: checking for locale.h" >&5
18088 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18089 if test "${ac_cv_header_locale_h+set}" = set; then
18090 echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092 ac_cv_header_locale_h=$ac_header_preproc
18094 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18095 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18101 for ac_func in setlocale
18103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 cat >conftest.$ac_ext <<_ACEOF
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18117 #define $ac_func innocuous_$ac_func
18119 /* System header to define __stub macros and hopefully few prototypes,
18120 which can conflict with char $ac_func (); below.
18121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18122 <limits.h> exists even on freestanding compilers. */
18124 #ifdef __STDC__
18125 # include <limits.h>
18126 #else
18127 # include <assert.h>
18128 #endif
18130 #undef $ac_func
18132 /* Override any GCC internal prototype to avoid an error.
18133 Use char because int might match the return type of a GCC
18134 builtin and then its argument prototype would still apply. */
18135 #ifdef __cplusplus
18136 extern "C"
18137 #endif
18138 char $ac_func ();
18139 /* The GNU C library defines this for functions which it implements
18140 to always fail with ENOSYS. Some functions are actually named
18141 something starting with __ and the normal name is an alias. */
18142 #if defined __stub_$ac_func || defined __stub___$ac_func
18143 choke me
18144 #endif
18147 main ()
18149 return $ac_func ();
18151 return 0;
18153 _ACEOF
18154 rm -f conftest.$ac_objext conftest$ac_exeext
18155 if { (ac_try="$ac_link"
18156 case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_link") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest$ac_exeext &&
18171 $as_test_x conftest$ac_exeext; then
18172 eval "$as_ac_var=yes"
18173 else
18174 echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 eval "$as_ac_var=no"
18180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18183 ac_res=`eval echo '${'$as_ac_var'}'`
18184 { echo "$as_me:$LINENO: result: $ac_res" >&5
18185 echo "${ECHO_T}$ac_res" >&6; }
18186 if test `eval echo '${'$as_ac_var'}'` = yes; then
18187 cat >>confdefs.h <<_ACEOF
18188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18189 _ACEOF
18192 done
18195 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18196 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18197 # Irix 4.0.5F has the header but not the library.
18198 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18199 ac_have_func=yes
18201 cat >>confdefs.h <<\_ACEOF
18202 #define SVR4 1
18203 _ACEOF
18207 if test $ac_have_func = no; then
18208 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18209 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18210 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18211 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18215 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18216 else
18217 # Is the header compilable?
18218 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18219 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 $ac_includes_default
18227 #include <inq_stats/cpustats.h>
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (ac_try="$ac_compile"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_compile") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest.$ac_objext; then
18246 ac_header_compiler=yes
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18251 ac_header_compiler=no
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18256 echo "${ECHO_T}$ac_header_compiler" >&6; }
18258 # Is the header present?
18259 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18260 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 #include <inq_stats/cpustats.h>
18268 _ACEOF
18269 if { (ac_try="$ac_cpp conftest.$ac_ext"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } >/dev/null && {
18282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 }; then
18285 ac_header_preproc=yes
18286 else
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18290 ac_header_preproc=no
18293 rm -f conftest.err conftest.$ac_ext
18294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18295 echo "${ECHO_T}$ac_header_preproc" >&6; }
18297 # So? What about this header?
18298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18299 yes:no: )
18300 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18301 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18302 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18303 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18304 ac_header_preproc=yes
18306 no:yes:* )
18307 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18308 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18309 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18310 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18311 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18312 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18313 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18314 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18315 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18316 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18317 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18318 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18321 esac
18322 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18323 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18324 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
18326 else
18327 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18329 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18330 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18333 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18334 ac_have_func=yes
18336 cat >>confdefs.h <<\_ACEOF
18337 #define UMAX 1
18338 _ACEOF
18341 cat >>confdefs.h <<\_ACEOF
18342 #define UMAX4_3 1
18343 _ACEOF
18350 if test $ac_have_func = no; then
18351 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18352 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18353 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18354 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18355 echo $ECHO_N "(cached) $ECHO_C" >&6
18357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18358 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18359 else
18360 # Is the header compilable?
18361 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18362 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h. */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 $ac_includes_default
18370 #include <sys/cpustats.h>
18371 _ACEOF
18372 rm -f conftest.$ac_objext
18373 if { (ac_try="$ac_compile"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_compile") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } && {
18386 test -z "$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 } && test -s conftest.$ac_objext; then
18389 ac_header_compiler=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_header_compiler=no
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18399 echo "${ECHO_T}$ac_header_compiler" >&6; }
18401 # Is the header present?
18402 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18403 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 #include <sys/cpustats.h>
18411 _ACEOF
18412 if { (ac_try="$ac_cpp conftest.$ac_ext"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } >/dev/null && {
18425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 }; then
18428 ac_header_preproc=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18433 ac_header_preproc=no
18436 rm -f conftest.err conftest.$ac_ext
18437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18438 echo "${ECHO_T}$ac_header_preproc" >&6; }
18440 # So? What about this header?
18441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18442 yes:no: )
18443 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18444 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18445 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18446 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18447 ac_header_preproc=yes
18449 no:yes:* )
18450 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18451 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18452 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18453 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18454 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18455 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18456 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18457 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18458 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18459 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18460 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18461 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18464 esac
18465 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18466 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18467 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18469 else
18470 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18472 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18473 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18476 if test $ac_cv_header_sys_cpustats_h = yes; then
18477 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18478 #define UMAX 1
18479 _ACEOF
18486 if test $ac_have_func = no; then
18488 for ac_header in mach/mach.h
18490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 ac_res=`eval echo '${'$as_ac_Header'}'`
18498 { echo "$as_me:$LINENO: result: $ac_res" >&5
18499 echo "${ECHO_T}$ac_res" >&6; }
18500 else
18501 # Is the header compilable?
18502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18504 cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h. */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h. */
18510 $ac_includes_default
18511 #include <$ac_header>
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (ac_try="$ac_compile"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_compile") 2>conftest.er1
18521 ac_status=$?
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } && {
18527 test -z "$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 } && test -s conftest.$ac_objext; then
18530 ac_header_compiler=yes
18531 else
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 ac_header_compiler=no
18538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18540 echo "${ECHO_T}$ac_header_compiler" >&6; }
18542 # Is the header present?
18543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 #include <$ac_header>
18552 _ACEOF
18553 if { (ac_try="$ac_cpp conftest.$ac_ext"
18554 case "(($ac_try" in
18555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556 *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18560 ac_status=$?
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } >/dev/null && {
18566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18568 }; then
18569 ac_header_preproc=yes
18570 else
18571 echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_header_preproc=no
18577 rm -f conftest.err conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18579 echo "${ECHO_T}$ac_header_preproc" >&6; }
18581 # So? What about this header?
18582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18583 yes:no: )
18584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18588 ac_header_preproc=yes
18590 no:yes:* )
18591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18605 esac
18606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 else
18611 eval "$as_ac_Header=\$ac_header_preproc"
18613 ac_res=`eval echo '${'$as_ac_Header'}'`
18614 { echo "$as_me:$LINENO: result: $ac_res" >&5
18615 echo "${ECHO_T}$ac_res" >&6; }
18618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18619 cat >>confdefs.h <<_ACEOF
18620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18621 _ACEOF
18625 done
18630 for ac_header in nlist.h
18632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 ac_res=`eval echo '${'$as_ac_Header'}'`
18640 { echo "$as_me:$LINENO: result: $ac_res" >&5
18641 echo "${ECHO_T}$ac_res" >&6; }
18642 else
18643 # Is the header compilable?
18644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h. */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18652 $ac_includes_default
18653 #include <$ac_header>
18654 _ACEOF
18655 rm -f conftest.$ac_objext
18656 if { (ac_try="$ac_compile"
18657 case "(($ac_try" in
18658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18659 *) ac_try_echo=$ac_try;;
18660 esac
18661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18662 (eval "$ac_compile") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest.$ac_objext; then
18672 ac_header_compiler=yes
18673 else
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 ac_header_compiler=no
18680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18682 echo "${ECHO_T}$ac_header_compiler" >&6; }
18684 # Is the header present?
18685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <$ac_header>
18694 _ACEOF
18695 if { (ac_try="$ac_cpp conftest.$ac_ext"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699 esac
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18702 ac_status=$?
18703 grep -v '^ *+' conftest.er1 >conftest.err
18704 rm -f conftest.er1
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } >/dev/null && {
18708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 }; then
18711 ac_header_preproc=yes
18712 else
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_header_preproc=no
18719 rm -f conftest.err conftest.$ac_ext
18720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18721 echo "${ECHO_T}$ac_header_preproc" >&6; }
18723 # So? What about this header?
18724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18725 yes:no: )
18726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18730 ac_header_preproc=yes
18732 no:yes:* )
18733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18747 esac
18748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753 eval "$as_ac_Header=\$ac_header_preproc"
18755 ac_res=`eval echo '${'$as_ac_Header'}'`
18756 { echo "$as_me:$LINENO: result: $ac_res" >&5
18757 echo "${ECHO_T}$ac_res" >&6; }
18760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18761 cat >>confdefs.h <<_ACEOF
18762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18763 _ACEOF
18764 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18765 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18766 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18767 echo $ECHO_N "(cached) $ECHO_C" >&6
18768 else
18769 cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h. */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 #include <nlist.h>
18778 main ()
18780 static struct nlist ac_aggr;
18781 if (ac_aggr.n_un.n_name)
18782 return 0;
18784 return 0;
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (ac_try="$ac_compile"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_compile") 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && {
18801 test -z "$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 } && test -s conftest.$ac_objext; then
18804 ac_cv_member_struct_nlist_n_un_n_name=yes
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815 #include <nlist.h>
18818 main ()
18820 static struct nlist ac_aggr;
18821 if (sizeof ac_aggr.n_un.n_name)
18822 return 0;
18824 return 0;
18826 _ACEOF
18827 rm -f conftest.$ac_objext
18828 if { (ac_try="$ac_compile"
18829 case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832 esac
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_compile") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest.$ac_objext; then
18844 ac_cv_member_struct_nlist_n_un_n_name=yes
18845 else
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_cv_member_struct_nlist_n_un_n_name=no
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18858 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18859 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18863 _ACEOF
18866 cat >>confdefs.h <<\_ACEOF
18867 #define NLIST_NAME_UNION 1
18868 _ACEOF
18875 done
18878 done
18881 # Some definitions of getloadavg require that the program be installed setgid.
18882 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18883 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18884 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18886 else
18887 cat >conftest.$ac_ext <<_ACEOF
18888 /* confdefs.h. */
18889 _ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18894 #ifdef LDAV_PRIVILEGED
18895 Yowza Am I SETGID yet
18896 #endif
18897 _ACEOF
18898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18899 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18900 ac_cv_func_getloadavg_setgid=yes
18901 else
18902 ac_cv_func_getloadavg_setgid=no
18904 rm -f conftest*
18907 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18908 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18909 if test $ac_cv_func_getloadavg_setgid = yes; then
18910 NEED_SETGID=true
18912 cat >>confdefs.h <<\_ACEOF
18913 #define GETLOADAVG_PRIVILEGED 1
18914 _ACEOF
18916 else
18917 NEED_SETGID=false
18920 if test $ac_cv_func_getloadavg_setgid = yes; then
18921 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18922 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18923 if test "${ac_cv_group_kmem+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18925 else
18926 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18927 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18928 # If we got an error (system does not support symlinks), try without -L.
18929 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18930 ac_cv_group_kmem=`echo $ac_ls_output \
18931 | sed -ne 's/[ ][ ]*/ /g;
18932 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18933 / /s/.* //;p;'`
18936 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18937 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18938 KMEM_GROUP=$ac_cv_group_kmem
18940 if test "x$ac_save_LIBS" = x; then
18941 GETLOADAVG_LIBS=$LIBS
18942 else
18943 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18945 LIBS=$ac_save_LIBS
18949 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18950 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18951 if test "${ac_cv_sys_largefile_source+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954 while :; do
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #include <stdio.h>
18963 main ()
18965 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18967 return 0;
18969 _ACEOF
18970 rm -f conftest.$ac_objext conftest$ac_exeext
18971 if { (ac_try="$ac_link"
18972 case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_link") 2>conftest.er1
18978 ac_status=$?
18979 grep -v '^ *+' conftest.er1 >conftest.err
18980 rm -f conftest.er1
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && {
18984 test -z "$ac_c_werror_flag" ||
18985 test ! -s conftest.err
18986 } && test -s conftest$ac_exeext &&
18987 $as_test_x conftest$ac_exeext; then
18988 ac_cv_sys_largefile_source=no; break
18989 else
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18997 conftest$ac_exeext conftest.$ac_ext
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004 #define _LARGEFILE_SOURCE 1
19005 #include <stdio.h>
19007 main ()
19009 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19011 return 0;
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19022 ac_status=$?
19023 grep -v '^ *+' conftest.er1 >conftest.err
19024 rm -f conftest.er1
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext &&
19031 $as_test_x conftest$ac_exeext; then
19032 ac_cv_sys_largefile_source=1; break
19033 else
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041 conftest$ac_exeext conftest.$ac_ext
19042 ac_cv_sys_largefile_source=unknown
19043 break
19044 done
19046 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19047 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19048 case $ac_cv_sys_largefile_source in #(
19049 no | unknown) ;;
19051 cat >>confdefs.h <<_ACEOF
19052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19053 _ACEOF
19055 esac
19056 rm -f conftest*
19058 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19059 # in glibc 2.1.3, but that breaks too many other things.
19060 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19061 if test $ac_cv_sys_largefile_source != unknown; then
19063 cat >>confdefs.h <<\_ACEOF
19064 #define HAVE_FSEEKO 1
19065 _ACEOF
19070 # Configure getopt.
19071 # getopt.m4 serial 10
19073 # The getopt module assume you want GNU getopt, with getopt_long etc,
19074 # rather than vanilla POSIX getopt. This means your your code should
19075 # always include <getopt.h> for the getopt prototypes.
19087 # Prerequisites of lib/getopt*.
19092 GETOPT_H=
19094 for ac_header in getopt.h
19096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_res=`eval echo '${'$as_ac_Header'}'`
19104 { echo "$as_me:$LINENO: result: $ac_res" >&5
19105 echo "${ECHO_T}$ac_res" >&6; }
19106 else
19107 # Is the header compilable?
19108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19110 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h. */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 $ac_includes_default
19117 #include <$ac_header>
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (ac_try="$ac_compile"
19121 case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_compile") 2>conftest.er1
19127 ac_status=$?
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest.$ac_objext; then
19136 ac_header_compiler=yes
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19141 ac_header_compiler=no
19144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19146 echo "${ECHO_T}$ac_header_compiler" >&6; }
19148 # Is the header present?
19149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19151 cat >conftest.$ac_ext <<_ACEOF
19152 /* confdefs.h. */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <$ac_header>
19158 _ACEOF
19159 if { (ac_try="$ac_cpp conftest.$ac_ext"
19160 case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19166 ac_status=$?
19167 grep -v '^ *+' conftest.er1 >conftest.err
19168 rm -f conftest.er1
19169 cat conftest.err >&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } >/dev/null && {
19172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19173 test ! -s conftest.err
19174 }; then
19175 ac_header_preproc=yes
19176 else
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 ac_header_preproc=no
19183 rm -f conftest.err conftest.$ac_ext
19184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19185 echo "${ECHO_T}$ac_header_preproc" >&6; }
19187 # So? What about this header?
19188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19189 yes:no: )
19190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19194 ac_header_preproc=yes
19196 no:yes:* )
19197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19211 esac
19212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217 eval "$as_ac_Header=\$ac_header_preproc"
19219 ac_res=`eval echo '${'$as_ac_Header'}'`
19220 { echo "$as_me:$LINENO: result: $ac_res" >&5
19221 echo "${ECHO_T}$ac_res" >&6; }
19224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19225 cat >>confdefs.h <<_ACEOF
19226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19227 _ACEOF
19229 else
19230 GETOPT_H=getopt.h
19233 done
19235 if test -z "$GETOPT_H"; then
19237 for ac_func in getopt_long_only
19239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19253 #define $ac_func innocuous_$ac_func
19255 /* System header to define __stub macros and hopefully few prototypes,
19256 which can conflict with char $ac_func (); below.
19257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19258 <limits.h> exists even on freestanding compilers. */
19260 #ifdef __STDC__
19261 # include <limits.h>
19262 #else
19263 # include <assert.h>
19264 #endif
19266 #undef $ac_func
19268 /* Override any GCC internal prototype to avoid an error.
19269 Use char because int might match the return type of a GCC
19270 builtin and then its argument prototype would still apply. */
19271 #ifdef __cplusplus
19272 extern "C"
19273 #endif
19274 char $ac_func ();
19275 /* The GNU C library defines this for functions which it implements
19276 to always fail with ENOSYS. Some functions are actually named
19277 something starting with __ and the normal name is an alias. */
19278 #if defined __stub_$ac_func || defined __stub___$ac_func
19279 choke me
19280 #endif
19283 main ()
19285 return $ac_func ();
19287 return 0;
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_link") 2>conftest.er1
19298 ac_status=$?
19299 grep -v '^ *+' conftest.er1 >conftest.err
19300 rm -f conftest.er1
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest$ac_exeext &&
19307 $as_test_x conftest$ac_exeext; then
19308 eval "$as_ac_var=yes"
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 eval "$as_ac_var=no"
19316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19317 conftest$ac_exeext conftest.$ac_ext
19319 ac_res=`eval echo '${'$as_ac_var'}'`
19320 { echo "$as_me:$LINENO: result: $ac_res" >&5
19321 echo "${ECHO_T}$ac_res" >&6; }
19322 if test `eval echo '${'$as_ac_var'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19325 _ACEOF
19327 else
19328 GETOPT_H=getopt.h
19330 done
19334 if test -z "$GETOPT_H"; then
19335 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19336 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19337 if test "${ac_cv_have_decl_optreset+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 cat >conftest.$ac_ext <<_ACEOF
19341 /* confdefs.h. */
19342 _ACEOF
19343 cat confdefs.h >>conftest.$ac_ext
19344 cat >>conftest.$ac_ext <<_ACEOF
19345 /* end confdefs.h. */
19346 #include <getopt.h>
19349 main ()
19351 #ifndef optreset
19352 (void) optreset;
19353 #endif
19356 return 0;
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest.$ac_objext; then
19376 ac_cv_have_decl_optreset=yes
19377 else
19378 echo "$as_me: failed program was:" >&5
19379 sed 's/^/| /' conftest.$ac_ext >&5
19381 ac_cv_have_decl_optreset=no
19384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19386 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19387 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19388 if test $ac_cv_have_decl_optreset = yes; then
19389 GETOPT_H=getopt.h
19394 if test -z "$GETOPT_H"; then
19395 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19396 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19397 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 else
19400 if test "$cross_compiling" = yes; then
19401 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19402 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19403 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 else
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 #include <getopt.h>
19415 main ()
19417 #ifndef getopt_clip
19418 (void) getopt_clip;
19419 #endif
19422 return 0;
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19433 ac_status=$?
19434 grep -v '^ *+' conftest.er1 >conftest.err
19435 rm -f conftest.er1
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && {
19439 test -z "$ac_c_werror_flag" ||
19440 test ! -s conftest.err
19441 } && test -s conftest.$ac_objext; then
19442 ac_cv_have_decl_getopt_clip=yes
19443 else
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 ac_cv_have_decl_getopt_clip=no
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19453 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19454 if test $ac_cv_have_decl_getopt_clip = yes; then
19455 gl_cv_func_gnu_getopt=no
19456 else
19457 gl_cv_func_gnu_getopt=yes
19460 else
19461 cat >conftest.$ac_ext <<_ACEOF
19462 /* confdefs.h. */
19463 _ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <getopt.h>
19469 main ()
19472 char *myargv[3];
19473 myargv[0] = "conftest";
19474 myargv[1] = "-+";
19475 myargv[2] = 0;
19476 return getopt (2, myargv, "+a") != '?';
19479 return 0;
19481 _ACEOF
19482 rm -f conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 gl_cv_func_gnu_getopt=yes
19503 else
19504 echo "$as_me: program exited with status $ac_status" >&5
19505 echo "$as_me: failed program was:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ( exit $ac_status )
19509 gl_cv_func_gnu_getopt=no
19511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19516 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19517 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19518 if test "$gl_cv_func_gnu_getopt" = "no"; then
19519 GETOPT_H=getopt.h
19525 if test -n "$GETOPT_H"; then
19528 GETOPT_H=getopt.h
19530 cat >>confdefs.h <<\_ACEOF
19531 #define __GETOPT_PREFIX rpl_
19532 _ACEOF
19537 GETOPTOBJS='getopt.o getopt1.o'
19544 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19545 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19546 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19548 else
19549 # Use it with a single arg.
19550 cat >conftest.$ac_ext <<_ACEOF
19551 /* confdefs.h. */
19552 _ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 $ac_includes_default
19558 main ()
19560 getpgrp (0);
19562 return 0;
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (ac_try="$ac_compile"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_compile") 2>conftest.er1
19573 ac_status=$?
19574 grep -v '^ *+' conftest.er1 >conftest.err
19575 rm -f conftest.er1
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest.$ac_objext; then
19582 ac_cv_func_getpgrp_void=no
19583 else
19584 echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_func_getpgrp_void=yes
19590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19594 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19595 if test $ac_cv_func_getpgrp_void = yes; then
19597 cat >>confdefs.h <<\_ACEOF
19598 #define GETPGRP_VOID 1
19599 _ACEOF
19605 for ac_func in strftime
19607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 else
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h. */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19621 #define $ac_func innocuous_$ac_func
19623 /* System header to define __stub macros and hopefully few prototypes,
19624 which can conflict with char $ac_func (); below.
19625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19626 <limits.h> exists even on freestanding compilers. */
19628 #ifdef __STDC__
19629 # include <limits.h>
19630 #else
19631 # include <assert.h>
19632 #endif
19634 #undef $ac_func
19636 /* Override any GCC internal prototype to avoid an error.
19637 Use char because int might match the return type of a GCC
19638 builtin and then its argument prototype would still apply. */
19639 #ifdef __cplusplus
19640 extern "C"
19641 #endif
19642 char $ac_func ();
19643 /* The GNU C library defines this for functions which it implements
19644 to always fail with ENOSYS. Some functions are actually named
19645 something starting with __ and the normal name is an alias. */
19646 #if defined __stub_$ac_func || defined __stub___$ac_func
19647 choke me
19648 #endif
19651 main ()
19653 return $ac_func ();
19655 return 0;
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (ac_try="$ac_link"
19660 case "(($ac_try" in
19661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19662 *) ac_try_echo=$ac_try;;
19663 esac
19664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19665 (eval "$ac_link") 2>conftest.er1
19666 ac_status=$?
19667 grep -v '^ *+' conftest.er1 >conftest.err
19668 rm -f conftest.er1
19669 cat conftest.err >&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); } && {
19672 test -z "$ac_c_werror_flag" ||
19673 test ! -s conftest.err
19674 } && test -s conftest$ac_exeext &&
19675 $as_test_x conftest$ac_exeext; then
19676 eval "$as_ac_var=yes"
19677 else
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19681 eval "$as_ac_var=no"
19684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19685 conftest$ac_exeext conftest.$ac_ext
19687 ac_res=`eval echo '${'$as_ac_var'}'`
19688 { echo "$as_me:$LINENO: result: $ac_res" >&5
19689 echo "${ECHO_T}$ac_res" >&6; }
19690 if test `eval echo '${'$as_ac_var'}'` = yes; then
19691 cat >>confdefs.h <<_ACEOF
19692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19693 _ACEOF
19695 else
19696 # strftime is in -lintl on SCO UNIX.
19697 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19698 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19699 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702 ac_check_lib_save_LIBS=$LIBS
19703 LIBS="-lintl $LIBS"
19704 cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h. */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19714 #ifdef __cplusplus
19715 extern "C"
19716 #endif
19717 char strftime ();
19719 main ()
19721 return strftime ();
19723 return 0;
19725 _ACEOF
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19731 esac
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19734 ac_status=$?
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest$ac_exeext &&
19743 $as_test_x conftest$ac_exeext; then
19744 ac_cv_lib_intl_strftime=yes
19745 else
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.$ac_ext >&5
19749 ac_cv_lib_intl_strftime=no
19752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19753 conftest$ac_exeext conftest.$ac_ext
19754 LIBS=$ac_check_lib_save_LIBS
19756 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19757 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19758 if test $ac_cv_lib_intl_strftime = yes; then
19759 cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_STRFTIME 1
19761 _ACEOF
19763 LIBS="-lintl $LIBS"
19767 done
19770 # UNIX98 PTYs.
19772 for ac_func in grantpt
19774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19788 #define $ac_func innocuous_$ac_func
19790 /* System header to define __stub macros and hopefully few prototypes,
19791 which can conflict with char $ac_func (); below.
19792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19793 <limits.h> exists even on freestanding compilers. */
19795 #ifdef __STDC__
19796 # include <limits.h>
19797 #else
19798 # include <assert.h>
19799 #endif
19801 #undef $ac_func
19803 /* Override any GCC internal prototype to avoid an error.
19804 Use char because int might match the return type of a GCC
19805 builtin and then its argument prototype would still apply. */
19806 #ifdef __cplusplus
19807 extern "C"
19808 #endif
19809 char $ac_func ();
19810 /* The GNU C library defines this for functions which it implements
19811 to always fail with ENOSYS. Some functions are actually named
19812 something starting with __ and the normal name is an alias. */
19813 #if defined __stub_$ac_func || defined __stub___$ac_func
19814 choke me
19815 #endif
19818 main ()
19820 return $ac_func ();
19822 return 0;
19824 _ACEOF
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest$ac_exeext &&
19842 $as_test_x conftest$ac_exeext; then
19843 eval "$as_ac_var=yes"
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 eval "$as_ac_var=no"
19851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19852 conftest$ac_exeext conftest.$ac_ext
19854 ac_res=`eval echo '${'$as_ac_var'}'`
19855 { echo "$as_me:$LINENO: result: $ac_res" >&5
19856 echo "${ECHO_T}$ac_res" >&6; }
19857 if test `eval echo '${'$as_ac_var'}'` = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19860 _ACEOF
19863 done
19866 # PTY-related GNU extensions.
19868 for ac_func in getpt
19870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19873 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19884 #define $ac_func innocuous_$ac_func
19886 /* System header to define __stub macros and hopefully few prototypes,
19887 which can conflict with char $ac_func (); below.
19888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889 <limits.h> exists even on freestanding compilers. */
19891 #ifdef __STDC__
19892 # include <limits.h>
19893 #else
19894 # include <assert.h>
19895 #endif
19897 #undef $ac_func
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19902 #ifdef __cplusplus
19903 extern "C"
19904 #endif
19905 char $ac_func ();
19906 /* The GNU C library defines this for functions which it implements
19907 to always fail with ENOSYS. Some functions are actually named
19908 something starting with __ and the normal name is an alias. */
19909 #if defined __stub_$ac_func || defined __stub___$ac_func
19910 choke me
19911 #endif
19914 main ()
19916 return $ac_func ();
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 eval "$as_ac_var=yes"
19940 else
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 eval "$as_ac_var=no"
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19950 ac_res=`eval echo '${'$as_ac_var'}'`
19951 { echo "$as_me:$LINENO: result: $ac_res" >&5
19952 echo "${ECHO_T}$ac_res" >&6; }
19953 if test `eval echo '${'$as_ac_var'}'` = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19956 _ACEOF
19959 done
19962 # Check this now, so that we will NOT find the above functions in ncurses.
19963 # That is because we have not set up to link ncurses in lib-src.
19964 # It's better to believe a function is not available
19965 # than to expect to find it in ncurses.
19967 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19968 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19969 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 else
19972 ac_check_lib_save_LIBS=$LIBS
19973 LIBS="-lncurses $LIBS"
19974 cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h. */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19981 /* Override any GCC internal prototype to avoid an error.
19982 Use char because int might match the return type of a GCC
19983 builtin and then its argument prototype would still apply. */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 char tparm ();
19989 main ()
19991 return tparm ();
19993 return 0;
19995 _ACEOF
19996 rm -f conftest.$ac_objext conftest$ac_exeext
19997 if { (ac_try="$ac_link"
19998 case "(($ac_try" in
19999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20000 *) ac_try_echo=$ac_try;;
20001 esac
20002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20003 (eval "$ac_link") 2>conftest.er1
20004 ac_status=$?
20005 grep -v '^ *+' conftest.er1 >conftest.err
20006 rm -f conftest.er1
20007 cat conftest.err >&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); } && {
20010 test -z "$ac_c_werror_flag" ||
20011 test ! -s conftest.err
20012 } && test -s conftest$ac_exeext &&
20013 $as_test_x conftest$ac_exeext; then
20014 ac_cv_lib_ncurses_tparm=yes
20015 else
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_lib_ncurses_tparm=no
20022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20023 conftest$ac_exeext conftest.$ac_ext
20024 LIBS=$ac_check_lib_save_LIBS
20026 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20027 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20028 if test $ac_cv_lib_ncurses_tparm = yes; then
20029 cat >>confdefs.h <<_ACEOF
20030 #define HAVE_LIBNCURSES 1
20031 _ACEOF
20033 LIBS="-lncurses $LIBS"
20038 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20040 resolv=no
20041 cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h. */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 #include <netinet/in.h>
20048 #include <arpa/nameser.h>
20049 #include <resolv.h>
20051 main ()
20053 return res_init();
20055 return 0;
20057 _ACEOF
20058 rm -f conftest.$ac_objext conftest$ac_exeext
20059 if { (ac_try="$ac_link"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_link") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest$ac_exeext &&
20075 $as_test_x conftest$ac_exeext; then
20076 have_res_init=yes
20077 else
20078 echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20081 have_res_init=no
20084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20085 conftest$ac_exeext conftest.$ac_ext
20086 if test "$have_res_init" = no; then
20087 OLIBS="$LIBS"
20088 LIBS="$LIBS -lresolv"
20089 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20090 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 #include <netinet/in.h>
20098 #include <arpa/nameser.h>
20099 #include <resolv.h>
20101 main ()
20103 return res_init();
20105 return 0;
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (ac_try="$ac_link"
20110 case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_link") 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } && {
20122 test -z "$ac_c_werror_flag" ||
20123 test ! -s conftest.err
20124 } && test -s conftest$ac_exeext &&
20125 $as_test_x conftest$ac_exeext; then
20126 have_res_init=yes
20127 else
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20131 have_res_init=no
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135 conftest$ac_exeext conftest.$ac_ext
20136 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20137 echo "${ECHO_T}$have_res_init" >&6; }
20138 if test "$have_res_init" = yes ; then
20139 resolv=yes
20141 LIBS="$OLIBS"
20144 if test "$have_res_init" = yes; then
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE_RES_INIT 1
20148 _ACEOF
20152 # Do we need the Hesiod library to provide the support routines?
20153 if test "$with_hesiod" != no ; then
20154 # Don't set $LIBS here -- see comments above.
20155 { echo "$as_me:$LINENO: checking for res_send" >&5
20156 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20157 if test "${ac_cv_func_res_send+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160 cat >conftest.$ac_ext <<_ACEOF
20161 /* confdefs.h. */
20162 _ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20168 #define res_send innocuous_res_send
20170 /* System header to define __stub macros and hopefully few prototypes,
20171 which can conflict with char res_send (); below.
20172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20173 <limits.h> exists even on freestanding compilers. */
20175 #ifdef __STDC__
20176 # include <limits.h>
20177 #else
20178 # include <assert.h>
20179 #endif
20181 #undef res_send
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char res_send ();
20190 /* The GNU C library defines this for functions which it implements
20191 to always fail with ENOSYS. Some functions are actually named
20192 something starting with __ and the normal name is an alias. */
20193 #if defined __stub_res_send || defined __stub___res_send
20194 choke me
20195 #endif
20198 main ()
20200 return res_send ();
20202 return 0;
20204 _ACEOF
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_func_res_send=yes
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_cv_func_res_send=no
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20234 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20235 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20236 if test $ac_cv_func_res_send = yes; then
20238 else
20239 { echo "$as_me:$LINENO: checking for __res_send" >&5
20240 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20241 if test "${ac_cv_func___res_send+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244 cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h. */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20252 #define __res_send innocuous___res_send
20254 /* System header to define __stub macros and hopefully few prototypes,
20255 which can conflict with char __res_send (); below.
20256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20257 <limits.h> exists even on freestanding compilers. */
20259 #ifdef __STDC__
20260 # include <limits.h>
20261 #else
20262 # include <assert.h>
20263 #endif
20265 #undef __res_send
20267 /* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20270 #ifdef __cplusplus
20271 extern "C"
20272 #endif
20273 char __res_send ();
20274 /* The GNU C library defines this for functions which it implements
20275 to always fail with ENOSYS. Some functions are actually named
20276 something starting with __ and the normal name is an alias. */
20277 #if defined __stub___res_send || defined __stub_____res_send
20278 choke me
20279 #endif
20282 main ()
20284 return __res_send ();
20286 return 0;
20288 _ACEOF
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (ac_try="$ac_link"
20291 case "(($ac_try" in
20292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293 *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296 (eval "$ac_link") 2>conftest.er1
20297 ac_status=$?
20298 grep -v '^ *+' conftest.er1 >conftest.err
20299 rm -f conftest.er1
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } && {
20303 test -z "$ac_c_werror_flag" ||
20304 test ! -s conftest.err
20305 } && test -s conftest$ac_exeext &&
20306 $as_test_x conftest$ac_exeext; then
20307 ac_cv_func___res_send=yes
20308 else
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.$ac_ext >&5
20312 ac_cv_func___res_send=no
20315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20316 conftest$ac_exeext conftest.$ac_ext
20318 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20319 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20320 if test $ac_cv_func___res_send = yes; then
20322 else
20323 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20324 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20325 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328 ac_check_lib_save_LIBS=$LIBS
20329 LIBS="-lresolv $LIBS"
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h. */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20340 #ifdef __cplusplus
20341 extern "C"
20342 #endif
20343 char res_send ();
20345 main ()
20347 return res_send ();
20349 return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext &&
20369 $as_test_x conftest$ac_exeext; then
20370 ac_cv_lib_resolv_res_send=yes
20371 else
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_lib_resolv_res_send=no
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20380 LIBS=$ac_check_lib_save_LIBS
20382 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20383 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20384 if test $ac_cv_lib_resolv_res_send = yes; then
20385 resolv=yes
20386 else
20387 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20388 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lresolv $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char __res_send ();
20409 main ()
20411 return __res_send ();
20413 return 0;
20415 _ACEOF
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest$ac_exeext &&
20433 $as_test_x conftest$ac_exeext; then
20434 ac_cv_lib_resolv___res_send=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_lib_resolv___res_send=no
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20447 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20448 if test $ac_cv_lib_resolv___res_send = yes; then
20449 resolv=yes
20458 if test "$resolv" = yes ; then
20459 RESOLVLIB=-lresolv
20460 else
20461 RESOLVLIB=
20463 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20464 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20465 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468 cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h. */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20476 #define hes_getmailhost innocuous_hes_getmailhost
20478 /* System header to define __stub macros and hopefully few prototypes,
20479 which can conflict with char hes_getmailhost (); below.
20480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20481 <limits.h> exists even on freestanding compilers. */
20483 #ifdef __STDC__
20484 # include <limits.h>
20485 #else
20486 # include <assert.h>
20487 #endif
20489 #undef hes_getmailhost
20491 /* Override any GCC internal prototype to avoid an error.
20492 Use char because int might match the return type of a GCC
20493 builtin and then its argument prototype would still apply. */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 char hes_getmailhost ();
20498 /* The GNU C library defines this for functions which it implements
20499 to always fail with ENOSYS. Some functions are actually named
20500 something starting with __ and the normal name is an alias. */
20501 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20502 choke me
20503 #endif
20506 main ()
20508 return hes_getmailhost ();
20510 return 0;
20512 _ACEOF
20513 rm -f conftest.$ac_objext conftest$ac_exeext
20514 if { (ac_try="$ac_link"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_link") 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && {
20527 test -z "$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20529 } && test -s conftest$ac_exeext &&
20530 $as_test_x conftest$ac_exeext; then
20531 ac_cv_func_hes_getmailhost=yes
20532 else
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_cv_func_hes_getmailhost=no
20539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20540 conftest$ac_exeext conftest.$ac_ext
20542 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20543 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20544 if test $ac_cv_func_hes_getmailhost = yes; then
20546 else
20547 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20548 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20549 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-lhesiod $RESOLVLIB $LIBS"
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h. */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply. */
20564 #ifdef __cplusplus
20565 extern "C"
20566 #endif
20567 char hes_getmailhost ();
20569 main ()
20571 return hes_getmailhost ();
20573 return 0;
20575 _ACEOF
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 ac_cv_lib_hesiod_hes_getmailhost=yes
20595 else
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_hesiod_hes_getmailhost=no
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 LIBS=$ac_check_lib_save_LIBS
20606 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20607 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20608 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_LIBHESIOD 1
20612 _ACEOF
20614 else
20622 # Do we need libresolv (due to res_init or Hesiod)?
20623 if test "$resolv" = yes ; then
20625 cat >>confdefs.h <<\_ACEOF
20626 #define HAVE_LIBRESOLV 1
20627 _ACEOF
20631 # These tell us which Kerberos-related libraries to use.
20632 if test "${with_kerberos}" != no; then
20634 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20635 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20636 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638 else
20639 ac_check_lib_save_LIBS=$LIBS
20640 LIBS="-lcom_err $LIBS"
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 /* Override any GCC internal prototype to avoid an error.
20649 Use char because int might match the return type of a GCC
20650 builtin and then its argument prototype would still apply. */
20651 #ifdef __cplusplus
20652 extern "C"
20653 #endif
20654 char com_err ();
20656 main ()
20658 return com_err ();
20660 return 0;
20662 _ACEOF
20663 rm -f conftest.$ac_objext conftest$ac_exeext
20664 if { (ac_try="$ac_link"
20665 case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20668 esac
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_link") 2>conftest.er1
20671 ac_status=$?
20672 grep -v '^ *+' conftest.er1 >conftest.err
20673 rm -f conftest.er1
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } && {
20677 test -z "$ac_c_werror_flag" ||
20678 test ! -s conftest.err
20679 } && test -s conftest$ac_exeext &&
20680 $as_test_x conftest$ac_exeext; then
20681 ac_cv_lib_com_err_com_err=yes
20682 else
20683 echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20686 ac_cv_lib_com_err_com_err=no
20689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20690 conftest$ac_exeext conftest.$ac_ext
20691 LIBS=$ac_check_lib_save_LIBS
20693 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20694 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20695 if test $ac_cv_lib_com_err_com_err = yes; then
20696 cat >>confdefs.h <<_ACEOF
20697 #define HAVE_LIBCOM_ERR 1
20698 _ACEOF
20700 LIBS="-lcom_err $LIBS"
20705 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20706 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20707 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20708 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710 ac_check_lib_save_LIBS=$LIBS
20711 LIBS="-lk5crypto $LIBS"
20712 cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h. */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 /* Override any GCC internal prototype to avoid an error.
20720 Use char because int might match the return type of a GCC
20721 builtin and then its argument prototype would still apply. */
20722 #ifdef __cplusplus
20723 extern "C"
20724 #endif
20725 char mit_des_cbc_encrypt ();
20727 main ()
20729 return mit_des_cbc_encrypt ();
20731 return 0;
20733 _ACEOF
20734 rm -f conftest.$ac_objext conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_link") 2>conftest.er1
20742 ac_status=$?
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && {
20748 test -z "$ac_c_werror_flag" ||
20749 test ! -s conftest.err
20750 } && test -s conftest$ac_exeext &&
20751 $as_test_x conftest$ac_exeext; then
20752 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20753 else
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20761 conftest$ac_exeext conftest.$ac_ext
20762 LIBS=$ac_check_lib_save_LIBS
20764 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20765 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20766 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define HAVE_LIBK5CRYPTO 1
20769 _ACEOF
20771 LIBS="-lk5crypto $LIBS"
20776 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20777 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20778 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20780 else
20781 ac_check_lib_save_LIBS=$LIBS
20782 LIBS="-lcrypto $LIBS"
20783 cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h. */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h. */
20790 /* Override any GCC internal prototype to avoid an error.
20791 Use char because int might match the return type of a GCC
20792 builtin and then its argument prototype would still apply. */
20793 #ifdef __cplusplus
20794 extern "C"
20795 #endif
20796 char mit_des_cbc_encrypt ();
20798 main ()
20800 return mit_des_cbc_encrypt ();
20802 return 0;
20804 _ACEOF
20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_link") 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } && {
20819 test -z "$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20821 } && test -s conftest$ac_exeext &&
20822 $as_test_x conftest$ac_exeext; then
20823 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20824 else
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20833 LIBS=$ac_check_lib_save_LIBS
20835 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20836 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20837 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20838 cat >>confdefs.h <<_ACEOF
20839 #define HAVE_LIBCRYPTO 1
20840 _ACEOF
20842 LIBS="-lcrypto $LIBS"
20847 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20848 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20849 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20850 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852 ac_check_lib_save_LIBS=$LIBS
20853 LIBS="-lkrb5 $LIBS"
20854 cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h. */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20861 /* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
20864 #ifdef __cplusplus
20865 extern "C"
20866 #endif
20867 char krb5_init_context ();
20869 main ()
20871 return krb5_init_context ();
20873 return 0;
20875 _ACEOF
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (ac_try="$ac_link"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_link") 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest$ac_exeext &&
20893 $as_test_x conftest$ac_exeext; then
20894 ac_cv_lib_krb5_krb5_init_context=yes
20895 else
20896 echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20899 ac_cv_lib_krb5_krb5_init_context=no
20902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20903 conftest$ac_exeext conftest.$ac_ext
20904 LIBS=$ac_check_lib_save_LIBS
20906 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20907 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20908 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_LIBKRB5 1
20911 _ACEOF
20913 LIBS="-lkrb5 $LIBS"
20917 if test "${with_kerberos5}" = no; then
20919 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20920 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20921 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924 ac_check_lib_save_LIBS=$LIBS
20925 LIBS="-ldes425 $LIBS"
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20933 /* Override any GCC internal prototype to avoid an error.
20934 Use char because int might match the return type of a GCC
20935 builtin and then its argument prototype would still apply. */
20936 #ifdef __cplusplus
20937 extern "C"
20938 #endif
20939 char des_cbc_encrypt ();
20941 main ()
20943 return des_cbc_encrypt ();
20945 return 0;
20947 _ACEOF
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (ac_try="$ac_link"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_link") 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } && {
20962 test -z "$ac_c_werror_flag" ||
20963 test ! -s conftest.err
20964 } && test -s conftest$ac_exeext &&
20965 $as_test_x conftest$ac_exeext; then
20966 ac_cv_lib_des425_des_cbc_encrypt=yes
20967 else
20968 echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_lib_des425_des_cbc_encrypt=no
20974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20975 conftest$ac_exeext conftest.$ac_ext
20976 LIBS=$ac_check_lib_save_LIBS
20978 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20979 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20980 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define HAVE_LIBDES425 1
20983 _ACEOF
20985 LIBS="-ldes425 $LIBS"
20987 else
20989 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20990 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994 ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-ldes $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h. */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char des_cbc_encrypt ();
21011 main ()
21013 return des_cbc_encrypt ();
21015 return 0;
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_link") 2>conftest.er1
21026 ac_status=$?
21027 grep -v '^ *+' conftest.er1 >conftest.err
21028 rm -f conftest.er1
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031 (exit $ac_status); } && {
21032 test -z "$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21034 } && test -s conftest$ac_exeext &&
21035 $as_test_x conftest$ac_exeext; then
21036 ac_cv_lib_des_des_cbc_encrypt=yes
21037 else
21038 echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21041 ac_cv_lib_des_des_cbc_encrypt=no
21044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21045 conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21048 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21049 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21050 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21051 cat >>confdefs.h <<_ACEOF
21052 #define HAVE_LIBDES 1
21053 _ACEOF
21055 LIBS="-ldes $LIBS"
21062 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21063 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
21064 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 ac_check_lib_save_LIBS=$LIBS
21068 LIBS="-lkrb4 $LIBS"
21069 cat >conftest.$ac_ext <<_ACEOF
21070 /* confdefs.h. */
21071 _ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21079 #ifdef __cplusplus
21080 extern "C"
21081 #endif
21082 char krb_get_cred ();
21084 main ()
21086 return krb_get_cred ();
21088 return 0;
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_link") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest$ac_exeext &&
21108 $as_test_x conftest$ac_exeext; then
21109 ac_cv_lib_krb4_krb_get_cred=yes
21110 else
21111 echo "$as_me: failed program was:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_cv_lib_krb4_krb_get_cred=no
21117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21118 conftest$ac_exeext conftest.$ac_ext
21119 LIBS=$ac_check_lib_save_LIBS
21121 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21122 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21123 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE_LIBKRB4 1
21126 _ACEOF
21128 LIBS="-lkrb4 $LIBS"
21130 else
21132 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21133 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21134 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21135 echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137 ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-lkrb $LIBS"
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h. */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char krb_get_cred ();
21154 main ()
21156 return krb_get_cred ();
21158 return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (ac_try="$ac_link"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_link") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest$ac_exeext &&
21178 $as_test_x conftest$ac_exeext; then
21179 ac_cv_lib_krb_krb_get_cred=yes
21180 else
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184 ac_cv_lib_krb_krb_get_cred=no
21187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188 conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21191 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21192 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21193 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21194 cat >>confdefs.h <<_ACEOF
21195 #define HAVE_LIBKRB 1
21196 _ACEOF
21198 LIBS="-lkrb $LIBS"
21206 if test "${with_kerberos5}" != no; then
21208 for ac_header in krb5.h
21210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 ac_res=`eval echo '${'$as_ac_Header'}'`
21218 { echo "$as_me:$LINENO: result: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21220 else
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 ac_header_compiler=yes
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_compiler=no
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21260 echo "${ECHO_T}$ac_header_compiler" >&6; }
21262 # Is the header present?
21263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <$ac_header>
21272 _ACEOF
21273 if { (ac_try="$ac_cpp conftest.$ac_ext"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21277 esac
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } >/dev/null && {
21286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 }; then
21289 ac_header_preproc=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_header_preproc=no
21297 rm -f conftest.err conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21299 echo "${ECHO_T}$ac_header_preproc" >&6; }
21301 # So? What about this header?
21302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21303 yes:no: )
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21308 ac_header_preproc=yes
21310 no:yes:* )
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21325 esac
21326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331 eval "$as_ac_Header=\$ac_header_preproc"
21333 ac_res=`eval echo '${'$as_ac_Header'}'`
21334 { echo "$as_me:$LINENO: result: $ac_res" >&5
21335 echo "${ECHO_T}$ac_res" >&6; }
21338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21339 cat >>confdefs.h <<_ACEOF
21340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21341 _ACEOF
21342 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21343 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21344 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21345 echo $ECHO_N "(cached) $ECHO_C" >&6
21346 else
21347 cat >conftest.$ac_ext <<_ACEOF
21348 /* confdefs.h. */
21349 _ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 #include <krb5.h>
21356 main ()
21358 static krb5_error ac_aggr;
21359 if (ac_aggr.text)
21360 return 0;
21362 return 0;
21364 _ACEOF
21365 rm -f conftest.$ac_objext
21366 if { (ac_try="$ac_compile"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_member_krb5_error_text=yes
21383 else
21384 echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h. */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21393 #include <krb5.h>
21396 main ()
21398 static krb5_error ac_aggr;
21399 if (sizeof ac_aggr.text)
21400 return 0;
21402 return 0;
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_cv_member_krb5_error_text=yes
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_cv_member_krb5_error_text=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21436 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21437 if test $ac_cv_member_krb5_error_text = yes; then
21439 cat >>confdefs.h <<_ACEOF
21440 #define HAVE_KRB5_ERROR_TEXT 1
21441 _ACEOF
21445 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21446 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21447 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21449 else
21450 cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h. */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h. */
21456 #include <krb5.h>
21459 main ()
21461 static krb5_error ac_aggr;
21462 if (ac_aggr.e_text)
21463 return 0;
21465 return 0;
21467 _ACEOF
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21476 ac_status=$?
21477 grep -v '^ *+' conftest.er1 >conftest.err
21478 rm -f conftest.er1
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21485 ac_cv_member_krb5_error_e_text=yes
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <krb5.h>
21499 main ()
21501 static krb5_error ac_aggr;
21502 if (sizeof ac_aggr.e_text)
21503 return 0;
21505 return 0;
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_compile") 2>conftest.er1
21516 ac_status=$?
21517 grep -v '^ *+' conftest.er1 >conftest.err
21518 rm -f conftest.er1
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } && {
21522 test -z "$ac_c_werror_flag" ||
21523 test ! -s conftest.err
21524 } && test -s conftest.$ac_objext; then
21525 ac_cv_member_krb5_error_e_text=yes
21526 else
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_member_krb5_error_e_text=no
21533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21539 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21540 if test $ac_cv_member_krb5_error_e_text = yes; then
21542 cat >>confdefs.h <<_ACEOF
21543 #define HAVE_KRB5_ERROR_E_TEXT 1
21544 _ACEOF
21551 done
21553 else
21555 for ac_header in des.h
21557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 ac_res=`eval echo '${'$as_ac_Header'}'`
21565 { echo "$as_me:$LINENO: result: $ac_res" >&5
21566 echo "${ECHO_T}$ac_res" >&6; }
21567 else
21568 # Is the header compilable?
21569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <$ac_header>
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (ac_try="$ac_compile"
21582 case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21585 esac
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_compile") 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } && {
21594 test -z "$ac_c_werror_flag" ||
21595 test ! -s conftest.err
21596 } && test -s conftest.$ac_objext; then
21597 ac_header_compiler=yes
21598 else
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21602 ac_header_compiler=no
21605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21607 echo "${ECHO_T}$ac_header_compiler" >&6; }
21609 # Is the header present?
21610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 #include <$ac_header>
21619 _ACEOF
21620 if { (ac_try="$ac_cpp conftest.$ac_ext"
21621 case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } >/dev/null && {
21633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 }; then
21636 ac_header_preproc=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21641 ac_header_preproc=no
21644 rm -f conftest.err conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21646 echo "${ECHO_T}$ac_header_preproc" >&6; }
21648 # So? What about this header?
21649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21650 yes:no: )
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21655 ac_header_preproc=yes
21657 no:yes:* )
21658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21672 esac
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678 eval "$as_ac_Header=\$ac_header_preproc"
21680 ac_res=`eval echo '${'$as_ac_Header'}'`
21681 { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21688 _ACEOF
21690 else
21692 for ac_header in kerberosIV/des.h
21694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21701 ac_res=`eval echo '${'$as_ac_Header'}'`
21702 { echo "$as_me:$LINENO: result: $ac_res" >&5
21703 echo "${ECHO_T}$ac_res" >&6; }
21704 else
21705 # Is the header compilable?
21706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21708 cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h. */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 $ac_includes_default
21715 #include <$ac_header>
21716 _ACEOF
21717 rm -f conftest.$ac_objext
21718 if { (ac_try="$ac_compile"
21719 case "(($ac_try" in
21720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21721 *) ac_try_echo=$ac_try;;
21722 esac
21723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21724 (eval "$ac_compile") 2>conftest.er1
21725 ac_status=$?
21726 grep -v '^ *+' conftest.er1 >conftest.err
21727 rm -f conftest.er1
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } && {
21731 test -z "$ac_c_werror_flag" ||
21732 test ! -s conftest.err
21733 } && test -s conftest.$ac_objext; then
21734 ac_header_compiler=yes
21735 else
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_header_compiler=no
21742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21744 echo "${ECHO_T}$ac_header_compiler" >&6; }
21746 # Is the header present?
21747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21749 cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h. */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h. */
21755 #include <$ac_header>
21756 _ACEOF
21757 if { (ac_try="$ac_cpp conftest.$ac_ext"
21758 case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } >/dev/null && {
21770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 }; then
21773 ac_header_preproc=yes
21774 else
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ac_header_preproc=no
21781 rm -f conftest.err conftest.$ac_ext
21782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21783 echo "${ECHO_T}$ac_header_preproc" >&6; }
21785 # So? What about this header?
21786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21787 yes:no: )
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21792 ac_header_preproc=yes
21794 no:yes:* )
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21809 esac
21810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815 eval "$as_ac_Header=\$ac_header_preproc"
21817 ac_res=`eval echo '${'$as_ac_Header'}'`
21818 { echo "$as_me:$LINENO: result: $ac_res" >&5
21819 echo "${ECHO_T}$ac_res" >&6; }
21822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21823 cat >>confdefs.h <<_ACEOF
21824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21825 _ACEOF
21827 else
21829 for ac_header in kerberos/des.h
21831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 ac_res=`eval echo '${'$as_ac_Header'}'`
21839 { echo "$as_me:$LINENO: result: $ac_res" >&5
21840 echo "${ECHO_T}$ac_res" >&6; }
21841 else
21842 # Is the header compilable?
21843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851 $ac_includes_default
21852 #include <$ac_header>
21853 _ACEOF
21854 rm -f conftest.$ac_objext
21855 if { (ac_try="$ac_compile"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_compile") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } && {
21868 test -z "$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 } && test -s conftest.$ac_objext; then
21871 ac_header_compiler=yes
21872 else
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_header_compiler=no
21879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21881 echo "${ECHO_T}$ac_header_compiler" >&6; }
21883 # Is the header present?
21884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h. */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 #include <$ac_header>
21893 _ACEOF
21894 if { (ac_try="$ac_cpp conftest.$ac_ext"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21898 esac
21899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21901 ac_status=$?
21902 grep -v '^ *+' conftest.er1 >conftest.err
21903 rm -f conftest.er1
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); } >/dev/null && {
21907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 }; then
21910 ac_header_preproc=yes
21911 else
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_preproc=no
21918 rm -f conftest.err conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21920 echo "${ECHO_T}$ac_header_preproc" >&6; }
21922 # So? What about this header?
21923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21924 yes:no: )
21925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21929 ac_header_preproc=yes
21931 no:yes:* )
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21946 esac
21947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 eval "$as_ac_Header=\$ac_header_preproc"
21954 ac_res=`eval echo '${'$as_ac_Header'}'`
21955 { echo "$as_me:$LINENO: result: $ac_res" >&5
21956 echo "${ECHO_T}$ac_res" >&6; }
21959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21960 cat >>confdefs.h <<_ACEOF
21961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21962 _ACEOF
21966 done
21970 done
21974 done
21977 for ac_header in krb.h
21979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21984 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 ac_res=`eval echo '${'$as_ac_Header'}'`
21987 { echo "$as_me:$LINENO: result: $ac_res" >&5
21988 echo "${ECHO_T}$ac_res" >&6; }
21989 else
21990 # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h. */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
21999 $ac_includes_default
22000 #include <$ac_header>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_header_compiler=yes
22020 else
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_header_compiler=no
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22029 echo "${ECHO_T}$ac_header_compiler" >&6; }
22031 # Is the header present?
22032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22040 #include <$ac_header>
22041 _ACEOF
22042 if { (ac_try="$ac_cpp conftest.$ac_ext"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046 esac
22047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } >/dev/null && {
22055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 }; then
22058 ac_header_preproc=yes
22059 else
22060 echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22063 ac_header_preproc=no
22066 rm -f conftest.err conftest.$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22068 echo "${ECHO_T}$ac_header_preproc" >&6; }
22070 # So? What about this header?
22071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22072 yes:no: )
22073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22077 ac_header_preproc=yes
22079 no:yes:* )
22080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22094 esac
22095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100 eval "$as_ac_Header=\$ac_header_preproc"
22102 ac_res=`eval echo '${'$as_ac_Header'}'`
22103 { echo "$as_me:$LINENO: result: $ac_res" >&5
22104 echo "${ECHO_T}$ac_res" >&6; }
22107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22108 cat >>confdefs.h <<_ACEOF
22109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22110 _ACEOF
22112 else
22114 for ac_header in kerberosIV/krb.h
22116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 ac_res=`eval echo '${'$as_ac_Header'}'`
22124 { echo "$as_me:$LINENO: result: $ac_res" >&5
22125 echo "${ECHO_T}$ac_res" >&6; }
22126 else
22127 # Is the header compilable?
22128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22130 cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136 $ac_includes_default
22137 #include <$ac_header>
22138 _ACEOF
22139 rm -f conftest.$ac_objext
22140 if { (ac_try="$ac_compile"
22141 case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146 (eval "$ac_compile") 2>conftest.er1
22147 ac_status=$?
22148 grep -v '^ *+' conftest.er1 >conftest.err
22149 rm -f conftest.er1
22150 cat conftest.err >&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); } && {
22153 test -z "$ac_c_werror_flag" ||
22154 test ! -s conftest.err
22155 } && test -s conftest.$ac_objext; then
22156 ac_header_compiler=yes
22157 else
22158 echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.$ac_ext >&5
22161 ac_header_compiler=no
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22166 echo "${ECHO_T}$ac_header_compiler" >&6; }
22168 # Is the header present?
22169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h. */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 #include <$ac_header>
22178 _ACEOF
22179 if { (ac_try="$ac_cpp conftest.$ac_ext"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } >/dev/null && {
22192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 }; then
22195 ac_header_preproc=yes
22196 else
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 ac_header_preproc=no
22203 rm -f conftest.err conftest.$ac_ext
22204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22205 echo "${ECHO_T}$ac_header_preproc" >&6; }
22207 # So? What about this header?
22208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22209 yes:no: )
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22214 ac_header_preproc=yes
22216 no:yes:* )
22217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22231 esac
22232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 else
22237 eval "$as_ac_Header=\$ac_header_preproc"
22239 ac_res=`eval echo '${'$as_ac_Header'}'`
22240 { echo "$as_me:$LINENO: result: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22245 cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22247 _ACEOF
22249 else
22251 for ac_header in kerberos/krb.h
22253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22258 echo $ECHO_N "(cached) $ECHO_C" >&6
22260 ac_res=`eval echo '${'$as_ac_Header'}'`
22261 { echo "$as_me:$LINENO: result: $ac_res" >&5
22262 echo "${ECHO_T}$ac_res" >&6; }
22263 else
22264 # Is the header compilable?
22265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h. */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 #include <$ac_header>
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_compile") 2>conftest.er1
22284 ac_status=$?
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } && {
22290 test -z "$ac_c_werror_flag" ||
22291 test ! -s conftest.err
22292 } && test -s conftest.$ac_objext; then
22293 ac_header_compiler=yes
22294 else
22295 echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22298 ac_header_compiler=no
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h. */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h. */
22314 #include <$ac_header>
22315 _ACEOF
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null && {
22329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22330 test ! -s conftest.err
22331 }; then
22332 ac_header_preproc=yes
22333 else
22334 echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22337 ac_header_preproc=no
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22344 # So? What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22346 yes:no: )
22347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22351 ac_header_preproc=yes
22353 no:yes:* )
22354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22368 esac
22369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374 eval "$as_ac_Header=\$ac_header_preproc"
22376 ac_res=`eval echo '${'$as_ac_Header'}'`
22377 { echo "$as_me:$LINENO: result: $ac_res" >&5
22378 echo "${ECHO_T}$ac_res" >&6; }
22381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22384 _ACEOF
22388 done
22392 done
22396 done
22400 for ac_header in com_err.h
22402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 ac_res=`eval echo '${'$as_ac_Header'}'`
22410 { echo "$as_me:$LINENO: result: $ac_res" >&5
22411 echo "${ECHO_T}$ac_res" >&6; }
22412 else
22413 # Is the header compilable?
22414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22416 cat >conftest.$ac_ext <<_ACEOF
22417 /* confdefs.h. */
22418 _ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 $ac_includes_default
22423 #include <$ac_header>
22424 _ACEOF
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_compile") 2>conftest.er1
22433 ac_status=$?
22434 grep -v '^ *+' conftest.er1 >conftest.err
22435 rm -f conftest.er1
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest.$ac_objext; then
22442 ac_header_compiler=yes
22443 else
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ac_header_compiler=no
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22452 echo "${ECHO_T}$ac_header_compiler" >&6; }
22454 # Is the header present?
22455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22457 cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h. */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 #include <$ac_header>
22464 _ACEOF
22465 if { (ac_try="$ac_cpp conftest.$ac_ext"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22472 ac_status=$?
22473 grep -v '^ *+' conftest.er1 >conftest.err
22474 rm -f conftest.er1
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } >/dev/null && {
22478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 }; then
22481 ac_header_preproc=yes
22482 else
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22486 ac_header_preproc=no
22489 rm -f conftest.err conftest.$ac_ext
22490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22491 echo "${ECHO_T}$ac_header_preproc" >&6; }
22493 # So? What about this header?
22494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22495 yes:no: )
22496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22500 ac_header_preproc=yes
22502 no:yes:* )
22503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22517 esac
22518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22521 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 else
22523 eval "$as_ac_Header=\$ac_header_preproc"
22525 ac_res=`eval echo '${'$as_ac_Header'}'`
22526 { echo "$as_me:$LINENO: result: $ac_res" >&5
22527 echo "${ECHO_T}$ac_res" >&6; }
22530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22531 cat >>confdefs.h <<_ACEOF
22532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22533 _ACEOF
22537 done
22541 # Solaris requires -lintl if you want strerror (which calls dgettext)
22542 # to return localized messages.
22544 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22545 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22546 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22547 echo $ECHO_N "(cached) $ECHO_C" >&6
22548 else
22549 ac_check_lib_save_LIBS=$LIBS
22550 LIBS="-lintl $LIBS"
22551 cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h. */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22558 /* Override any GCC internal prototype to avoid an error.
22559 Use char because int might match the return type of a GCC
22560 builtin and then its argument prototype would still apply. */
22561 #ifdef __cplusplus
22562 extern "C"
22563 #endif
22564 char dgettext ();
22566 main ()
22568 return dgettext ();
22570 return 0;
22572 _ACEOF
22573 rm -f conftest.$ac_objext conftest$ac_exeext
22574 if { (ac_try="$ac_link"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22578 esac
22579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_link") 2>conftest.er1
22581 ac_status=$?
22582 grep -v '^ *+' conftest.er1 >conftest.err
22583 rm -f conftest.er1
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest$ac_exeext &&
22590 $as_test_x conftest$ac_exeext; then
22591 ac_cv_lib_intl_dgettext=yes
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22596 ac_cv_lib_intl_dgettext=no
22599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22600 conftest$ac_exeext conftest.$ac_ext
22601 LIBS=$ac_check_lib_save_LIBS
22603 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22604 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22605 if test $ac_cv_lib_intl_dgettext = yes; then
22606 cat >>confdefs.h <<_ACEOF
22607 #define HAVE_LIBINTL 1
22608 _ACEOF
22610 LIBS="-lintl $LIBS"
22615 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22616 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22617 if test "${emacs_cv_localtime_cache+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 else
22620 if test x$ac_cv_func_tzset = xyes; then
22621 if test "$cross_compiling" = yes; then
22622 # If we have tzset, assume the worst when cross-compiling.
22623 emacs_cv_localtime_cache=yes
22624 else
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h. */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 #include <time.h>
22632 extern char **environ;
22633 unset_TZ ()
22635 char **from, **to;
22636 for (to = from = environ; (*to = *from); from++)
22637 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22638 to++;
22640 char TZ_GMT0[] = "TZ=GMT0";
22641 char TZ_PST8[] = "TZ=PST8";
22642 main()
22644 time_t now = time ((time_t *) 0);
22645 int hour_GMT0, hour_unset;
22646 if (putenv (TZ_GMT0) != 0)
22647 exit (1);
22648 hour_GMT0 = localtime (&now)->tm_hour;
22649 unset_TZ ();
22650 hour_unset = localtime (&now)->tm_hour;
22651 if (putenv (TZ_PST8) != 0)
22652 exit (1);
22653 if (localtime (&now)->tm_hour == hour_GMT0)
22654 exit (1);
22655 unset_TZ ();
22656 if (localtime (&now)->tm_hour != hour_unset)
22657 exit (1);
22658 exit (0);
22660 _ACEOF
22661 rm -f conftest$ac_exeext
22662 if { (ac_try="$ac_link"
22663 case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_link") 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22672 { (case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22675 esac
22676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_try") 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; }; then
22681 emacs_cv_localtime_cache=no
22682 else
22683 echo "$as_me: program exited with status $ac_status" >&5
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22687 ( exit $ac_status )
22688 emacs_cv_localtime_cache=yes
22690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22694 else
22695 # If we lack tzset, report that localtime does not cache TZ,
22696 # since we can't invalidate the cache if we don't have tzset.
22697 emacs_cv_localtime_cache=no
22700 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22701 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22702 if test $emacs_cv_localtime_cache = yes; then
22704 cat >>confdefs.h <<\_ACEOF
22705 #define LOCALTIME_CACHE 1
22706 _ACEOF
22710 if test "x$HAVE_TIMEVAL" = xyes; then
22712 for ac_func in gettimeofday
22714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22718 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 else
22720 cat >conftest.$ac_ext <<_ACEOF
22721 /* confdefs.h. */
22722 _ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22728 #define $ac_func innocuous_$ac_func
22730 /* System header to define __stub macros and hopefully few prototypes,
22731 which can conflict with char $ac_func (); below.
22732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22733 <limits.h> exists even on freestanding compilers. */
22735 #ifdef __STDC__
22736 # include <limits.h>
22737 #else
22738 # include <assert.h>
22739 #endif
22741 #undef $ac_func
22743 /* Override any GCC internal prototype to avoid an error.
22744 Use char because int might match the return type of a GCC
22745 builtin and then its argument prototype would still apply. */
22746 #ifdef __cplusplus
22747 extern "C"
22748 #endif
22749 char $ac_func ();
22750 /* The GNU C library defines this for functions which it implements
22751 to always fail with ENOSYS. Some functions are actually named
22752 something starting with __ and the normal name is an alias. */
22753 #if defined __stub_$ac_func || defined __stub___$ac_func
22754 choke me
22755 #endif
22758 main ()
22760 return $ac_func ();
22762 return 0;
22764 _ACEOF
22765 rm -f conftest.$ac_objext conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_link") 2>conftest.er1
22773 ac_status=$?
22774 grep -v '^ *+' conftest.er1 >conftest.err
22775 rm -f conftest.er1
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest$ac_exeext &&
22782 $as_test_x conftest$ac_exeext; then
22783 eval "$as_ac_var=yes"
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 eval "$as_ac_var=no"
22791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22792 conftest$ac_exeext conftest.$ac_ext
22794 ac_res=`eval echo '${'$as_ac_var'}'`
22795 { echo "$as_me:$LINENO: result: $ac_res" >&5
22796 echo "${ECHO_T}$ac_res" >&6; }
22797 if test `eval echo '${'$as_ac_var'}'` = yes; then
22798 cat >>confdefs.h <<_ACEOF
22799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22800 _ACEOF
22803 done
22805 if test $ac_cv_func_gettimeofday = yes; then
22806 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22807 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22808 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
22810 else
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22818 #ifdef TIME_WITH_SYS_TIME
22819 #include <sys/time.h>
22820 #include <time.h>
22821 #else
22822 #ifdef HAVE_SYS_TIME_H
22823 #include <sys/time.h>
22824 #else
22825 #include <time.h>
22826 #endif
22827 #endif
22829 main ()
22831 struct timeval time;
22832 gettimeofday (&time, 0);
22834 return 0;
22836 _ACEOF
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22845 ac_status=$?
22846 grep -v '^ *+' conftest.er1 >conftest.err
22847 rm -f conftest.er1
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 emacs_cv_gettimeofday_two_arguments=yes
22855 else
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 emacs_cv_gettimeofday_two_arguments=no
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22865 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22866 if test $emacs_cv_gettimeofday_two_arguments = no; then
22868 cat >>confdefs.h <<\_ACEOF
22869 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22870 _ACEOF
22876 ok_so_far=yes
22877 { echo "$as_me:$LINENO: checking for socket" >&5
22878 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22879 if test "${ac_cv_func_socket+set}" = set; then
22880 echo $ECHO_N "(cached) $ECHO_C" >&6
22881 else
22882 cat >conftest.$ac_ext <<_ACEOF
22883 /* confdefs.h. */
22884 _ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22888 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22890 #define socket innocuous_socket
22892 /* System header to define __stub macros and hopefully few prototypes,
22893 which can conflict with char socket (); below.
22894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22895 <limits.h> exists even on freestanding compilers. */
22897 #ifdef __STDC__
22898 # include <limits.h>
22899 #else
22900 # include <assert.h>
22901 #endif
22903 #undef socket
22905 /* Override any GCC internal prototype to avoid an error.
22906 Use char because int might match the return type of a GCC
22907 builtin and then its argument prototype would still apply. */
22908 #ifdef __cplusplus
22909 extern "C"
22910 #endif
22911 char socket ();
22912 /* The GNU C library defines this for functions which it implements
22913 to always fail with ENOSYS. Some functions are actually named
22914 something starting with __ and the normal name is an alias. */
22915 #if defined __stub_socket || defined __stub___socket
22916 choke me
22917 #endif
22920 main ()
22922 return socket ();
22924 return 0;
22926 _ACEOF
22927 rm -f conftest.$ac_objext conftest$ac_exeext
22928 if { (ac_try="$ac_link"
22929 case "(($ac_try" in
22930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22931 *) ac_try_echo=$ac_try;;
22932 esac
22933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22934 (eval "$ac_link") 2>conftest.er1
22935 ac_status=$?
22936 grep -v '^ *+' conftest.er1 >conftest.err
22937 rm -f conftest.er1
22938 cat conftest.err >&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); } && {
22941 test -z "$ac_c_werror_flag" ||
22942 test ! -s conftest.err
22943 } && test -s conftest$ac_exeext &&
22944 $as_test_x conftest$ac_exeext; then
22945 ac_cv_func_socket=yes
22946 else
22947 echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22950 ac_cv_func_socket=no
22953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22954 conftest$ac_exeext conftest.$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22957 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22958 if test $ac_cv_func_socket = yes; then
22960 else
22961 ok_so_far=no
22964 if test $ok_so_far = yes; then
22965 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22966 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22967 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22968 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22969 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22972 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22973 else
22974 # Is the header compilable?
22975 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22976 echo $ECHO_N "checking netinet/in.h usability... $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 $ac_includes_default
22984 #include <netinet/in.h>
22985 _ACEOF
22986 rm -f conftest.$ac_objext
22987 if { (ac_try="$ac_compile"
22988 case "(($ac_try" in
22989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990 *) ac_try_echo=$ac_try;;
22991 esac
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993 (eval "$ac_compile") 2>conftest.er1
22994 ac_status=$?
22995 grep -v '^ *+' conftest.er1 >conftest.err
22996 rm -f conftest.er1
22997 cat conftest.err >&5
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } && {
23000 test -z "$ac_c_werror_flag" ||
23001 test ! -s conftest.err
23002 } && test -s conftest.$ac_objext; then
23003 ac_header_compiler=yes
23004 else
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_header_compiler=no
23011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23013 echo "${ECHO_T}$ac_header_compiler" >&6; }
23015 # Is the header present?
23016 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23017 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h. */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 #include <netinet/in.h>
23025 _ACEOF
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029 *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23033 ac_status=$?
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } >/dev/null && {
23039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040 test ! -s conftest.err
23041 }; then
23042 ac_header_preproc=yes
23043 else
23044 echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23047 ac_header_preproc=no
23050 rm -f conftest.err conftest.$ac_ext
23051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23052 echo "${ECHO_T}$ac_header_preproc" >&6; }
23054 # So? What about this header?
23055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23056 yes:no: )
23057 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23058 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23059 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23060 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23061 ac_header_preproc=yes
23063 no:yes:* )
23064 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23065 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23066 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23067 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23068 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23069 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23070 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23071 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23072 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23073 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23074 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23075 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23078 esac
23079 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23080 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
23081 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084 ac_cv_header_netinet_in_h=$ac_header_preproc
23086 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23087 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
23090 if test $ac_cv_header_netinet_in_h = yes; then
23092 else
23093 ok_so_far=no
23098 if test $ok_so_far = yes; then
23099 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23100 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23101 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23102 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23105 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23106 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23107 else
23108 # Is the header compilable?
23109 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23110 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23111 cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h. */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 $ac_includes_default
23118 #include <arpa/inet.h>
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 ac_header_compiler=yes
23138 else
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23142 ac_header_compiler=no
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23147 echo "${ECHO_T}$ac_header_compiler" >&6; }
23149 # Is the header present?
23150 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23151 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h. */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158 #include <arpa/inet.h>
23159 _ACEOF
23160 if { (ac_try="$ac_cpp conftest.$ac_ext"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23164 esac
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23167 ac_status=$?
23168 grep -v '^ *+' conftest.er1 >conftest.err
23169 rm -f conftest.er1
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } >/dev/null && {
23173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23174 test ! -s conftest.err
23175 }; then
23176 ac_header_preproc=yes
23177 else
23178 echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23181 ac_header_preproc=no
23184 rm -f conftest.err conftest.$ac_ext
23185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23186 echo "${ECHO_T}$ac_header_preproc" >&6; }
23188 # So? What about this header?
23189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23190 yes:no: )
23191 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23192 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23193 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23194 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23195 ac_header_preproc=yes
23197 no:yes:* )
23198 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23199 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23200 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23201 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23202 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23203 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23204 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23205 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23206 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23207 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23208 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23209 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23212 esac
23213 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23214 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23215 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218 ac_cv_header_arpa_inet_h=$ac_header_preproc
23220 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23221 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23224 if test $ac_cv_header_arpa_inet_h = yes; then
23226 else
23227 ok_so_far=no
23232 if test $ok_so_far = yes; then
23234 cat >>confdefs.h <<\_ACEOF
23235 #define HAVE_INET_SOCKETS 1
23236 _ACEOF
23241 for ac_header in sys/ioctl.h
23243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 ac_res=`eval echo '${'$as_ac_Header'}'`
23251 { echo "$as_me:$LINENO: result: $ac_res" >&5
23252 echo "${ECHO_T}$ac_res" >&6; }
23253 else
23254 # Is the header compilable?
23255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23257 cat >conftest.$ac_ext <<_ACEOF
23258 /* confdefs.h. */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23263 $ac_includes_default
23264 #include <$ac_header>
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23274 ac_status=$?
23275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_header_compiler=yes
23284 else
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 ac_header_compiler=no
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23293 echo "${ECHO_T}$ac_header_compiler" >&6; }
23295 # Is the header present?
23296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23298 cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h. */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <$ac_header>
23305 _ACEOF
23306 if { (ac_try="$ac_cpp conftest.$ac_ext"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23313 ac_status=$?
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } >/dev/null && {
23319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23321 }; then
23322 ac_header_preproc=yes
23323 else
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 ac_header_preproc=no
23330 rm -f conftest.err conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23332 echo "${ECHO_T}$ac_header_preproc" >&6; }
23334 # So? What about this header?
23335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23336 yes:no: )
23337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23341 ac_header_preproc=yes
23343 no:yes:* )
23344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23358 esac
23359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364 eval "$as_ac_Header=\$ac_header_preproc"
23366 ac_res=`eval echo '${'$as_ac_Header'}'`
23367 { echo "$as_me:$LINENO: result: $ac_res" >&5
23368 echo "${ECHO_T}$ac_res" >&6; }
23371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23372 cat >>confdefs.h <<_ACEOF
23373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23374 _ACEOF
23378 done
23381 if test -f /usr/lpp/X11/bin/smt.exp; then
23383 cat >>confdefs.h <<\_ACEOF
23384 #define HAVE_AIX_SMT_EXP 1
23385 _ACEOF
23389 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23390 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23391 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23392 { echo "$as_me:$LINENO: result: yes" >&5
23393 echo "${ECHO_T}yes" >&6; }
23395 cat >>confdefs.h <<\_ACEOF
23396 #define HAVE_DEV_PTMX 1
23397 _ACEOF
23399 else
23400 { echo "$as_me:$LINENO: result: no" >&5
23401 echo "${ECHO_T}no" >&6; }
23404 { echo "$as_me:$LINENO: checking for pid_t" >&5
23405 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23406 if test "${ac_cv_type_pid_t+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409 cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h. */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 $ac_includes_default
23416 typedef pid_t ac__type_new_;
23418 main ()
23420 if ((ac__type_new_ *) 0)
23421 return 0;
23422 if (sizeof (ac__type_new_))
23423 return 0;
23425 return 0;
23427 _ACEOF
23428 rm -f conftest.$ac_objext
23429 if { (ac_try="$ac_compile"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23433 esac
23434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_compile") 2>conftest.er1
23436 ac_status=$?
23437 grep -v '^ *+' conftest.er1 >conftest.err
23438 rm -f conftest.er1
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } && {
23442 test -z "$ac_c_werror_flag" ||
23443 test ! -s conftest.err
23444 } && test -s conftest.$ac_objext; then
23445 ac_cv_type_pid_t=yes
23446 else
23447 echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23450 ac_cv_type_pid_t=no
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23456 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23457 if test $ac_cv_type_pid_t = yes; then
23459 else
23461 cat >>confdefs.h <<_ACEOF
23462 #define pid_t int
23463 _ACEOF
23468 for ac_header in vfork.h
23470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23475 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 ac_res=`eval echo '${'$as_ac_Header'}'`
23478 { echo "$as_me:$LINENO: result: $ac_res" >&5
23479 echo "${ECHO_T}$ac_res" >&6; }
23480 else
23481 # Is the header compilable?
23482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h. */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23491 #include <$ac_header>
23492 _ACEOF
23493 rm -f conftest.$ac_objext
23494 if { (ac_try="$ac_compile"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_compile") 2>conftest.er1
23501 ac_status=$?
23502 grep -v '^ *+' conftest.er1 >conftest.err
23503 rm -f conftest.er1
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest.$ac_objext; then
23510 ac_header_compiler=yes
23511 else
23512 echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 ac_header_compiler=no
23518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23520 echo "${ECHO_T}$ac_header_compiler" >&6; }
23522 # Is the header present?
23523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23525 cat >conftest.$ac_ext <<_ACEOF
23526 /* confdefs.h. */
23527 _ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 #include <$ac_header>
23532 _ACEOF
23533 if { (ac_try="$ac_cpp conftest.$ac_ext"
23534 case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } >/dev/null && {
23546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 }; then
23549 ac_header_preproc=yes
23550 else
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_header_preproc=no
23557 rm -f conftest.err conftest.$ac_ext
23558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23559 echo "${ECHO_T}$ac_header_preproc" >&6; }
23561 # So? What about this header?
23562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23563 yes:no: )
23564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23568 ac_header_preproc=yes
23570 no:yes:* )
23571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23585 esac
23586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591 eval "$as_ac_Header=\$ac_header_preproc"
23593 ac_res=`eval echo '${'$as_ac_Header'}'`
23594 { echo "$as_me:$LINENO: result: $ac_res" >&5
23595 echo "${ECHO_T}$ac_res" >&6; }
23598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23601 _ACEOF
23605 done
23609 for ac_func in fork vfork
23611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23625 #define $ac_func innocuous_$ac_func
23627 /* System header to define __stub macros and hopefully few prototypes,
23628 which can conflict with char $ac_func (); below.
23629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23630 <limits.h> exists even on freestanding compilers. */
23632 #ifdef __STDC__
23633 # include <limits.h>
23634 #else
23635 # include <assert.h>
23636 #endif
23638 #undef $ac_func
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23643 #ifdef __cplusplus
23644 extern "C"
23645 #endif
23646 char $ac_func ();
23647 /* The GNU C library defines this for functions which it implements
23648 to always fail with ENOSYS. Some functions are actually named
23649 something starting with __ and the normal name is an alias. */
23650 #if defined __stub_$ac_func || defined __stub___$ac_func
23651 choke me
23652 #endif
23655 main ()
23657 return $ac_func ();
23659 return 0;
23661 _ACEOF
23662 rm -f conftest.$ac_objext conftest$ac_exeext
23663 if { (ac_try="$ac_link"
23664 case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23667 esac
23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669 (eval "$ac_link") 2>conftest.er1
23670 ac_status=$?
23671 grep -v '^ *+' conftest.er1 >conftest.err
23672 rm -f conftest.er1
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && {
23676 test -z "$ac_c_werror_flag" ||
23677 test ! -s conftest.err
23678 } && test -s conftest$ac_exeext &&
23679 $as_test_x conftest$ac_exeext; then
23680 eval "$as_ac_var=yes"
23681 else
23682 echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23685 eval "$as_ac_var=no"
23688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23689 conftest$ac_exeext conftest.$ac_ext
23691 ac_res=`eval echo '${'$as_ac_var'}'`
23692 { echo "$as_me:$LINENO: result: $ac_res" >&5
23693 echo "${ECHO_T}$ac_res" >&6; }
23694 if test `eval echo '${'$as_ac_var'}'` = yes; then
23695 cat >>confdefs.h <<_ACEOF
23696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23697 _ACEOF
23700 done
23702 if test "x$ac_cv_func_fork" = xyes; then
23703 { echo "$as_me:$LINENO: checking for working fork" >&5
23704 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23705 if test "${ac_cv_func_fork_works+set}" = set; then
23706 echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708 if test "$cross_compiling" = yes; then
23709 ac_cv_func_fork_works=cross
23710 else
23711 cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h. */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 $ac_includes_default
23719 main ()
23722 /* By Ruediger Kuhlmann. */
23723 return fork () < 0;
23726 return 0;
23728 _ACEOF
23729 rm -f conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_link") 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23740 { (case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23743 esac
23744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745 (eval "$ac_try") 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 ac_cv_func_fork_works=yes
23750 else
23751 echo "$as_me: program exited with status $ac_status" >&5
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 ( exit $ac_status )
23756 ac_cv_func_fork_works=no
23758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23763 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23764 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23766 else
23767 ac_cv_func_fork_works=$ac_cv_func_fork
23769 if test "x$ac_cv_func_fork_works" = xcross; then
23770 case $host in
23771 *-*-amigaos* | *-*-msdosdjgpp*)
23772 # Override, as these systems have only a dummy fork() stub
23773 ac_cv_func_fork_works=no
23776 ac_cv_func_fork_works=yes
23778 esac
23779 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23780 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23782 ac_cv_func_vfork_works=$ac_cv_func_vfork
23783 if test "x$ac_cv_func_vfork" = xyes; then
23784 { echo "$as_me:$LINENO: checking for working vfork" >&5
23785 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23786 if test "${ac_cv_func_vfork_works+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789 if test "$cross_compiling" = yes; then
23790 ac_cv_func_vfork_works=cross
23791 else
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 /* Thanks to Paul Eggert for this test. */
23799 $ac_includes_default
23800 #include <sys/wait.h>
23801 #ifdef HAVE_VFORK_H
23802 # include <vfork.h>
23803 #endif
23804 /* On some sparc systems, changes by the child to local and incoming
23805 argument registers are propagated back to the parent. The compiler
23806 is told about this with #include <vfork.h>, but some compilers
23807 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23808 static variable whose address is put into a register that is
23809 clobbered by the vfork. */
23810 static void
23811 #ifdef __cplusplus
23812 sparc_address_test (int arg)
23813 # else
23814 sparc_address_test (arg) int arg;
23815 #endif
23817 static pid_t child;
23818 if (!child) {
23819 child = vfork ();
23820 if (child < 0) {
23821 perror ("vfork");
23822 _exit(2);
23824 if (!child) {
23825 arg = getpid();
23826 write(-1, "", 0);
23827 _exit (arg);
23833 main ()
23835 pid_t parent = getpid ();
23836 pid_t child;
23838 sparc_address_test (0);
23840 child = vfork ();
23842 if (child == 0) {
23843 /* Here is another test for sparc vfork register problems. This
23844 test uses lots of local variables, at least as many local
23845 variables as main has allocated so far including compiler
23846 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23847 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23848 reuse the register of parent for one of the local variables,
23849 since it will think that parent can't possibly be used any more
23850 in this routine. Assigning to the local variable will thus
23851 munge parent in the parent process. */
23852 pid_t
23853 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23854 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23855 /* Convince the compiler that p..p7 are live; otherwise, it might
23856 use the same hardware register for all 8 local variables. */
23857 if (p != p1 || p != p2 || p != p3 || p != p4
23858 || p != p5 || p != p6 || p != p7)
23859 _exit(1);
23861 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23862 from child file descriptors. If the child closes a descriptor
23863 before it execs or exits, this munges the parent's descriptor
23864 as well. Test for this by closing stdout in the child. */
23865 _exit(close(fileno(stdout)) != 0);
23866 } else {
23867 int status;
23868 struct stat st;
23870 while (wait(&status) != child)
23872 return (
23873 /* Was there some problem with vforking? */
23874 child < 0
23876 /* Did the child fail? (This shouldn't happen.) */
23877 || status
23879 /* Did the vfork/compiler bug occur? */
23880 || parent != getpid()
23882 /* Did the file descriptor bug occur? */
23883 || fstat(fileno(stdout), &st) != 0
23887 _ACEOF
23888 rm -f conftest$ac_exeext
23889 if { (ac_try="$ac_link"
23890 case "(($ac_try" in
23891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892 *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895 (eval "$ac_link") 2>&5
23896 ac_status=$?
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23899 { (case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23902 esac
23903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904 (eval "$ac_try") 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 ac_cv_func_vfork_works=yes
23909 else
23910 echo "$as_me: program exited with status $ac_status" >&5
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 ( exit $ac_status )
23915 ac_cv_func_vfork_works=no
23917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23922 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23923 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23926 if test "x$ac_cv_func_fork_works" = xcross; then
23927 ac_cv_func_vfork_works=$ac_cv_func_vfork
23928 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23929 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23932 if test "x$ac_cv_func_vfork_works" = xyes; then
23934 cat >>confdefs.h <<\_ACEOF
23935 #define HAVE_WORKING_VFORK 1
23936 _ACEOF
23938 else
23940 cat >>confdefs.h <<\_ACEOF
23941 #define vfork fork
23942 _ACEOF
23945 if test "x$ac_cv_func_fork_works" = xyes; then
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_WORKING_FORK 1
23949 _ACEOF
23954 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23955 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23956 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23957 echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959 cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 #include <langinfo.h>
23967 main ()
23969 char* cs = nl_langinfo(CODESET);
23971 return 0;
23973 _ACEOF
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_link") 2>conftest.er1
23982 ac_status=$?
23983 grep -v '^ *+' conftest.er1 >conftest.err
23984 rm -f conftest.er1
23985 cat conftest.err >&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && {
23988 test -z "$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23990 } && test -s conftest$ac_exeext &&
23991 $as_test_x conftest$ac_exeext; then
23992 emacs_cv_langinfo_codeset=yes
23993 else
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23997 emacs_cv_langinfo_codeset=no
24000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24001 conftest$ac_exeext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24005 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
24006 if test $emacs_cv_langinfo_codeset = yes; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define HAVE_LANGINFO_CODESET 1
24010 _ACEOF
24014 { echo "$as_me:$LINENO: checking for size_t" >&5
24015 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24016 if test "${ac_cv_type_size_t+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24018 else
24019 cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h. */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24025 $ac_includes_default
24026 typedef size_t ac__type_new_;
24028 main ()
24030 if ((ac__type_new_ *) 0)
24031 return 0;
24032 if (sizeof (ac__type_new_))
24033 return 0;
24035 return 0;
24037 _ACEOF
24038 rm -f conftest.$ac_objext
24039 if { (ac_try="$ac_compile"
24040 case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24045 (eval "$ac_compile") 2>conftest.er1
24046 ac_status=$?
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } && {
24052 test -z "$ac_c_werror_flag" ||
24053 test ! -s conftest.err
24054 } && test -s conftest.$ac_objext; then
24055 ac_cv_type_size_t=yes
24056 else
24057 echo "$as_me: failed program was:" >&5
24058 sed 's/^/| /' conftest.$ac_ext >&5
24060 ac_cv_type_size_t=no
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24066 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24067 if test $ac_cv_type_size_t = yes; then
24069 cat >>confdefs.h <<_ACEOF
24070 #define HAVE_SIZE_T 1
24071 _ACEOF
24077 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
24078 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
24079 if test "${ac_cv_type_mbstate_t+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 else
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h. */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 $ac_includes_default
24089 # include <wchar.h>
24091 main ()
24093 mbstate_t x; return sizeof x;
24095 return 0;
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24106 ac_status=$?
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 ac_cv_type_mbstate_t=yes
24116 else
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_cv_type_mbstate_t=no
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24126 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24127 if test $ac_cv_type_mbstate_t = yes; then
24129 cat >>confdefs.h <<\_ACEOF
24130 #define HAVE_MBSTATE_T 1
24131 _ACEOF
24133 else
24135 cat >>confdefs.h <<\_ACEOF
24136 #define mbstate_t int
24137 _ACEOF
24141 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24142 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24143 if test "${emacs_cv_c_restrict+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146 cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h. */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 void fred (int *restrict x);
24154 main ()
24158 return 0;
24160 _ACEOF
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_compile") 2>conftest.er1
24169 ac_status=$?
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest.$ac_objext; then
24178 emacs_cv_c_restrict=yes
24179 else
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24183 cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h. */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h. */
24189 void fred (int *__restrict x);
24191 main ()
24195 return 0;
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24215 emacs_cv_c_restrict=__restrict
24216 else
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 emacs_cv_c_restrict=no
24223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24229 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24230 case "$emacs_cv_c_restrict" in
24231 yes) emacs_restrict=restrict;;
24232 no) emacs_restrict="";;
24233 *) emacs_restrict="$emacs_cv_c_restrict";;
24234 esac
24235 if test "$emacs_restrict" != __restrict; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define __restrict $emacs_restrict
24239 _ACEOF
24243 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24244 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24245 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24246 echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248 cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h. */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h. */
24254 void fred (int x[__restrict]);
24256 main ()
24260 return 0;
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267 *) ac_try_echo=$ac_try;;
24268 esac
24269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270 (eval "$ac_compile") 2>conftest.er1
24271 ac_status=$?
24272 grep -v '^ *+' conftest.er1 >conftest.err
24273 rm -f conftest.er1
24274 cat conftest.err >&5
24275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276 (exit $ac_status); } && {
24277 test -z "$ac_c_werror_flag" ||
24278 test ! -s conftest.err
24279 } && test -s conftest.$ac_objext; then
24280 emacs_cv_c_restrict_arr=yes
24281 else
24282 echo "$as_me: failed program was:" >&5
24283 sed 's/^/| /' conftest.$ac_ext >&5
24285 emacs_cv_c_restrict_arr=no
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24291 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24292 if test "$emacs_cv_c_restrict_arr" = yes; then
24294 cat >>confdefs.h <<\_ACEOF
24295 #define __restrict_arr __restrict
24296 _ACEOF
24302 # Set up the CFLAGS for real compilation, so we can substitute it.
24303 CFLAGS="$REAL_CFLAGS"
24304 CPPFLAGS="$REAL_CPPFLAGS"
24306 #### Find out which version of Emacs this is.
24307 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24308 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24309 if test x"${version}" = x; then
24310 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24311 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24312 { (exit 1); exit 1; }; }
24315 ### Specify what sort of things we'll be editing into Makefile and config.h.
24316 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24360 cat >>confdefs.h <<_ACEOF
24361 #define EMACS_CONFIGURATION "${canonical}"
24362 _ACEOF
24365 cat >>confdefs.h <<_ACEOF
24366 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24367 _ACEOF
24370 cat >>confdefs.h <<_ACEOF
24371 #define config_machfile "${machfile}"
24372 _ACEOF
24375 cat >>confdefs.h <<_ACEOF
24376 #define config_opsysfile "${opsysfile}"
24377 _ACEOF
24380 cat >>confdefs.h <<_ACEOF
24381 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24382 _ACEOF
24385 cat >>confdefs.h <<_ACEOF
24386 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24387 _ACEOF
24390 cat >>confdefs.h <<_ACEOF
24391 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24392 _ACEOF
24395 cat >>confdefs.h <<_ACEOF
24396 #define UNEXEC_SRC ${UNEXEC_SRC}
24397 _ACEOF
24400 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24402 cat >>confdefs.h <<\_ACEOF
24403 #define HAVE_X_WINDOWS 1
24404 _ACEOF
24407 if test "${USE_X_TOOLKIT}" != "none" ; then
24409 cat >>confdefs.h <<\_ACEOF
24410 #define USE_X_TOOLKIT 1
24411 _ACEOF
24413 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24415 cat >>confdefs.h <<\_ACEOF
24416 #define USE_LUCID 1
24417 _ACEOF
24419 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24421 cat >>confdefs.h <<\_ACEOF
24422 #define USE_MOTIF 1
24423 _ACEOF
24427 if test "${HAVE_X11}" = "yes" ; then
24429 cat >>confdefs.h <<\_ACEOF
24430 #define HAVE_X11 1
24431 _ACEOF
24434 if test "${HAVE_MENUS}" = "yes" ; then
24436 cat >>confdefs.h <<\_ACEOF
24437 #define HAVE_MENUS 1
24438 _ACEOF
24441 if test "${GNU_MALLOC}" = "yes" ; then
24443 cat >>confdefs.h <<\_ACEOF
24444 #define GNU_MALLOC 1
24445 _ACEOF
24448 if test "${REL_ALLOC}" = "yes" ; then
24450 cat >>confdefs.h <<\_ACEOF
24451 #define REL_ALLOC 1
24452 _ACEOF
24461 #### Report on what we decided to do.
24462 #### Report GTK as a toolkit, even if it doesn't use Xt.
24463 #### It makes printing result more understandable as using GTK sets
24464 #### toolkit_scroll_bars to yes by default.
24465 if test "${HAVE_GTK}" = "yes"; then
24466 USE_X_TOOLKIT=GTK
24469 echo "
24470 Configured for \`${canonical}'.
24472 Where should the build process find the source code? ${srcdir}
24473 What operating system and machine description files should Emacs use?
24474 \`${opsysfile}' and \`${machfile}'
24475 What compiler should emacs be built with? ${CC} ${CFLAGS}
24476 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24477 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24478 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24479 What window system should Emacs use? ${window_system}
24480 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24482 if test -n "${x_includes}"; then
24483 echo " Where do we find X Windows header files? ${x_includes}"
24484 else
24485 echo " Where do we find X Windows header files? Standard dirs"
24487 if test -n "${x_libraries}"; then
24488 echo " Where do we find X Windows libraries? ${x_libraries}"
24489 else
24490 echo " Where do we find X Windows libraries? Standard dirs"
24493 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24494 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24495 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24496 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24497 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24498 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24499 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24500 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24501 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24503 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24504 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24505 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24506 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24508 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24509 echo
24511 if test $USE_XASSERTS = yes; then
24512 echo " Compiling with asserts turned on."
24513 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24516 echo
24518 if test "$USE_X_TOOLKIT" = GTK; then
24519 case "$canonical" in
24520 *cygwin*)
24521 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24522 will probably get a crash on startup. If this happens, please use another
24523 toolkit for Emacs. See etc/PROBLEMS for more information."
24525 esac
24528 if test "$HAVE_NS" = "yes"; then
24529 echo
24530 echo "You must run \"make install\" in order to test the built application.
24531 The installed application will go to nextstep/Emacs.app and can be
24532 run or moved from there."
24533 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24534 echo "The application will be fully self-contained."
24535 else
24536 echo "The lisp resources for the application will be installed under ${prefix}.
24537 You may need to run \"make install\" with sudo. The application will fail
24538 to run if these resources are not installed."
24540 echo
24543 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24544 echo "D-Bus integration has been tested for GNU/Linux only."
24545 echo
24549 # Remove any trailing slashes in these variables.
24550 test "${prefix}" != NONE &&
24551 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24552 test "${exec_prefix}" != NONE &&
24553 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24555 # Now get this: Some word that is part of the ${srcdir} directory name
24556 # or the ${configuration} value might, just might, happen to be an
24557 # identifier like `sun4' or `i386' or something, and be predefined by
24558 # the C preprocessor to some helpful value like 1, or maybe the empty
24559 # string. Needless to say consequent macro substitutions are less
24560 # than conducive to the makefile finding the correct directory.
24561 cpp_undefs="`echo $srcdir $configuration $canonical |
24562 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24563 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24565 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24566 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24567 ## from Makefile.c can correctly provide the arg `-traditional' to the
24568 ## C preprocessor.
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h. */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24576 yes..yes
24577 _ACEOF
24578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24579 $EGREP "yes..yes" >/dev/null 2>&1; then
24580 CPP_NEED_TRADITIONAL=no
24581 else
24582 CPP_NEED_TRADITIONAL=yes
24584 rm -f conftest*
24587 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"
24589 ac_config_commands="$ac_config_commands default"
24591 cat >confcache <<\_ACEOF
24592 # This file is a shell script that caches the results of configure
24593 # tests run on this system so they can be shared between configure
24594 # scripts and configure runs, see configure's option --config-cache.
24595 # It is not useful on other systems. If it contains results you don't
24596 # want to keep, you may remove or edit it.
24598 # config.status only pays attention to the cache file if you give it
24599 # the --recheck option to rerun configure.
24601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24603 # following values.
24605 _ACEOF
24607 # The following way of writing the cache mishandles newlines in values,
24608 # but we know of no workaround that is simple, portable, and efficient.
24609 # So, we kill variables containing newlines.
24610 # Ultrix sh set writes to stderr and can't be redirected directly,
24611 # and sets the high bit in the cache file unless we assign to the vars.
24613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24614 eval ac_val=\$$ac_var
24615 case $ac_val in #(
24616 *${as_nl}*)
24617 case $ac_var in #(
24618 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24619 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24620 esac
24621 case $ac_var in #(
24622 _ | IFS | as_nl) ;; #(
24623 *) $as_unset $ac_var ;;
24624 esac ;;
24625 esac
24626 done
24628 (set) 2>&1 |
24629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24630 *${as_nl}ac_space=\ *)
24631 # `set' does not quote correctly, so add quotes (double-quote
24632 # substitution turns \\\\ into \\, and sed turns \\ into \).
24633 sed -n \
24634 "s/'/'\\\\''/g;
24635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24636 ;; #(
24638 # `set' quotes correctly as required by POSIX, so do not add quotes.
24639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24641 esac |
24642 sort
24644 sed '
24645 /^ac_cv_env_/b end
24646 t clear
24647 :clear
24648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24649 t end
24650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24651 :end' >>confcache
24652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24653 if test -w "$cache_file"; then
24654 test "x$cache_file" != "x/dev/null" &&
24655 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24656 echo "$as_me: updating cache $cache_file" >&6;}
24657 cat confcache >$cache_file
24658 else
24659 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24660 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24663 rm -f confcache
24665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24666 # Let make expand exec_prefix.
24667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24669 DEFS=-DHAVE_CONFIG_H
24671 ac_libobjs=
24672 ac_ltlibobjs=
24673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24674 # 1. Remove the extension, and $U if already installed.
24675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24676 ac_i=`echo "$ac_i" | sed "$ac_script"`
24677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24678 # will be set to the directory where LIBOBJS objects are built.
24679 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24680 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24681 done
24682 LIBOBJS=$ac_libobjs
24684 LTLIBOBJS=$ac_ltlibobjs
24688 : ${CONFIG_STATUS=./config.status}
24689 ac_clean_files_save=$ac_clean_files
24690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24693 cat >$CONFIG_STATUS <<_ACEOF
24694 #! $SHELL
24695 # Generated by $as_me.
24696 # Run this file to recreate the current configuration.
24697 # Compiler output produced by configure, useful for debugging
24698 # configure, is in config.log if it exists.
24700 debug=false
24701 ac_cs_recheck=false
24702 ac_cs_silent=false
24703 SHELL=\${CONFIG_SHELL-$SHELL}
24704 _ACEOF
24706 cat >>$CONFIG_STATUS <<\_ACEOF
24707 ## --------------------- ##
24708 ## M4sh Initialization. ##
24709 ## --------------------- ##
24711 # Be more Bourne compatible
24712 DUALCASE=1; export DUALCASE # for MKS sh
24713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24714 emulate sh
24715 NULLCMD=:
24716 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24717 # is contrary to our usage. Disable this feature.
24718 alias -g '${1+"$@"}'='"$@"'
24719 setopt NO_GLOB_SUBST
24720 else
24721 case `(set -o) 2>/dev/null` in
24722 *posix*) set -o posix ;;
24723 esac
24730 # PATH needs CR
24731 # Avoid depending upon Character Ranges.
24732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24735 as_cr_digits='0123456789'
24736 as_cr_alnum=$as_cr_Letters$as_cr_digits
24738 # The user is always right.
24739 if test "${PATH_SEPARATOR+set}" != set; then
24740 echo "#! /bin/sh" >conf$$.sh
24741 echo "exit 0" >>conf$$.sh
24742 chmod +x conf$$.sh
24743 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24744 PATH_SEPARATOR=';'
24745 else
24746 PATH_SEPARATOR=:
24748 rm -f conf$$.sh
24751 # Support unset when possible.
24752 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24753 as_unset=unset
24754 else
24755 as_unset=false
24759 # IFS
24760 # We need space, tab and new line, in precisely that order. Quoting is
24761 # there to prevent editors from complaining about space-tab.
24762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24763 # splitting by setting IFS to empty value.)
24764 as_nl='
24766 IFS=" "" $as_nl"
24768 # Find who we are. Look in the path if we contain no directory separator.
24769 case $0 in
24770 *[\\/]* ) as_myself=$0 ;;
24771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24772 for as_dir in $PATH
24774 IFS=$as_save_IFS
24775 test -z "$as_dir" && as_dir=.
24776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24777 done
24778 IFS=$as_save_IFS
24781 esac
24782 # We did not find ourselves, most probably we were run as `sh COMMAND'
24783 # in which case we are not to be found in the path.
24784 if test "x$as_myself" = x; then
24785 as_myself=$0
24787 if test ! -f "$as_myself"; then
24788 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24789 { (exit 1); exit 1; }
24792 # Work around bugs in pre-3.0 UWIN ksh.
24793 for as_var in ENV MAIL MAILPATH
24794 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24795 done
24796 PS1='$ '
24797 PS2='> '
24798 PS4='+ '
24800 # NLS nuisances.
24801 for as_var in \
24802 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24803 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24804 LC_TELEPHONE LC_TIME
24806 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24807 eval $as_var=C; export $as_var
24808 else
24809 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24811 done
24813 # Required to use basename.
24814 if expr a : '\(a\)' >/dev/null 2>&1 &&
24815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24816 as_expr=expr
24817 else
24818 as_expr=false
24821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24822 as_basename=basename
24823 else
24824 as_basename=false
24828 # Name of the executable.
24829 as_me=`$as_basename -- "$0" ||
24830 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24831 X"$0" : 'X\(//\)$' \| \
24832 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24833 echo X/"$0" |
24834 sed '/^.*\/\([^/][^/]*\)\/*$/{
24835 s//\1/
24838 /^X\/\(\/\/\)$/{
24839 s//\1/
24842 /^X\/\(\/\).*/{
24843 s//\1/
24846 s/.*/./; q'`
24848 # CDPATH.
24849 $as_unset CDPATH
24853 as_lineno_1=$LINENO
24854 as_lineno_2=$LINENO
24855 test "x$as_lineno_1" != "x$as_lineno_2" &&
24856 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24858 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24859 # uniformly replaced by the line number. The first 'sed' inserts a
24860 # line-number line after each line using $LINENO; the second 'sed'
24861 # does the real work. The second script uses 'N' to pair each
24862 # line-number line with the line containing $LINENO, and appends
24863 # trailing '-' during substitution so that $LINENO is not a special
24864 # case at line end.
24865 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24866 # scripts with optimization help from Paolo Bonzini. Blame Lee
24867 # E. McMahon (1931-1989) for sed's syntax. :-)
24868 sed -n '
24870 /[$]LINENO/=
24871 ' <$as_myself |
24872 sed '
24873 s/[$]LINENO.*/&-/
24874 t lineno
24876 :lineno
24878 :loop
24879 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24880 t loop
24881 s/-\n.*//
24882 ' >$as_me.lineno &&
24883 chmod +x "$as_me.lineno" ||
24884 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24885 { (exit 1); exit 1; }; }
24887 # Don't try to exec as it changes $[0], causing all sort of problems
24888 # (the dirname of $[0] is not the place where we might find the
24889 # original and so on. Autoconf is especially sensitive to this).
24890 . "./$as_me.lineno"
24891 # Exit status is that of the last command.
24892 exit
24896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24897 as_dirname=dirname
24898 else
24899 as_dirname=false
24902 ECHO_C= ECHO_N= ECHO_T=
24903 case `echo -n x` in
24904 -n*)
24905 case `echo 'x\c'` in
24906 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24907 *) ECHO_C='\c';;
24908 esac;;
24910 ECHO_N='-n';;
24911 esac
24913 if expr a : '\(a\)' >/dev/null 2>&1 &&
24914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24915 as_expr=expr
24916 else
24917 as_expr=false
24920 rm -f conf$$ conf$$.exe conf$$.file
24921 if test -d conf$$.dir; then
24922 rm -f conf$$.dir/conf$$.file
24923 else
24924 rm -f conf$$.dir
24925 mkdir conf$$.dir
24927 echo >conf$$.file
24928 if ln -s conf$$.file conf$$ 2>/dev/null; then
24929 as_ln_s='ln -s'
24930 # ... but there are two gotchas:
24931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24933 # In both cases, we have to default to `cp -p'.
24934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24935 as_ln_s='cp -p'
24936 elif ln conf$$.file conf$$ 2>/dev/null; then
24937 as_ln_s=ln
24938 else
24939 as_ln_s='cp -p'
24941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24942 rmdir conf$$.dir 2>/dev/null
24944 if mkdir -p . 2>/dev/null; then
24945 as_mkdir_p=:
24946 else
24947 test -d ./-p && rmdir ./-p
24948 as_mkdir_p=false
24951 if test -x / >/dev/null 2>&1; then
24952 as_test_x='test -x'
24953 else
24954 if ls -dL / >/dev/null 2>&1; then
24955 as_ls_L_option=L
24956 else
24957 as_ls_L_option=
24959 as_test_x='
24960 eval sh -c '\''
24961 if test -d "$1"; then
24962 test -d "$1/.";
24963 else
24964 case $1 in
24965 -*)set "./$1";;
24966 esac;
24967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24968 ???[sx]*):;;*)false;;esac;fi
24969 '\'' sh
24972 as_executable_p=$as_test_x
24974 # Sed expression to map a string onto a valid CPP name.
24975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24977 # Sed expression to map a string onto a valid variable name.
24978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24981 exec 6>&1
24983 # Save the log message, to keep $[0] and so on meaningful, and to
24984 # report actual input values of CONFIG_FILES etc. instead of their
24985 # values after options handling.
24986 ac_log="
24987 This file was extended by emacs $as_me 23.1.50, which was
24988 generated by GNU Autoconf 2.61. Invocation command line was
24990 CONFIG_FILES = $CONFIG_FILES
24991 CONFIG_HEADERS = $CONFIG_HEADERS
24992 CONFIG_LINKS = $CONFIG_LINKS
24993 CONFIG_COMMANDS = $CONFIG_COMMANDS
24994 $ $0 $@
24996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24999 _ACEOF
25001 cat >>$CONFIG_STATUS <<_ACEOF
25002 # Files that config.status was made for.
25003 config_files="$ac_config_files"
25004 config_headers="$ac_config_headers"
25005 config_commands="$ac_config_commands"
25007 _ACEOF
25009 cat >>$CONFIG_STATUS <<\_ACEOF
25010 ac_cs_usage="\
25011 \`$as_me' instantiates files from templates according to the
25012 current configuration.
25014 Usage: $0 [OPTIONS] [FILE]...
25016 -h, --help print this help, then exit
25017 -V, --version print version number and configuration settings, then exit
25018 -q, --quiet do not print progress messages
25019 -d, --debug don't remove temporary files
25020 --recheck update $as_me by reconfiguring in the same conditions
25021 --file=FILE[:TEMPLATE]
25022 instantiate the configuration file FILE
25023 --header=FILE[:TEMPLATE]
25024 instantiate the configuration header FILE
25026 Configuration files:
25027 $config_files
25029 Configuration headers:
25030 $config_headers
25032 Configuration commands:
25033 $config_commands
25035 Report bugs to <bug-autoconf@gnu.org>."
25037 _ACEOF
25038 cat >>$CONFIG_STATUS <<_ACEOF
25039 ac_cs_version="\\
25040 emacs config.status 23.1.50
25041 configured by $0, generated by GNU Autoconf 2.61,
25042 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25044 Copyright (C) 2006 Free Software Foundation, Inc.
25045 This config.status script is free software; the Free Software Foundation
25046 gives unlimited permission to copy, distribute and modify it."
25048 ac_pwd='$ac_pwd'
25049 srcdir='$srcdir'
25050 INSTALL='$INSTALL'
25051 _ACEOF
25053 cat >>$CONFIG_STATUS <<\_ACEOF
25054 # If no file are specified by the user, then we need to provide default
25055 # value. By we need to know if files were specified by the user.
25056 ac_need_defaults=:
25057 while test $# != 0
25059 case $1 in
25060 --*=*)
25061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25062 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25063 ac_shift=:
25066 ac_option=$1
25067 ac_optarg=$2
25068 ac_shift=shift
25070 esac
25072 case $ac_option in
25073 # Handling of the options.
25074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25075 ac_cs_recheck=: ;;
25076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25077 echo "$ac_cs_version"; exit ;;
25078 --debug | --debu | --deb | --de | --d | -d )
25079 debug=: ;;
25080 --file | --fil | --fi | --f )
25081 $ac_shift
25082 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25083 ac_need_defaults=false;;
25084 --header | --heade | --head | --hea )
25085 $ac_shift
25086 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25087 ac_need_defaults=false;;
25088 --he | --h)
25089 # Conflict between --help and --header
25090 { echo "$as_me: error: ambiguous option: $1
25091 Try \`$0 --help' for more information." >&2
25092 { (exit 1); exit 1; }; };;
25093 --help | --hel | -h )
25094 echo "$ac_cs_usage"; exit ;;
25095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25096 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25097 ac_cs_silent=: ;;
25099 # This is an error.
25100 -*) { echo "$as_me: error: unrecognized option: $1
25101 Try \`$0 --help' for more information." >&2
25102 { (exit 1); exit 1; }; } ;;
25104 *) ac_config_targets="$ac_config_targets $1"
25105 ac_need_defaults=false ;;
25107 esac
25108 shift
25109 done
25111 ac_configure_extra_args=
25113 if $ac_cs_silent; then
25114 exec 6>/dev/null
25115 ac_configure_extra_args="$ac_configure_extra_args --silent"
25118 _ACEOF
25119 cat >>$CONFIG_STATUS <<_ACEOF
25120 if \$ac_cs_recheck; then
25121 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25122 CONFIG_SHELL=$SHELL
25123 export CONFIG_SHELL
25124 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25127 _ACEOF
25128 cat >>$CONFIG_STATUS <<\_ACEOF
25129 exec 5>>config.log
25131 echo
25132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25133 ## Running $as_me. ##
25134 _ASBOX
25135 echo "$ac_log"
25136 } >&5
25138 _ACEOF
25139 cat >>$CONFIG_STATUS <<_ACEOF
25141 # INIT-COMMANDS
25143 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25145 _ACEOF
25147 cat >>$CONFIG_STATUS <<\_ACEOF
25149 # Handling of arguments.
25150 for ac_config_target in $ac_config_targets
25152 case $ac_config_target in
25153 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25155 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25156 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25157 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25158 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25159 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25160 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25161 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25162 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25163 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25164 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25165 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25167 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25168 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25169 { (exit 1); exit 1; }; };;
25170 esac
25171 done
25174 # If the user did not use the arguments to specify the items to instantiate,
25175 # then the envvar interface is used. Set only those that are not.
25176 # We use the long form for the default assignment because of an extremely
25177 # bizarre bug on SunOS 4.1.3.
25178 if $ac_need_defaults; then
25179 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25180 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25181 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25184 # Have a temporary directory for convenience. Make it in the build tree
25185 # simply because there is no reason against having it here, and in addition,
25186 # creating and moving files from /tmp can sometimes cause problems.
25187 # Hook for its removal unless debugging.
25188 # Note that there is a small window in which the directory will not be cleaned:
25189 # after its creation but before its name has been assigned to `$tmp'.
25190 $debug ||
25192 tmp=
25193 trap 'exit_status=$?
25194 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25196 trap '{ (exit 1); exit 1; }' 1 2 13 15
25198 # Create a (secure) tmp directory for tmp files.
25201 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25202 test -n "$tmp" && test -d "$tmp"
25203 } ||
25205 tmp=./conf$$-$RANDOM
25206 (umask 077 && mkdir "$tmp")
25207 } ||
25209 echo "$me: cannot create a temporary directory in ." >&2
25210 { (exit 1); exit 1; }
25214 # Set up the sed scripts for CONFIG_FILES section.
25217 # No need to generate the scripts if there are no CONFIG_FILES.
25218 # This happens for instance when ./config.status config.h
25219 if test -n "$CONFIG_FILES"; then
25221 _ACEOF
25225 ac_delim='%!_!# '
25226 for ac_last_try in false false false false false :; do
25227 cat >conf$$subs.sed <<_ACEOF
25228 SHELL!$SHELL$ac_delim
25229 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25230 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25231 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25232 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25233 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25234 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25235 exec_prefix!$exec_prefix$ac_delim
25236 prefix!$prefix$ac_delim
25237 program_transform_name!$program_transform_name$ac_delim
25238 bindir!$bindir$ac_delim
25239 sbindir!$sbindir$ac_delim
25240 libexecdir!$libexecdir$ac_delim
25241 datarootdir!$datarootdir$ac_delim
25242 datadir!$datadir$ac_delim
25243 sysconfdir!$sysconfdir$ac_delim
25244 sharedstatedir!$sharedstatedir$ac_delim
25245 localstatedir!$localstatedir$ac_delim
25246 includedir!$includedir$ac_delim
25247 oldincludedir!$oldincludedir$ac_delim
25248 docdir!$docdir$ac_delim
25249 infodir!$infodir$ac_delim
25250 htmldir!$htmldir$ac_delim
25251 dvidir!$dvidir$ac_delim
25252 pdfdir!$pdfdir$ac_delim
25253 psdir!$psdir$ac_delim
25254 libdir!$libdir$ac_delim
25255 localedir!$localedir$ac_delim
25256 mandir!$mandir$ac_delim
25257 DEFS!$DEFS$ac_delim
25258 ECHO_C!$ECHO_C$ac_delim
25259 ECHO_N!$ECHO_N$ac_delim
25260 ECHO_T!$ECHO_T$ac_delim
25261 LIBS!$LIBS$ac_delim
25262 build_alias!$build_alias$ac_delim
25263 host_alias!$host_alias$ac_delim
25264 target_alias!$target_alias$ac_delim
25265 MAINT!$MAINT$ac_delim
25266 build!$build$ac_delim
25267 build_cpu!$build_cpu$ac_delim
25268 build_vendor!$build_vendor$ac_delim
25269 build_os!$build_os$ac_delim
25270 host!$host$ac_delim
25271 host_cpu!$host_cpu$ac_delim
25272 host_vendor!$host_vendor$ac_delim
25273 host_os!$host_os$ac_delim
25274 CC!$CC$ac_delim
25275 CFLAGS!$CFLAGS$ac_delim
25276 LDFLAGS!$LDFLAGS$ac_delim
25277 CPPFLAGS!$CPPFLAGS$ac_delim
25278 ac_ct_CC!$ac_ct_CC$ac_delim
25279 EXEEXT!$EXEEXT$ac_delim
25280 OBJEXT!$OBJEXT$ac_delim
25281 CPP!$CPP$ac_delim
25282 GREP!$GREP$ac_delim
25283 EGREP!$EGREP$ac_delim
25284 LN_S!$LN_S$ac_delim
25285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25287 INSTALL_DATA!$INSTALL_DATA$ac_delim
25288 RANLIB!$RANLIB$ac_delim
25289 INSTALL_INFO!$INSTALL_INFO$ac_delim
25290 GZIP_PROG!$GZIP_PROG$ac_delim
25291 MAKEINFO!$MAKEINFO$ac_delim
25292 LIBSOUND!$LIBSOUND$ac_delim
25293 PKG_CONFIG!$PKG_CONFIG$ac_delim
25294 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25295 ALSA_LIBS!$ALSA_LIBS$ac_delim
25296 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25297 SET_MAKE!$SET_MAKE$ac_delim
25298 XMKMF!$XMKMF$ac_delim
25299 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25300 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25301 RSVG_LIBS!$RSVG_LIBS$ac_delim
25302 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25303 GTK_LIBS!$GTK_LIBS$ac_delim
25304 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25305 DBUS_LIBS!$DBUS_LIBS$ac_delim
25306 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25307 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25308 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25309 XFT_LIBS!$XFT_LIBS$ac_delim
25310 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25311 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25312 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25313 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25314 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25315 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25316 ALLOCA!$ALLOCA$ac_delim
25317 liblockfile!$liblockfile$ac_delim
25318 LIBOBJS!$LIBOBJS$ac_delim
25319 NEED_SETGID!$NEED_SETGID$ac_delim
25320 KMEM_GROUP!$KMEM_GROUP$ac_delim
25321 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25322 GETOPT_H!$GETOPT_H$ac_delim
25323 GETOPTOBJS!$GETOPTOBJS$ac_delim
25324 version!$version$ac_delim
25325 _ACEOF
25327 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25328 break
25329 elif $ac_last_try; then
25330 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25331 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25332 { (exit 1); exit 1; }; }
25333 else
25334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25336 done
25338 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25339 if test -n "$ac_eof"; then
25340 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25341 ac_eof=`expr $ac_eof + 1`
25344 cat >>$CONFIG_STATUS <<_ACEOF
25345 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25346 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25347 _ACEOF
25348 sed '
25349 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25350 s/^/s,@/; s/!/@,|#_!!_#|/
25353 s/'"$ac_delim"'$/,g/; t
25354 s/$/\\/; p
25355 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25356 ' >>$CONFIG_STATUS <conf$$subs.sed
25357 rm -f conf$$subs.sed
25358 cat >>$CONFIG_STATUS <<_ACEOF
25359 CEOF$ac_eof
25360 _ACEOF
25363 ac_delim='%!_!# '
25364 for ac_last_try in false false false false false :; do
25365 cat >conf$$subs.sed <<_ACEOF
25366 configuration!$configuration$ac_delim
25367 canonical!$canonical$ac_delim
25368 srcdir!$srcdir$ac_delim
25369 lispdir!$lispdir$ac_delim
25370 locallisppath!$locallisppath$ac_delim
25371 lisppath!$lisppath$ac_delim
25372 x_default_search_path!$x_default_search_path$ac_delim
25373 etcdir!$etcdir$ac_delim
25374 archlibdir!$archlibdir$ac_delim
25375 bitmapdir!$bitmapdir$ac_delim
25376 gamedir!$gamedir$ac_delim
25377 gameuser!$gameuser$ac_delim
25378 c_switch_system!$c_switch_system$ac_delim
25379 c_switch_machine!$c_switch_machine$ac_delim
25380 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25381 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25382 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25383 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25384 machfile!$machfile$ac_delim
25385 opsysfile!$opsysfile$ac_delim
25386 ns_appdir!$ns_appdir$ac_delim
25387 ns_appbindir!$ns_appbindir$ac_delim
25388 ns_appresdir!$ns_appresdir$ac_delim
25389 ns_appsrc!$ns_appsrc$ac_delim
25390 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25391 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25392 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25393 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25394 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25395 LTLIBOBJS!$LTLIBOBJS$ac_delim
25396 _ACEOF
25398 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25399 break
25400 elif $ac_last_try; then
25401 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25402 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25403 { (exit 1); exit 1; }; }
25404 else
25405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25407 done
25409 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25410 if test -n "$ac_eof"; then
25411 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25412 ac_eof=`expr $ac_eof + 1`
25415 cat >>$CONFIG_STATUS <<_ACEOF
25416 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25418 _ACEOF
25419 sed '
25420 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25421 s/^/s,@/; s/!/@,|#_!!_#|/
25424 s/'"$ac_delim"'$/,g/; t
25425 s/$/\\/; p
25426 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25427 ' >>$CONFIG_STATUS <conf$$subs.sed
25428 rm -f conf$$subs.sed
25429 cat >>$CONFIG_STATUS <<_ACEOF
25430 :end
25431 s/|#_!!_#|//g
25432 CEOF$ac_eof
25433 _ACEOF
25436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25438 # trailing colons and then remove the whole line if VPATH becomes empty
25439 # (actually we leave an empty line to preserve line numbers).
25440 if test "x$srcdir" = x.; then
25441 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25442 s/:*\$(srcdir):*/:/
25443 s/:*\${srcdir}:*/:/
25444 s/:*@srcdir@:*/:/
25445 s/^\([^=]*=[ ]*\):*/\1/
25446 s/:*$//
25447 s/^[^=]*=[ ]*$//
25451 cat >>$CONFIG_STATUS <<\_ACEOF
25452 fi # test -n "$CONFIG_FILES"
25455 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25457 case $ac_tag in
25458 :[FHLC]) ac_mode=$ac_tag; continue;;
25459 esac
25460 case $ac_mode$ac_tag in
25461 :[FHL]*:*);;
25462 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25463 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25464 { (exit 1); exit 1; }; };;
25465 :[FH]-) ac_tag=-:-;;
25466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25467 esac
25468 ac_save_IFS=$IFS
25469 IFS=:
25470 set x $ac_tag
25471 IFS=$ac_save_IFS
25472 shift
25473 ac_file=$1
25474 shift
25476 case $ac_mode in
25477 :L) ac_source=$1;;
25478 :[FH])
25479 ac_file_inputs=
25480 for ac_f
25482 case $ac_f in
25483 -) ac_f="$tmp/stdin";;
25484 *) # Look for the file first in the build tree, then in the source tree
25485 # (if the path is not absolute). The absolute path cannot be DOS-style,
25486 # because $ac_f cannot contain `:'.
25487 test -f "$ac_f" ||
25488 case $ac_f in
25489 [\\/$]*) false;;
25490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25491 esac ||
25492 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25493 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25494 { (exit 1); exit 1; }; };;
25495 esac
25496 ac_file_inputs="$ac_file_inputs $ac_f"
25497 done
25499 # Let's still pretend it is `configure' which instantiates (i.e., don't
25500 # use $as_me), people would be surprised to read:
25501 # /* config.h. Generated by config.status. */
25502 configure_input="Generated from "`IFS=:
25503 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25504 if test x"$ac_file" != x-; then
25505 configure_input="$ac_file. $configure_input"
25506 { echo "$as_me:$LINENO: creating $ac_file" >&5
25507 echo "$as_me: creating $ac_file" >&6;}
25510 case $ac_tag in
25511 *:-:* | *:-) cat >"$tmp/stdin";;
25512 esac
25514 esac
25516 ac_dir=`$as_dirname -- "$ac_file" ||
25517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25518 X"$ac_file" : 'X\(//\)[^/]' \| \
25519 X"$ac_file" : 'X\(//\)$' \| \
25520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25521 echo X"$ac_file" |
25522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25523 s//\1/
25526 /^X\(\/\/\)[^/].*/{
25527 s//\1/
25530 /^X\(\/\/\)$/{
25531 s//\1/
25534 /^X\(\/\).*/{
25535 s//\1/
25538 s/.*/./; q'`
25539 { as_dir="$ac_dir"
25540 case $as_dir in #(
25541 -*) as_dir=./$as_dir;;
25542 esac
25543 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25544 as_dirs=
25545 while :; do
25546 case $as_dir in #(
25547 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25548 *) as_qdir=$as_dir;;
25549 esac
25550 as_dirs="'$as_qdir' $as_dirs"
25551 as_dir=`$as_dirname -- "$as_dir" ||
25552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25553 X"$as_dir" : 'X\(//\)[^/]' \| \
25554 X"$as_dir" : 'X\(//\)$' \| \
25555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25556 echo X"$as_dir" |
25557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25558 s//\1/
25561 /^X\(\/\/\)[^/].*/{
25562 s//\1/
25565 /^X\(\/\/\)$/{
25566 s//\1/
25569 /^X\(\/\).*/{
25570 s//\1/
25573 s/.*/./; q'`
25574 test -d "$as_dir" && break
25575 done
25576 test -z "$as_dirs" || eval "mkdir $as_dirs"
25577 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25578 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25579 { (exit 1); exit 1; }; }; }
25580 ac_builddir=.
25582 case "$ac_dir" in
25583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25585 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25586 # A ".." for each directory in $ac_dir_suffix.
25587 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25588 case $ac_top_builddir_sub in
25589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25591 esac ;;
25592 esac
25593 ac_abs_top_builddir=$ac_pwd
25594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25595 # for backward compatibility:
25596 ac_top_builddir=$ac_top_build_prefix
25598 case $srcdir in
25599 .) # We are building in place.
25600 ac_srcdir=.
25601 ac_top_srcdir=$ac_top_builddir_sub
25602 ac_abs_top_srcdir=$ac_pwd ;;
25603 [\\/]* | ?:[\\/]* ) # Absolute name.
25604 ac_srcdir=$srcdir$ac_dir_suffix;
25605 ac_top_srcdir=$srcdir
25606 ac_abs_top_srcdir=$srcdir ;;
25607 *) # Relative name.
25608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25609 ac_top_srcdir=$ac_top_build_prefix$srcdir
25610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25611 esac
25612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25615 case $ac_mode in
25618 # CONFIG_FILE
25621 case $INSTALL in
25622 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25623 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25624 esac
25625 _ACEOF
25627 cat >>$CONFIG_STATUS <<\_ACEOF
25628 # If the template does not know about datarootdir, expand it.
25629 # FIXME: This hack should be removed a few years after 2.60.
25630 ac_datarootdir_hack=; ac_datarootdir_seen=
25632 case `sed -n '/datarootdir/ {
25636 /@datadir@/p
25637 /@docdir@/p
25638 /@infodir@/p
25639 /@localedir@/p
25640 /@mandir@/p
25641 ' $ac_file_inputs` in
25642 *datarootdir*) ac_datarootdir_seen=yes;;
25643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25644 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25645 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25646 _ACEOF
25647 cat >>$CONFIG_STATUS <<_ACEOF
25648 ac_datarootdir_hack='
25649 s&@datadir@&$datadir&g
25650 s&@docdir@&$docdir&g
25651 s&@infodir@&$infodir&g
25652 s&@localedir@&$localedir&g
25653 s&@mandir@&$mandir&g
25654 s&\\\${datarootdir}&$datarootdir&g' ;;
25655 esac
25656 _ACEOF
25658 # Neutralize VPATH when `$srcdir' = `.'.
25659 # Shell code in configure.ac might set extrasub.
25660 # FIXME: do we really want to maintain this feature?
25661 cat >>$CONFIG_STATUS <<_ACEOF
25662 sed "$ac_vpsub
25663 $extrasub
25664 _ACEOF
25665 cat >>$CONFIG_STATUS <<\_ACEOF
25667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25668 s&@configure_input@&$configure_input&;t t
25669 s&@top_builddir@&$ac_top_builddir_sub&;t t
25670 s&@srcdir@&$ac_srcdir&;t t
25671 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25672 s&@top_srcdir@&$ac_top_srcdir&;t t
25673 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25674 s&@builddir@&$ac_builddir&;t t
25675 s&@abs_builddir@&$ac_abs_builddir&;t t
25676 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25677 s&@INSTALL@&$ac_INSTALL&;t t
25678 $ac_datarootdir_hack
25679 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25681 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25682 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25683 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25684 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25685 which seems to be undefined. Please make sure it is defined." >&5
25686 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25687 which seems to be undefined. Please make sure it is defined." >&2;}
25689 rm -f "$tmp/stdin"
25690 case $ac_file in
25691 -) cat "$tmp/out"; rm -f "$tmp/out";;
25692 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25693 esac
25697 # CONFIG_HEADER
25699 _ACEOF
25701 # Transform confdefs.h into a sed script `conftest.defines', that
25702 # substitutes the proper values into config.h.in to produce config.h.
25703 rm -f conftest.defines conftest.tail
25704 # First, append a space to every undef/define line, to ease matching.
25705 echo 's/$/ /' >conftest.defines
25706 # Then, protect against being on the right side of a sed subst, or in
25707 # an unquoted here document, in config.status. If some macros were
25708 # called several times there might be several #defines for the same
25709 # symbol, which is useless. But do not sort them, since the last
25710 # AC_DEFINE must be honored.
25711 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25712 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25713 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25714 # PARAMS is the parameter list in the macro definition--in most cases, it's
25715 # just an empty string.
25716 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25717 ac_dB='\\)[ (].*,\\1define\\2'
25718 ac_dC=' '
25719 ac_dD=' ,'
25721 uniq confdefs.h |
25722 sed -n '
25723 t rset
25724 :rset
25725 s/^[ ]*#[ ]*define[ ][ ]*//
25726 t ok
25729 s/[\\&,]/\\&/g
25730 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25731 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25732 ' >>conftest.defines
25734 # Remove the space that was appended to ease matching.
25735 # Then replace #undef with comments. This is necessary, for
25736 # example, in the case of _POSIX_SOURCE, which is predefined and required
25737 # on some systems where configure will not decide to define it.
25738 # (The regexp can be short, since the line contains either #define or #undef.)
25739 echo 's/ $//
25740 s,^[ #]*u.*,/* & */,' >>conftest.defines
25742 # Break up conftest.defines:
25743 ac_max_sed_lines=50
25745 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25746 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25747 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25748 # et cetera.
25749 ac_in='$ac_file_inputs'
25750 ac_out='"$tmp/out1"'
25751 ac_nxt='"$tmp/out2"'
25753 while :
25755 # Write a here document:
25756 cat >>$CONFIG_STATUS <<_ACEOF
25757 # First, check the format of the line:
25758 cat >"\$tmp/defines.sed" <<\\CEOF
25759 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25760 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25762 :def
25763 _ACEOF
25764 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25765 echo 'CEOF
25766 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25767 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25768 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25769 grep . conftest.tail >/dev/null || break
25770 rm -f conftest.defines
25771 mv conftest.tail conftest.defines
25772 done
25773 rm -f conftest.defines conftest.tail
25775 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25776 cat >>$CONFIG_STATUS <<\_ACEOF
25777 if test x"$ac_file" != x-; then
25778 echo "/* $configure_input */" >"$tmp/config.h"
25779 cat "$ac_result" >>"$tmp/config.h"
25780 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25781 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25782 echo "$as_me: $ac_file is unchanged" >&6;}
25783 else
25784 rm -f $ac_file
25785 mv "$tmp/config.h" $ac_file
25787 else
25788 echo "/* $configure_input */"
25789 cat "$ac_result"
25791 rm -f "$tmp/out12"
25794 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25795 echo "$as_me: executing $ac_file commands" >&6;}
25797 esac
25800 case $ac_file$ac_mode in
25801 "default":C)
25803 ### Make the necessary directories, if they don't exist.
25804 for dir in etc lisp ; do
25805 test -d ${dir} || mkdir ${dir}
25806 done
25808 # Build src/Makefile from ${srcdir}/src/Makefile.c
25809 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25810 # This must be done after src/config.h is built, since we rely on that file.
25812 echo creating src/epaths.h
25813 ${MAKE-make} epaths-force
25815 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25816 # `..' to `. .' unless invoked with -traditional
25818 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25819 CPPFLAGS="$CPPFLAGS -traditional"
25822 echo creating lib-src/Makefile
25823 ( cd lib-src
25824 rm -f junk.c junk1.c junk2.c
25825 sed -e '/start of cpp stuff/q' \
25826 < Makefile.c > junk1.c
25827 sed -e '1,/start of cpp stuff/d'\
25828 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25829 < Makefile.c > junk.c
25830 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25831 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25832 cat junk1.c junk2.c > Makefile.new
25833 rm -f junk.c junk1.c junk2.c
25834 chmod 444 Makefile.new
25835 mv -f Makefile.new Makefile
25838 echo creating src/Makefile
25839 ( cd src
25840 rm -f junk.c junk1.c junk2.c
25841 sed -e '/start of cpp stuff/q' \
25842 < Makefile.c > junk1.c
25843 sed -e '1,/start of cpp stuff/d'\
25844 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25845 < Makefile.c > junk.c
25846 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25847 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25848 cat junk1.c junk2.c > Makefile.new
25849 rm -f junk.c junk1.c junk2.c
25850 chmod 444 Makefile.new
25851 mv -f Makefile.new Makefile
25854 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25855 echo creating src/.gdbinit
25856 echo source $srcdir/src/.gdbinit > src/.gdbinit
25861 esac
25862 done # for ac_tag
25865 { (exit 0); exit 0; }
25866 _ACEOF
25867 chmod +x $CONFIG_STATUS
25868 ac_clean_files=$ac_clean_files_save
25871 # configure is writing to config.log, and then calls config.status.
25872 # config.status does its own redirection, appending to config.log.
25873 # Unfortunately, on DOS this fails, as config.log is still kept open
25874 # by configure, so config.status won't be able to write to it; its
25875 # output is simply discarded. So we exec the FD to /dev/null,
25876 # effectively closing config.log, so it can be properly (re)opened and
25877 # appended to by config.status. When coming back to configure, we
25878 # need to make the FD available again.
25879 if test "$no_create" != yes; then
25880 ac_cs_success=:
25881 ac_config_status_args=
25882 test "$silent" = yes &&
25883 ac_config_status_args="$ac_config_status_args --quiet"
25884 exec 5>/dev/null
25885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25886 exec 5>>config.log
25887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25888 # would make configure fail if this is the last instruction.
25889 $ac_cs_success || { (exit 1); exit 1; }